[issue42243] Don't access the module dictionary directly
Erlend Egeberg Aasland
report at bugs.python.org
Mon Nov 2 04:15:28 EST 2020
Erlend Egeberg Aasland <erlend.aasland at innova.no> added the comment:
> Are all these occurrences in the module initialization code?
Most of them, but not all.
> but rewriting can introduce new bugs.
Of course.
> You can do this, but it will be treated as pure cosmetic change. It can be accepted if the new code is much clearer.
It mostly results in more compact code, which, in my opinion, would improve both readability and maintainability.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42243>
_______________________________________
More information about the Python-bugs-list
mailing list