[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: rev 2081 - trunk/subversion/tests/clients/cmdline/svntest

From: Branko Čibej <brane_at_xbc.nu>
Date: 2002-06-04 23:37:55 CEST

Ben Collins-Sussman wrote:

>brane@tigris.org writes:
>>Now make this look like Python, not C. :-)
>> if (not error_expected) and (stderr_lines):
>>- for line in stderr_lines:
>>- print line,
>>+ map(lambda x: sys.stdout.write(x), lines)
>Funny, that looks more like Lisp to me. :-)
Yep, I fixed that. :-)
(I also managed to break my commits-per-second record by not reading
what I wrote. :-( )

>Is sys.stdout.write() better than 'print'?
It comes to the same thing in the end. 'print' is a keyword, so you
can't use it in 'map, but it uses whatever object is hidden in sys.stdout.

Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jun 4 23:38:20 2002

This is an archived mail posted to the Subversion Dev mailing list.