PEP 214, extended print statement

piet at cs.uu.nl piet at cs.uu.nl
Mon Aug 21 06:32:16 EDT 2000


>>>>> aahz at netcom.com (Aahz Maruch) (AM) schrijft:

AM> [posted & e-mailed]
AM> In article <14746.44861.78992.343012 at anthem.concentric.net>,
AM> Barry A. Warsaw <bwarsaw at beopen.com> wrote:
>> 
>> Proposal
>> 
>> This proposal introduces a syntax extension to the print
>> statement, which allows the programmer to optionally specify the
>> output file target.  An example usage is as follows:
>> 
>> print >> mylogfile, 'this message goes to my log file'

AM> After reading all the discussion, I'm going to weigh in on the side of
AM> sys.writeln().  Note specifically that I'm recommending that this not
AM> pollute the built-ins namespace.

As this should be as easy as print itself, buitin would be preferably.
Moreover to stress the relationship, maybe println would be a better name.
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl



More information about the Python-list mailing list