[Python-Dev] Classes that claim to be defined in builtin but aren't (original) (raw)
Greg Ewing greg at cosc.canterbury.ac.nz
Mon Aug 16 03:09:31 CEST 2004
- Previous message: [Python-Dev] Classes that claim to be defined in __builtin__ but aren't
- Next message: [Python-Dev] Classes that claim to be defined in __builtin__ but aren't
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 +--------------------------------------+
- Previous message: [Python-Dev] Classes that claim to be defined in __builtin__ but aren't
- Next message: [Python-Dev] Classes that claim to be defined in __builtin__ but aren't
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]