Creating True Global Functions by Modifying Builtins

Kamilche klachemin at home.com
Wed Jun 9 18:57:00 EDT 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.

--Kamilche



More information about the Python-list mailing list