[Python-Dev] Classes that claim to be defined in builtin but aren't (original) (raw)
Nick Bastin nbastin at opnet.com
Tue Aug 10 01:45:06 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 ]
On Aug 9, 2004, at 6:16 PM, Jim Fulton wrote:
James Y Knight wrote:
IMO classes ought to actually appear in builtin if they claim they are defined there. Doing otherwise breaks reflection, as you have to add a special case for these class names to use the appropriate object from the types module instead. Thoughts? I agree.
I think this should stand for functions as well. help() is a good example. It's a bit confusing for newbies that help.module is 'site', but 'site' isn't in their local namespace.
-- Nick
- 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 ]