You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.
setter/getter methods are the anti-pattern #1. No offense but this anti-pattern is often seen by code written by people from the Java world. We call that "unpythonic".
Regarding validation: I would pass the result from parse_args() to a dedicated validation method performing the validation of all parameters. Or you look into a higher-level module 'click' http://click.pocoo.org/5/ for having parameter types or hooks for validation. 'click' is not part of the Python core but you are already using external dependencies like 'requests'...so further deps should not be a big problem.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Looking at examples/create_forest.py
The tons of set_xxx() methods are completely superfluous and unpythonic.
Why don't you just use
create.some_property = value
directly instead of usinger setter methods? Python is not Java!
The text was updated successfully, but these errors were encountered: