Staging
v0.5.1
https://github.com/python/cpython
Revision 7e580c9eacf8439e6adbfae8ebfb6e82748d4059 authored by Andrew M. Kuchling on 29 September 2006, 12:41:36 UTC, committed by Andrew M. Kuchling on 29 September 2006, 12:41:36 UTC
SF patch #1227568, bug #1219273, Expression AST node not documented.
Backport candidate if anyone cares.
1 parent 602117a
Raw File
Tip revision: 7e580c9eacf8439e6adbfae8ebfb6e82748d4059 authored by Andrew M. Kuchling on 29 September 2006, 12:41:36 UTC
[Backport rev. 39645 by nnorwitz]
Tip revision: 7e580c9
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