[Python-Dev] Classes that claim to be defined in __builtin__ but
aren't
James Y Knight
foom at fuhm.net
Tue Aug 10 18:17:14 CEST 2004
On Aug 10, 2004, at 11:01 AM, Guido van Rossum wrote:
> No, no, no! The "new" convention for built-in type names is all
> lowercase. CamelCaseType is old and only used in the context of
> types.py.
Sooo should (for 'generator' in objects that claim to be in
__builtins__ but aren't),
1) 'generator' be added to __builtins__
2) 'generator' be added to types.py and its __module__ be set to 'types'
3) 'generator' be added to <newmodule>.py and its __module__ be set to
'<newmodule>' (and a name for the module chosen)
James
More information about the Python-Dev
mailing list