summaryrefslogtreecommitdiffstats
path: root/Lib/new.py
blob: e6079c2bb24febb85af452f4546efbbe9cd8999a (plain)
1
2
3
4
5
6
7
8
9
10
11
"""Create new objects of various types.  Deprecated.

This module is no longer required except for backward compatibility.
Objects of most types can now be created by calling the type object.
"""

classobj = type
from types import FunctionType as function
from types import MethodType as instancemethod
from types import ModuleType as module
from types import CodeType as code