Éric Araujo <mer...@netwok.org> added the comment:

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 :)

----------
nosy: +eric.araujo
stage:  -> unit test needed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9399>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to