New PEP: Quality Guidelines For Standard Modules

Gordon McMillan gmcm at hypernet.com
Mon Jul 2 15:51:44 CEST 2001


Carlos Ribeiro wrote: 

[snip example of module global being misused]

>... Also, if the state variable
>is declared as a global, even reimporting the module will fail.

This is untrue. I'm guessing you mean that given:

  from module import module_global

  reload(module)

doesn't do what you want, but that's the fault of using
"from ... import", not module's use of a global.

- Gordon





More information about the Python-list mailing list