Access to variable from external imported module

Fredrik Lundh fredrik at pythonware.com
Thu Nov 23 16:39:31 EST 2006


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