Added new optional credentials argument to SMTPHandler.__init__, and smtp.login(...
[python.git] / Lib / new.py
blob99a1c3fdc81908c70fb01bb1f9bcf864f4ea461b
1 """Create new objects of various types. Deprecated.
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 """
7 from types import ClassType as classobj
8 from types import FunctionType as function
9 from types import InstanceType as instance
10 from types import MethodType as instancemethod
11 from types import ModuleType as module
13 # CodeType is not accessible in restricted execution mode
14 try:
15 from types import CodeType as code
16 except ImportError:
17 pass