Staging
v0.5.1
https://github.com/python/cpython
Revision 05e344954de5f4e55eb49dc44b0f8e1ec272a06c authored by Amaury Forgeot d'Arc on 10 September 2008, 22:04:45 UTC, committed by Amaury Forgeot d'Arc on 10 September 2008, 22:04:45 UTC
PyString_FromFormat which has an independent implementation, and uses "%zd".

This makes a difference on win64, where printf needs "%Id" to display
64bit values. For example, queue.__repr__ was incorrect.

Reviewed by Martin von Loewis.
1 parent 4dd3a50
Raw File
Tip revision: 05e344954de5f4e55eb49dc44b0f8e1ec272a06c authored by Amaury Forgeot d'Arc on 10 September 2008, 22:04:45 UTC
#3743: PY_FORMAT_SIZE_T is designed for the OS "printf" functions, not for
Tip revision: 05e3449
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