homepage

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 eric.araujo
Recipients bethard, eric.araujo, georg.brandl, travistouchdown
Date 2010年11月22日.00:07:16
SpamBayes Score 0.00010098848
Marked as misclassified No
Message-id <1290384438.15.0.23263167525.issue9399@psf.upfronthosting.co.za>
In-reply-to
Content
sys.std* should not be used as default values in a function definition, because they may be rebound to other objects. The usual idiom is to have None as default value and check it at call time.
The patch also needs tests and docs.
(FTR, the example for callable in this report was wrong: First, the message argument was missing in the lambda, second, there was no need for a lambda in the first place :)
History
Date User Action Args
2010年11月22日 00:07:18eric.araujosetrecipients: + eric.araujo, georg.brandl, bethard, travistouchdown
2010年11月22日 00:07:18eric.araujosetmessageid: <1290384438.15.0.23263167525.issue9399@psf.upfronthosting.co.za>
2010年11月22日 00:07:16eric.araujolinkissue9399 messages
2010年11月22日 00:07:16eric.araujocreate

AltStyle によって変換されたページ (->オリジナル) /