[Python-Dev] Classes that claim to be defined in __builtin__ but
aren't
Greg Ewing
greg at cosc.canterbury.ac.nz
Mon Aug 16 03:09:31 CEST 2004
Guido:
> But list and dict are *not* functions, they are types, and they can be
> used for subclassing and type checking too. These are the precedent
> for placing generator etc. in __builtin__.
The real question seems to be whether __builtin__ should contain *all*
built-in types, including internal ones, or only those intended for
public use. Do you have an opinion about that, Guido?
I suppose it's reasonable to put them all in __builtin__, since as you
say, they can be useful for type checking even if you can't or rarely
want to instantiate them yourself.
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg at cosc.canterbury.ac.nz +--------------------------------------+
More information about the Python-Dev
mailing list