Python critique
Lie Ryan
lie.1296 at gmail.com
Sat Dec 11 06:46:16 EST 2010
On 12/11/10 11:37, Dan Stromberg wrote:
> On Fri, Dec 10, 2010 at 3:51 PM, John Nagle <nagle at 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__).
More information about the Python-list
mailing list