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
If the context manager takes effect in __init__ rather than __enter__ it will ways take effect, even if the caller does nothing with it (the current API). The only difference would be to have the effect reverted in __exit__.
Activity
mdboom commentedon Nov 18, 2015
I have no objections from an API point of view.
tacaswell commentedon Nov 18, 2015
How can that be done in a back-compatible way?
mdboom commentedon Nov 18, 2015
If the context manager takes effect in
__init__rather than__enter__it will ways take effect, even if the caller does nothing with it (the current API). The only difference would be to have the effect reverted in__exit__.tacaswell commentedon Nov 18, 2015
ah, cute!
mdboom commentedon Nov 19, 2015
@anntzer: Were you offering to make a pull request?
anntzer commentedon Nov 19, 2015
Perhaps in a few days.
Turn autoscale into a contextmanager.
Turn autoscale into a contextmanager.
anntzer commentedon Apr 16, 2017
Closing due to #5538 (comment) (not realistically possible for now).