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

Re: [PATCH] Display stderr before throwing exception in the python test suite

From: David James <james_at_cs.toronto.edu>
Date: 2006-12-31 17:22:29 CET

On 12/31/06, Kamesh Jayachandran <kamesh@collab.net> wrote:
> Madan,
> Why to map sys.stdout.write of invoker to stderr_lines of child?
> If the purpose is to help in identifying the root cause, why not make use
> of stdout_lines also?
> Or may be,
> + map(sys.stdout.write, stdout_lines)
> + map(sys.stderr.write, stderr_lines)

It is unusual to pass in a function which has side-effects to "map",
because this function is usually used for functional programming. In
Python, it is more idiomatic to join together the lines before
printing them out, like this:



To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Dec 31 17:22:38 2006

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