Message122031
| 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:18 | eric.araujo | set | recipients:
+ eric.araujo, georg.brandl, bethard, travistouchdown |
| 2010年11月22日 00:07:18 | eric.araujo | set | messageid: <1290384438.15.0.23263167525.issue9399@psf.upfronthosting.co.za> |
| 2010年11月22日 00:07:16 | eric.araujo | link | issue9399 messages |
| 2010年11月22日 00:07:16 | eric.araujo | create |
|