
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@cosc.canterbury.ac.nz +--------------------------------------+