[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 5014 - trunk/subversion/tests/clients/cmdline/svntest

From: Edward S. Marshall <esm_at_logic.net>
Date: 2003-02-22 19:58:43 CET

On Sat, Feb 22, 2003 at 10:40:16AM -0800, Daniel Rall wrote:
> > + print ('PASS: ', 'FAIL: ')[ex.code != 0],
>
> What is the trailing comma for? Seems harmless enough with print able
> to deal with sequences (which aren't strings), but it's not clear to
> me why it needs to be there.

"print" will add a trailing newline by default; adding a comma at the end
tells it not to. Odd syntax, but there you have it. :-)

-- 
Edward S. Marshall <esm@logic.net>
http://esm.logic.net/
Felix qui potuit rerum cognoscere causas.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Feb 22 19:59:31 2003

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