Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python __setitem__ and __getitem__ with type inference #367

Open
JesseFarebro opened this issue Sep 7, 2020 · 0 comments
Open

Python __setitem__ and __getitem__ with type inference #367

JesseFarebro opened this issue Sep 7, 2020 · 0 comments
Labels
ale-py Python Interface enhancement

Comments

@JesseFarebro
Copy link
Collaborator

PR #148 introduced the idea of __setitem__ and __getitem__ for config values using the Python interface. I think this is a good idea that we can get around to this with the new Python interface.

Example:

ale.setInt('random_seed', 0)
ale.setBool('color_averaging', True)
# vs.
ale['random_seed'] = 0
ale['color_averaging'] = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ale-py Python Interface enhancement
Projects
None yet
Development

No branches or pull requests

1 participant