Staging
v0.5.1
https://github.com/python/cpython
Revision 19c35bba5d54ac2c2990d301426c7e9ecb1c6ff5 authored by Neal Norwitz on 21 August 2006, 22:13:11 UTC, committed by Neal Norwitz on 21 August 2006, 22:13:11 UTC
  a unicode string in a build with wide unicode (UCS-4) support.

I will forward port to 2.6.  Can someone backport to 2.4?
1 parent bebdc9e
Raw File
Tip revision: 19c35bba5d54ac2c2990d301426c7e9ecb1c6ff5 authored by Neal Norwitz on 21 August 2006, 22:13:11 UTC
- Patch #1541585: fix buffer overrun when performing repr() on
Tip revision: 19c35bb
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