On 12/11/10 11:37, Dan Stromberg wrote:
> On Fri, Dec 10, 2010 at 3:51 PM, John Nagle <na...@animats.com> wrote:
>> On 12/10/2010 3:25 PM, Stefan Behnel wrote:
>>> Benjamin Kaplan, 11.12.2010 00:13:
>>>> On Fri, Dec 10, 2010 at 5:46 PM, Octavian Rasnita wrote:
>>>> The only scopes Python has are module and function.
>>
>> There's more.  Both a lambda, and in Python 3.x,
>> list comprehensions, introduce a new scope.
> 
> And classes and methods.

Also, class scope and instance scope, though similar, are distinct
scopes. Python also have the hidden interpreter-level scope (the
__builtins__).
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to