On 20 May 2015 at 01:02, Peter Otten <[email protected]> wrote: > If you start with an object dir() gives you a list of attribute names. To > get the actual attributes use > > attribute = getattr(object, attribute_name) > > Then print the attributes' docstring with > > print(attribute_name, attribute.__doc__) >
Thanks. That will save a lot of scrolling - and saving scrolling and typing is half the battle ;') -- Jim _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
