[Python-Dev] other "magic strings" issues
Guido van Rossum
guido at python.org
Mon Nov 10 10:34:53 EST 2003
> > I would love it if what happened really was something like:
> >>>> from socket import *
> >>>> print AF_UNIX
> > socket.AF_UNIX
> >>>> from errno import *
> >>>> print EEXIST
> > errno.EEXIST
> I've had this idea too. I like it, I think. The signal module could
> use it too...
Yes, that would be cool for many enums.
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev