This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author barry
Recipients barry, brett.cannon
Date 2012-07-27.17:09:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343408977.86.0.620892563203.issue15471@psf.upfronthosting.co.za>
In-reply-to
Content
Very minor style nit.  In general, it's not considered good style to use mutable objects in default argument values.  importlib's _bootstrap.__import__() does just this for its globals, locals, and fromlist arguments.

The implementation currently doesn't abuse this, or allow any of the extensions to abuse, it may be possible in the future to naively cause negative side-effects due to mutate the keyword arguments.  It would be better to use non-mutable default values in the argument list.
History
Date User Action Args
2012-07-27 17:09:37barrysetrecipients: + barry, brett.cannon
2012-07-27 17:09:37barrysetmessageid: <1343408977.86.0.620892563203.issue15471@psf.upfronthosting.co.za>
2012-07-27 17:09:37barrylinkissue15471 messages
2012-07-27 17:09:36barrycreate