Types missing from "types"module

Terry Reedy tjreedy at udel.edu
Thu Jun 24 18:32:20 EDT 2010


On 6/24/2010 2:29 AM, John Nagle wrote:

> Does the "types" module go away in 3.x, then?

No, but all the duplication (IntType is int, etc) is removed.

 >>> dir(types)
['BuiltinFunctionType', 'BuiltinMethodType', 'CodeType', 'FrameType', 
'FunctionType', 'GeneratorType', 'GetSetDescriptorType', 'LambdaType', 
'MemberDescriptorType', 'MethodType', 'ModuleType', 'TracebackType', 
'__builtins__', '__doc__', '__file__', '__name__', '__package__']
-- 
Terry Jan Reedy




More information about the Python-list mailing list