Guido van Rossum | 94c9d90 | 2002-06-16 01:22:13 +0000 | [diff] [blame] | 1 | """Create new objects of various types. Deprecated. |
| 2 | |
| 3 | This module is no longer required except for backward compatibility. |
| 4 | Objects of most types can now be created by calling the type object. |
| 5 | """ |
| 6 | |
Guido van Rossum | 1325790 | 2007-06-07 23:15:56 +0000 | [diff] [blame^] | 7 | classobj = type |
Guido van Rossum | 94c9d90 | 2002-06-16 01:22:13 +0000 | [diff] [blame] | 8 | from types import FunctionType as function |
Guido van Rossum | 94c9d90 | 2002-06-16 01:22:13 +0000 | [diff] [blame] | 9 | from types import MethodType as instancemethod |
| 10 | from types import ModuleType as module |
Guido van Rossum | a8add0e | 2007-05-14 22:03:55 +0000 | [diff] [blame] | 11 | from types import CodeType as code |