Staging
v0.8.1
https://github.com/python/cpython
Revision 04c897a2a91900172c8144f2ad9048ab7c609b77 authored by Andrew M. Kuchling on 31 July 2006, 13:18:27 UTC, committed by Andrew M. Kuchling on 31 July 2006, 13:18:27 UTC
1 parent 4bcfe53
Raw File
Tip revision: 04c897a2a91900172c8144f2ad9048ab7c609b77 authored by Andrew M. Kuchling on 31 July 2006, 13:18:27 UTC
Mention csv newline changes
Tip revision: 04c897a
new.py
"""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.
"""

from types import ClassType as classobj
from types import FunctionType as function
from types import InstanceType as instance
from types import MethodType as instancemethod
from types import ModuleType as module

# CodeType is not accessible in restricted execution mode
try:
    from types import CodeType as code
except ImportError:
    pass
back to top