Brett Cannon added the comment: Attached is a patch that drops all mutable default arguments to __import__() and updates the docs. I went with Barry's approach but made it compatible with PEP 8 (bad, FLUFL; no unneeded parens!). I also ignored the locals argument since __import__ doesn't even use it.
Assigning to Georg as a release blocker to make a call as to whether I can apply this to 3.3 of if I need to wait until 3.4 since this is not a critical fix but a good thing to do. Just assign back to me once the decision has been made. ---------- assignee: brett.cannon -> georg.brandl nosy: +georg.brandl priority: low -> release blocker stage: patch review -> commit review Added file: http://bugs.python.org/file26705/immutable_defaults_for_import.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15471> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com