Das D Das D - 17 days ago 6
Python Question

how to get help options for data types in python

using below for loop to see all help options for dictionaries

for me in dir(dict):
if not me.startswith("__"):
help(dict.me)



error is AttributeError: type object 'dict' has no attribute me


Once resolve it i can see all data types help options

Answer

pivoting from the only answer and your question:

for me in dir(dict):
    if not me.startswith('__'):
        help(getattr(dict, me))