Project-wide variable...

bruno.desthuilliers at gmail.com bruno.desthuilliers at gmail.com
Thu Jun 23 11:20:42 EDT 2011


On Jun 23, 4:42 pm, Peter Otten <__pete... at web.de> wrote:
(snip)
> > However I end up doing it in every submodule, so it seems a little
> > redundant. I wish I could load the variable in the parent program and
> > have it be available in all submodules. Am I missing something?
>
> You can modify the builtin namespace:
> But I don't think it's a good idea.

Even posting about it is already a bad idea IMHO. There are good
reasons this isn't documented.

@OP: yes, explicit imports are boring... until you have to debug and
maintain the code, and then you start to LOVE them.



More information about the Python-list mailing list