~ $ pip3 install pdir2
>>>import pdir
>>> pdir(pdir)
special attribute:
__class__, __dict__, __doc__, __module__, __weakref__
abstract class:
__subclasshook__
object customization:
__format__, __hash__, __init__, __new__, __repr__, __sizeof__, __str__
rich comparison:
__eq__, __ge__, __gt__, __le__, __lt__, __ne__
attribute access:
__delattr__, __dir__, __getattribute__, __setattr__
class customization:
__init_subclass__
container:
__getitem__, __len__
pickle:
__reduce__, __reduce_ex__
descriptor:
methods: @property with getter, Returns all methods of the inspected object.
own: @property with getter, Returns attributes that are not inhterited from parent classes.
properties: @property with getter, Returns all properties of the inspected object.
public: @property with getter, Returns public attributes of the inspected object.
function:
index:
s: Searches for names that match some pattern.
search: Searches for names that match some pattern.
pdir2 module
最新推荐文章于 2021-04-26 23:33:31 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)