>>>>> "GvR" == Guido van Rossum <guido@beopen.com> writes: GvR> Don't think of it as GvR> print >>None, args GvR> Think of it as GvR> def func(file=None): GvR> print >>file, args Huh? Don't you mean think of it as: def func(file=None): if file is None: import sys print >>sys.stdout, args else: print >>file, args At least, I think that's why I find the use of None confusing. I find it hard to make a strong association between None and sys.stdout. In fact, when I was typing this message, I wrote it as sys.stderr and only discovered my error upon re-reading the initial message. Jeremy
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4