14adfde8bc82dd39f59e0445588c3e599ada477dJosh Gao"""Create new objects of various types. Deprecated. 24adfde8bc82dd39f59e0445588c3e599ada477dJosh Gao 34adfde8bc82dd39f59e0445588c3e599ada477dJosh GaoThis module is no longer required except for backward compatibility. 44adfde8bc82dd39f59e0445588c3e599ada477dJosh GaoObjects of most types can now be created by calling the type object. 54adfde8bc82dd39f59e0445588c3e599ada477dJosh Gao""" 64adfde8bc82dd39f59e0445588c3e599ada477dJosh Gaofrom warnings import warnpy3k 74adfde8bc82dd39f59e0445588c3e599ada477dJosh Gaowarnpy3k("The 'new' module has been removed in Python 3.0; use the 'types' " 84adfde8bc82dd39f59e0445588c3e599ada477dJosh Gao "module instead.", stacklevel=2) 94adfde8bc82dd39f59e0445588c3e599ada477dJosh Gaodel warnpy3k 104adfde8bc82dd39f59e0445588c3e599ada477dJosh Gao 114adfde8bc82dd39f59e0445588c3e599ada477dJosh Gaofrom types import ClassType as classobj 124adfde8bc82dd39f59e0445588c3e599ada477dJosh Gaofrom types import FunctionType as function 134adfde8bc82dd39f59e0445588c3e599ada477dJosh Gaofrom types import InstanceType as instance 144adfde8bc82dd39f59e0445588c3e599ada477dJosh Gaofrom types import MethodType as instancemethod 154adfde8bc82dd39f59e0445588c3e599ada477dJosh Gaofrom types import ModuleType as module 164adfde8bc82dd39f59e0445588c3e599ada477dJosh Gao 174adfde8bc82dd39f59e0445588c3e599ada477dJosh Gaofrom types import CodeType as code 18