Nested function scope problem
Gerhard Fiedler
gelists at gmail.com
Wed Aug 9 14:11:16 EDT 2006
On 2006-08-09 07:54:21, Slawomir Nowaczyk wrote:
> Nope. Equivalence table can look like this:
>
> Python C
> variable: a variable: a
> textual representation: "a" address operator: &a
> id of object: id(a) dereference operator: *a
>
> Also, notice, that "id(a)" does not really "identify" a variable. It
> only identifies *object* which is bound to this variable. Both in
> Python and in C.
Rests one question: what is the value of the variable? In Python, it would
be the result of "a". In C, it would be the result of ...?
Gerhard
More information about the Python-list
mailing list