Access to variable from external imported module

GinTon jonas.esp at googlemail.com
Thu Nov 23 17:09:21 EST 2006


Sorry, I mean access to local variable from a method

import module
method(value)

I would to access to values that are created locally in that method

Fredrik Lundh ha escrito:

> GinTon wrote:
>
> > How to access to a variable (that value is not returned) from a module
> > imported?
> > And the variable is set at the module-level.
>
>    import module
>    print module.variable
> 
> (have you read the Python tutorial?)
> 
> </F>




More information about the Python-list mailing list