diff options
author | Christian Heimes <christian@cheimes.de> | 2007-11-28 08:28:28 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2007-11-28 08:28:28 (GMT) |
commit | c9543e42330e5f339d6419eba6a8c5a61a39aeca (patch) | |
tree | ee3c677e808d015b6c142e1cca28337e08839818 /Lib/new.py | |
parent | ceee0773d262bfe876e40da927b03279ed9f8419 (diff) | |
download | cpython-c9543e42330e5f339d6419eba6a8c5a61a39aeca.zip cpython-c9543e42330e5f339d6419eba6a8c5a61a39aeca.tar.gz cpython-c9543e42330e5f339d6419eba6a8c5a61a39aeca.tar.bz2 |
Removed the new module
Removed a lot of types from the 'types' module that are available through builtins.
Diffstat (limited to 'Lib/new.py')
-rw-r--r-- | Lib/new.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Lib/new.py b/Lib/new.py deleted file mode 100644 index 6ce9a55..0000000 --- a/Lib/new.py +++ /dev/null @@ -1,14 +0,0 @@ -"""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 warn as _warn -_warn("The 'new' module is not supported in 3.x, use the 'types' module " - "instead.", DeprecationWarning, 2) - -classobj = type -from types import FunctionType as function -from types import MethodType as instancemethod -from types import ModuleType as module -from types import CodeType as code |