26.07.19 21:10, Anders Hovmöller пише:
This doesn't really solve the problem imo. Imported symbols shouldn't be i
portable elsewhere. Not by import * or explicitly. That's the problem.
I do not think that this is always a problem. It is common to refactor
the code by defining names in submodules and then importing them in the
main module. For example, in `json/__init__.py`:
from .decoder import JSONDecoder, JSONDecodeError
from .encoder import JSONEncoder
It is possible even to use a star import.
So this change would break much more code.
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/DAC2BSL6IT53WDQYVPOHZ6OMDGD33HHL/
Code of Conduct: http://python.org/psf/codeofconduct/