>>> import new
>>> dir(new)
['__builtins__', '__doc__', '__file__', '__name__', '__package__', 'classobj', 'code', 'function', 'instance', 'instancemethod', 'module']
-----------------------
>>> help(new)
Help on module new:
NAME
new - Create new objects of various types. Deprecated.
FILE
c:\python26\lib\new.py
DESCRIPTION
This module is no longer required except for backward compatibility.
Objects of most types can now be created by calling the type object.
No comments:
Post a Comment