[Python-Dev] extended print statement, uPre-PEP

Barry A. Warsaw bwarsaw@beopen.com
Sun, 23 Jul 2000 22:49:47 -0400 (EDT)

>>>>> "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.

    PP> or (with auto string-coercion):

    PP> log.writeln("Post to "+listname+" from "+sender+" size="+len(
    PP> msg ))

Isn't adding auto string-coercion a more radical suggestion than
extending print?