Access to variable from external imported module

Fredrik Lundh fredrik at pythonware.com
Thu Nov 23 22:39:31 CET 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