Staging
v0.5.1
https://github.com/python/cpython
Revision b1affc517f67037fcd9027cf92fda3424b80c1ea authored by Mark Dickinson on 04 April 2010, 22:09:21 UTC, committed by Mark Dickinson on 04 April 2010, 22:09:21 UTC
Also add an example of constructing a Decimal directly from a float,
update the quickstart tutorial, and tweak another couple of
sentences.
1 parent bb006cf
Raw File
Tip revision: b1affc517f67037fcd9027cf92fda3424b80c1ea authored by Mark Dickinson on 04 April 2010, 22:09:21 UTC
Add versionchanged entry for Decimal(float) construction.
Tip revision: b1affc5
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

from types import CodeType as code
back to top