[Python-Dev] extended print statement, uPre-PEP
Moshe Zadka
Moshe Zadka <moshez@math.huji.ac.il>
Mon, 24 Jul 2000 09:38:12 +0300 (IDT)
On Sun, 23 Jul 2000, Barry A. Warsaw wrote:
>
> >>>>> "PP" == Paul Prescod <paul@prescod.net> writes:
>
> PP> log.writeln("Post to ", listname, " from ", sender, " size=",
> PP> len( msg ))
>
> That could work, if we added writeln() to all file-like objects. One
> advantage of extending print is that the write() method is already a
> documented (and existing) interface.
No, this is an advantage for having "writeln" as a function rather then
a method.
> Isn't adding auto string-coercion a more radical suggestion than
> extending print?
Well, I'm not sure which one I fear more <wink>
--
Moshe Zadka <moshez@math.huji.ac.il>
There is no IGLU cabal.
http://advogato.org/person/moshez