object scope

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon Jan 21 00:45:30 EST 2008


En Mon, 21 Jan 2008 03:16:37 -0200, J. Peng <jpeng at block.duxieweb.com>  
escribió:

> Dennis Lee Bieber 写道:
>> 	The scope of "name" is the entire function; lacking a "global name"
>> statement, AND being on the left side of an assignment, it is a function
>> local name.
>
> Thank you. Does python have so-called 'block scope' object?
> or if you can,please show me the doc for python's object scope.

See http://docs.python.org/ref/naming.html

-- 
Gabriel Genellina




More information about the Python-list mailing list