Creating True Global Functions by Modifying Builtins
klachemin at home.com
Thu Jun 10 00:57:00 CEST 2004
Peter Hansen <peter at engcorp.com> wrote in message news:<45adnQYny6eOzFrdRVn-sw at powergate.ca>...
> Kamilche wrote:
> > I really, really want a handful of 'true' global functions, ones that
> > can be called from anywhere without requiring importing.
> No, you don't. ;-)
Yeah, I thought it was interesting when I first thought of it, but
upon reflection, I decided to use the dreaded 'from X import *'
construct instead. As long as I don't have any public global variables
in that module, I should be OK. I put a note in there to that effect,
to remind myself.
More information about the Python-list