[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 6130 - trunk/tools/cvs2svn

From: Greg Stein <gstein_at_lyra.org>
Date: 2003-06-03 10:53:23 CEST

On Tue, Jun 03, 2003 at 12:07:59AM -0500, kfogel@tigris.org wrote:
>...
> + ### According to my (possibly wrong) understanding of Python scoping
> + ### rules, we shouldn't have to pass 'logs' as a parameter below,
> + ### because it's already in-scope for these two inner functions. But
> + ### although that seems to be true in Python 2.2.2, we get warnings
> + ### and errors in 2.1.2:

Up until Python 2.2, there were only three scopes for any block of code:

1) local scope
2) global scope
3) builtin scope

Starting with Python 2.2, you can use variables from enclosing blocks.

So... since our test suite is defined for Python 2.0, you must work with
just the three scopes.

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 Tue Jun 3 10:50:34 2003

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.