ยปCore Development>Code coverage>Lib/new.py

Python code coverage for Lib/new.py

#countcontent
1n/a"""Create new objects of various types. Deprecated.
2n/a
3n/aThis module is no longer required except for backward compatibility.
4n/aObjects of most types can now be created by calling the type object.
51"""
61from warnings import warnpy3k
71warnpy3k("The 'new' module has been removed in Python 3.0; use the 'types' "
81 "module instead.", stacklevel=2)
91del warnpy3k
10n/a
111from types import ClassType as classobj
121from types import FunctionType as function
131from types import InstanceType as instance
141from types import MethodType as instancemethod
151from types import ModuleType as module
16n/a
171from types import CodeType as code