Staging
v0.8.1
https://github.com/python/cpython
Revision 3aeda28b22cfaf697edf50c3f0d9e1d7e5ba1671 authored by Ronald Oussoren on 20 September 2009, 20:17:15 UTC, committed by Ronald Oussoren on 20 September 2009, 20:17:15 UTC
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74981 | ronald.oussoren | 2009-09-20 22:16:11 +0200 (Sun, 20 Sep 2009) | 3 lines

  * Make it easier to build custom installers (such as a 3-way universal build)
  * Upgrade bzip dependency to 1.0.5
........
1 parent ba0aa6b
Raw File
Tip revision: 3aeda28b22cfaf697edf50c3f0d9e1d7e5ba1671 authored by Ronald Oussoren on 20 September 2009, 20:17:15 UTC
Merged revisions 74981 via svnmerge from
Tip revision: 3aeda28
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 warnings import warnpy3k
warnpy3k("The 'new' module has been removed in Python 3.0; use the 'types' "
            "module instead.", stacklevel=2)
del warnpy3k

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