gratuitous new features in 2.0
Jason F. McBrayer
jmcbray at carcosa.net
Mon Aug 28 16:42:10 EDT 2000
>>>>> "JWB" == John W Baxter <jwbnews at scandaroon.com> writes:
JWB> I *suspect* that I won't make much use of print >> ..., but instead keep
JWB> on getting a file(-like) object and using its write().
Yes, but you'll have to debug and maintain other people's code that
was written using print >>. Won't that be fun?
Imho the best solution I've seen is printto(1, "foo", bar, file=sys.stdout)
as a builtin function. No new syntax, and you get to keep all the
automagic stuff that print does.
--
+-----------------------------------------------------------+
| Jason F. McBrayer jmcbray at carcosa.net |
| A flower falls, even though we love it; and a weed grows, |
| even though we do not love it. -- Dogen |
More information about the Python-list
mailing list