Back to index

python3.2  3.2.2
Classes | Functions | Variables
types Namespace Reference

Classes

class  _C

Functions

def _f
def _g

Variables

tuple FunctionType = type(_f)
tuple LambdaType = type(lambda: None)
tuple CodeType = type(_f.__code__)
tuple GeneratorType = type(_g())
tuple MethodType = type(_C()._m)
tuple BuiltinFunctionType = type(len)
tuple BuiltinMethodType = type([].append)
tuple ModuleType = type(sys)
tuple tb = sys.exc_info()
tuple TracebackType = type(tb)
tuple FrameType = type(tb.tb_frame)
tuple GetSetDescriptorType = type(FunctionType.__code__)
tuple MemberDescriptorType = type(FunctionType.__globals__)

Detailed Description

Define names for built-in types that aren't directly accessible as a builtin.

Function Documentation

def types._f ( ) [private]

Definition at line 11 of file types.py.

00011 
def _f(): pass
def types._g ( ) [private]

Definition at line 16 of file types.py.

00016 
00017 def _g():
    yield 1

Variable Documentation

Definition at line 24 of file types.py.

tuple types.BuiltinMethodType = type([].append)

Definition at line 25 of file types.py.

tuple types.CodeType = type(_f.__code__)

Definition at line 14 of file types.py.

tuple types.FrameType = type(tb.tb_frame)

Definition at line 34 of file types.py.

Definition at line 12 of file types.py.

Definition at line 18 of file types.py.

tuple types.GetSetDescriptorType = type(FunctionType.__code__)

Definition at line 38 of file types.py.

tuple types.LambdaType = type(lambda: None)

Definition at line 13 of file types.py.

tuple types.MemberDescriptorType = type(FunctionType.__globals__)

Definition at line 39 of file types.py.

tuple types.MethodType = type(_C()._m)

Definition at line 22 of file types.py.

tuple types.ModuleType = type(sys)

Definition at line 27 of file types.py.

types.tb = sys.exc_info()

Definition at line 32 of file types.py.

Definition at line 33 of file types.py.