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

Re: Fix the current test suite

From: Greg Stein <gstein_at_lyra.org>
Date: 2001-05-09 11:11:55 CEST

On Wed, May 09, 2001 at 03:38:39AM -0500, Sam TH wrote:
> On Tue, May 08, 2001 at 05:46:12PM -0500, Ben Collins-Sussman wrote:
> > Sam TH <sam@uchicago.edu> writes:
> > > +import sys
> > ...
> > > - exit(1)
> > > + sys.exit(1)
> >
> > Is the "sys" module not automatically loaded in all Python
> > distributions? To be safe, must we always explicitly import it?
> > (gstein?)
>
> Yup. Weird that it got automatically imported for you.

Nothing got imported for him. He just never executed the exit(1) code. That
would have thrown an error if he had.

(exit is a builtin; somewhat bogus value, but there nonetheless)

exit == 'Use Ctrl-D (i.e. EOF) to exit.'

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:30 2006

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