Adding print-style function calls, and preproc plugins
Chris Barker
chrishbarker at home.net
Thu Aug 30 16:48:37 EDT 2001
Gerson Kurz wrote:
> Please, my problem was that I had to modify print's behaviour, and
> couldn't do so, because by going from "print" to a function, you have to
> enclose the arguments in brackets.
If anythng, this is an argument for why print never should have been a
statement in the first place! If you just use sys.stdout.write()
instead, you can then re-bind that all you want, and problem solved.
-Chris
--
Christopher Barker,
Ph.D.
ChrisHBarker at home.net --- --- ---
http://members.home.net/barkerlohmann ---@@ -----@@ -----@@
------@@@ ------@@@ ------@@@
Oil Spill Modeling ------ @ ------ @ ------ @
Water Resources Engineering ------- --------- --------
Coastal and Fluvial Hydrodynamics --------------------------------------
------------------------------------------------------------------------
More information about the Python-list
mailing list