Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / src / nas,5.n2.os.2 / lib / python / lib / python2.4 / new.py
CommitLineData
86530b38
AT
1"""Create new objects of various types. Deprecated.
2
3This module is no longer required except for backward compatibility.
4Objects of most types can now be created by calling the type object.
5"""
6
7from types import ClassType as classobj
8from types import FunctionType as function
9from types import InstanceType as instance
10from types import MethodType as instancemethod
11from types import ModuleType as module
12
13# CodeType is not accessible in restricted execution mode
14try:
15 from types import CodeType as code
16except ImportError:
17 pass