Created
January 12, 2013 21:33
-
-
Save futuro/4520580 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Define names for all type symbols known in the standard interpreter. | |
Types that are part of optional modules (e.g. array) are not listed. | |
""" | |
import sys | |
# Iterators in Python aren't a matter of type but of protocol. A large | |
# and changing number of builtin types implement *some* flavor of | |
# iterator. Don't check the type! Use hasattr to check for both | |
# "__iter__" and "next" attributes instead. | |
NoneType = type(None) | |
TypeType = type | |
ObjectType = object | |
IntType = int | |
LongType = long | |
FloatType = float | |
BooleanType = bool | |
try: | |
ComplexType = complex | |
except NameError: | |
pass | |
StringType = str | |
# StringTypes is already outdated. Instead of writing "type(x) in | |
# types.StringTypes", you should use "isinstance(x, basestring)". But | |
# we keep around for compatibility with Python 2.2. | |
try: | |
UnicodeType = unicode | |
StringTypes = (StringType, UnicodeType) | |
except NameError: | |
StringTypes = (StringType,) | |
BufferType = buffer | |
TupleType = tuple | |
ListType = list | |
DictType = DictionaryType = dict | |
def _f(): pass | |
FunctionType = type(_f) | |
LambdaType = type(lambda: None) # Same as FunctionType | |
CodeType = type(_f.func_code) | |
def _g(): | |
yield 1 | |
GeneratorType = type(_g()) | |
class _C: | |
def _m(self): pass | |
ClassType = type(_C) | |
UnboundMethodType = type(_C._m) # Same as MethodType | |
_x = _C() | |
InstanceType = type(_x) | |
MethodType = type(_x._m) | |
BuiltinFunctionType = type(len) | |
BuiltinMethodType = type([].append) # Same as BuiltinFunctionType | |
ModuleType = type(sys) | |
FileType = file | |
XRangeType = xrange | |
try: | |
raise TypeError | |
except TypeError: | |
tb = sys.exc_info()[2] | |
TracebackType = type(tb) | |
FrameType = type(tb.tb_frame) | |
del tb | |
SliceType = slice | |
EllipsisType = type(Ellipsis) | |
DictProxyType = type(TypeType.__dict__) | |
NotImplementedType = type(NotImplemented) | |
# For Jython, the following two types are identical | |
GetSetDescriptorType = type(FunctionType.func_code) | |
MemberDescriptorType = type(FunctionType.func_globals) | |
del sys, _f, _g, _C, _x # Not for export | |
"""Define names for all type symbols known in the standard interpreter. | |
Types that are part of optional modules (e.g. array) are not listed. | |
""" | |
import sys | |
# Iterators in Python aren't a matter of type but of protocol. A large | |
# and changing number of builtin types implement *some* flavor of | |
# iterator. Don't check the type! Use hasattr to check for both | |
# "__iter__" and "next" attributes instead. | |
NoneType = type(None) | |
TypeType = type | |
ObjectType = object | |
IntType = int | |
LongType = long | |
FloatType = float | |
BooleanType = bool | |
try: | |
ComplexType = complex | |
except NameError: | |
pass | |
StringType = str | |
# StringTypes is already outdated. Instead of writing "type(x) in | |
# types.StringTypes", you should use "isinstance(x, basestring)". But | |
# we keep around for compatibility with Python 2.2. | |
try: | |
UnicodeType = unicode | |
StringTypes = (StringType, UnicodeType) | |
except NameError: | |
StringTypes = (StringType,) | |
BufferType = buffer | |
TupleType = tuple | |
ListType = list | |
DictType = DictionaryType = dict | |
def _f(): pass | |
FunctionType = type(_f) | |
LambdaType = type(lambda: None) # Same as FunctionType | |
CodeType = type(_f.func_code) | |
def _g(): | |
yield 1 | |
GeneratorType = type(_g()) | |
class _C: | |
def _m(self): pass | |
ClassType = type(_C) | |
UnboundMethodType = type(_C._m) # Same as MethodType | |
_x = _C() | |
InstanceType = type(_x) | |
MethodType = type(_x._m) | |
BuiltinFunctionType = type(len) | |
BuiltinMethodType = type([].append) # Same as BuiltinFunctionType | |
ModuleType = type(sys) | |
FileType = file | |
XRangeType = xrange | |
try: | |
raise TypeError | |
except TypeError: | |
tb = sys.exc_info()[2] | |
TracebackType = type(tb) | |
FrameType = type(tb.tb_frame) | |
del tb | |
SliceType = slice | |
EllipsisType = type(Ellipsis) | |
DictProxyType = type(TypeType.__dict__) | |
NotImplementedType = type(NotImplemented) | |
# For Jython, the following two types are identical | |
GetSetDescriptorType = type(FunctionType.func_code) | |
MemberDescriptorType = type(FunctionType.func_globals) | |
del sys, _f, _g, _C, _x # Not for export |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(IN-PACKAGE :CLPYTHON) | |
(CLPYTHON.AST.NODE:|module-stmt| (CLPYTHON.AST.NODE:|suite-stmt| ((CLPYTHON.AST.TOKEN:|literal-expr| :STRING "Define names for all type symbols known in the standard interpreter. | |
Types that are part of optional modules (e.g. array) are not listed. | |
") (CLPYTHON.AST.NODE:|import-stmt| (((CLPYTHON.USER::|sys|) NIL))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.VALUE:|None|)) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|NoneType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|TypeType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|object|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|ObjectType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|int|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|IntType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|long|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|LongType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|float|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|FloatType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|bool|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|BooleanType|))) (CLPYTHON.AST.NODE:|try-except-stmt| (CLPYTHON.AST.NODE:|suite-stmt| ((CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|complex|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|ComplexType|))))) (((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE.EXCEPTION:|NameError|) NIL (CLPYTHON.AST.NODE:|suite-stmt| ((CLPYTHON.AST.NODE:|pass-stmt|))))) NIL) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|str|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|StringType|))) (CLPYTHON.AST.NODE:|try-except-stmt| (CLPYTHON.AST.NODE:|suite-stmt| ((CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|unicode|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|UnicodeType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|tuple-expr| ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|StringType|) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|UnicodeType|))) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|StringTypes|))))) (((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE.EXCEPTION:|NameError|) NIL (CLPYTHON.AST.NODE:|suite-stmt| ((CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|tuple-expr| ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|StringType|))) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|StringTypes|))))))) NIL) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|buffer|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|BufferType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|tuple|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|TupleType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|list|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|ListType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|dict|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|DictType|) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|DictionaryType|))) (CLPYTHON.AST.NODE:|funcdef-stmt| NIL (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_f|) (NIL NIL NIL NIL) (CLPYTHON.AST.NODE:|suite-stmt| ((CLPYTHON.AST.NODE:|pass-stmt|)))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_f|)) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|FunctionType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|lambda-expr| (NIL NIL NIL NIL) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.VALUE:|None|))) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|LambdaType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|attributeref-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_f|) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|func_code|))) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|CodeType|))) (CLPYTHON.AST.NODE:|funcdef-stmt| NIL (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_g|) (NIL NIL NIL NIL) (CLPYTHON.AST.NODE:|suite-stmt| ((CLPYTHON.AST.NODE:|yield-stmt| (CLPYTHON.AST.TOKEN:|literal-expr| :NUMBER 1))))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_g|) NIL NIL NIL NIL)) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|GeneratorType|))) (CLPYTHON.AST.NODE:|classdef-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::_C) (CLPYTHON.AST.NODE:|tuple-expr| NIL) (CLPYTHON.AST.NODE:|suite-stmt| ((CLPYTHON.AST.NODE:|funcdef-stmt| NIL (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_m|) (((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|self|)) NIL NIL NIL) (CLPYTHON.AST.NODE:|suite-stmt| ((CLPYTHON.AST.NODE:|pass-stmt|))))))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::_C)) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|ClassType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|attributeref-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::_C) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_m|))) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|UnboundMethodType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::_C) NIL NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_x|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_x|)) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|InstanceType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|attributeref-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_x|) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_m|))) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|MethodType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.FUNCTION:|len|)) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|BuiltinFunctionType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|attributeref-expr| (CLPYTHON.AST.NODE:|list-expr| NIL) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|append|))) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|BuiltinMethodType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|sys|)) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|ModuleType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|file|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|FileType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|xrange|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|XRangeType|))) (CLPYTHON.AST.NODE:|try-except-stmt| (CLPYTHON.AST.NODE:|suite-stmt| ((CLPYTHON.AST.NODE:|raise-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE.EXCEPTION:|TypeError|) NIL NIL))) (((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE.EXCEPTION:|TypeError|) NIL (CLPYTHON.AST.NODE:|suite-stmt| ((CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|subscription-expr| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|attributeref-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|sys|) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|exc_info|)) NIL NIL NIL NIL) (CLPYTHON.AST.TOKEN:|literal-expr| :NUMBER 2)) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|tb|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|tb|)) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|TracebackType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|attributeref-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|tb|) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|tb_frame|))) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|FrameType|))) (CLPYTHON.AST.NODE:|del-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|tb|)))))) NIL) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|slice|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|SliceType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.VALUE:|Ellipsis|)) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|EllipsisType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|attributeref-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|TypeType|) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER:|__dict__|))) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|DictProxyType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.VALUE:|NotImplemented|)) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|NotImplementedType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|attributeref-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|FunctionType|) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|func_code|))) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|GetSetDescriptorType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|attributeref-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|FunctionType|) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|func_globals|))) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|MemberDescriptorType|))) (CLPYTHON.AST.NODE:|del-stmt| (CLPYTHON.AST.NODE:|tuple-expr| ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|sys|) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_f|) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_g|) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::_C) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_x|))))))) | |
(IN-PACKAGE :CLPYTHON) | |
(CLPYTHON.AST.NODE:|module-stmt| (CLPYTHON.AST.NODE:|suite-stmt| ((CLPYTHON.AST.TOKEN:|literal-expr| :STRING "Define names for all type symbols known in the standard interpreter. | |
Types that are part of optional modules (e.g. array) are not listed. | |
") (CLPYTHON.AST.NODE:|import-stmt| (((CLPYTHON.USER::|sys|) NIL))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.VALUE:|None|)) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|NoneType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|TypeType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|object|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|ObjectType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|int|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|IntType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|long|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|LongType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|float|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|FloatType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|bool|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|BooleanType|))) (CLPYTHON.AST.NODE:|try-except-stmt| (CLPYTHON.AST.NODE:|suite-stmt| ((CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|complex|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|ComplexType|))))) (((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE.EXCEPTION:|NameError|) NIL (CLPYTHON.AST.NODE:|suite-stmt| ((CLPYTHON.AST.NODE:|pass-stmt|))))) NIL) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|str|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|StringType|))) (CLPYTHON.AST.NODE:|try-except-stmt| (CLPYTHON.AST.NODE:|suite-stmt| ((CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|unicode|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|UnicodeType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|tuple-expr| ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|StringType|) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|UnicodeType|))) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|StringTypes|))))) (((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE.EXCEPTION:|NameError|) NIL (CLPYTHON.AST.NODE:|suite-stmt| ((CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|tuple-expr| ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|StringType|))) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|StringTypes|))))))) NIL) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|buffer|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|BufferType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|tuple|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|TupleType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|list|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|ListType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|dict|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|DictType|) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|DictionaryType|))) (CLPYTHON.AST.NODE:|funcdef-stmt| NIL (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_f|) (NIL NIL NIL NIL) (CLPYTHON.AST.NODE:|suite-stmt| ((CLPYTHON.AST.NODE:|pass-stmt|)))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_f|)) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|FunctionType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|lambda-expr| (NIL NIL NIL NIL) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.VALUE:|None|))) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|LambdaType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|attributeref-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_f|) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|func_code|))) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|CodeType|))) (CLPYTHON.AST.NODE:|funcdef-stmt| NIL (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_g|) (NIL NIL NIL NIL) (CLPYTHON.AST.NODE:|suite-stmt| ((CLPYTHON.AST.NODE:|yield-stmt| (CLPYTHON.AST.TOKEN:|literal-expr| :NUMBER 1))))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_g|) NIL NIL NIL NIL)) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|GeneratorType|))) (CLPYTHON.AST.NODE:|classdef-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::_C) (CLPYTHON.AST.NODE:|tuple-expr| NIL) (CLPYTHON.AST.NODE:|suite-stmt| ((CLPYTHON.AST.NODE:|funcdef-stmt| NIL (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_m|) (((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|self|)) NIL NIL NIL) (CLPYTHON.AST.NODE:|suite-stmt| ((CLPYTHON.AST.NODE:|pass-stmt|))))))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::_C)) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|ClassType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|attributeref-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::_C) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_m|))) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|UnboundMethodType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::_C) NIL NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_x|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_x|)) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|InstanceType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|attributeref-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_x|) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_m|))) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|MethodType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.FUNCTION:|len|)) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|BuiltinFunctionType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|attributeref-expr| (CLPYTHON.AST.NODE:|list-expr| NIL) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|append|))) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|BuiltinMethodType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|sys|)) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|ModuleType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|file|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|FileType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|xrange|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|XRangeType|))) (CLPYTHON.AST.NODE:|try-except-stmt| (CLPYTHON.AST.NODE:|suite-stmt| ((CLPYTHON.AST.NODE:|raise-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE.EXCEPTION:|TypeError|) NIL NIL))) (((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE.EXCEPTION:|TypeError|) NIL (CLPYTHON.AST.NODE:|suite-stmt| ((CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|subscription-expr| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|attributeref-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|sys|) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|exc_info|)) NIL NIL NIL NIL) (CLPYTHON.AST.TOKEN:|literal-expr| :NUMBER 2)) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|tb|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|tb|)) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|TracebackType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|attributeref-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|tb|) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|tb_frame|))) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|FrameType|))) (CLPYTHON.AST.NODE:|del-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|tb|)))))) NIL) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|slice|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|SliceType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.VALUE:|Ellipsis|)) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|EllipsisType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|attributeref-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|TypeType|) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER:|__dict__|))) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|DictProxyType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.VALUE:|NotImplemented|)) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|NotImplementedType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|attributeref-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|FunctionType|) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|func_code|))) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|GetSetDescriptorType|))) (CLPYTHON.AST.NODE:|assign-stmt| (CLPYTHON.AST.NODE:|call-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER.BUILTIN.TYPE:|type|) ((CLPYTHON.AST.NODE:|attributeref-expr| (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|FunctionType|) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|func_globals|))) NIL NIL NIL) ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|MemberDescriptorType|))) (CLPYTHON.AST.NODE:|del-stmt| (CLPYTHON.AST.NODE:|tuple-expr| ((CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|sys|) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_f|) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_g|) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::_C) (CLPYTHON.AST.NODE:|identifier-expr| CLPYTHON.USER::|_x|))))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment