[Tutor] How to learn messages frim help()?
=?GB2312?B?uqvP3Ma9?=
hxianping at gmail.com
Mon Jul 10 05:22:41 CEST 2006
Hi,all.For example,I want learn build-in function TYPE,do help(type)
and get message as following:
Help on class type in module __builtin__:
class type(object)
| type(object) -> the object's type
| type(name, bases, dict) -> a new type
|
| Methods defined here:
|
| __call__(...)
| x.__call__(...) <==> x(...)
|
| __cmp__(...)
| x.__cmp__(y) <==> cmp(x,y)
|
| __delattr__(...)
| x.__delattr__('name') <==> del x.name
|
| __getattribute__(...)
| x.__getattribute__('name') <==> x.name
|
| __hash__(...)
| x.__hash__() <==> hash(x)
......
Have TYPE defined these methods?
What relation with __call__,__cam__ etc?
Steve
More information about the Tutor
mailing list