A possible bug with help

C

Colin J. Williams

The interactive function help(object) generally delivers the doc string
of the object and, in the case of a class, with the doc strings of the
methods, properties and attributes.

If the object is a property, then help doesn't return the doc defined
for that property.

For example:Help on property:

<property object at 0x00A7D8A0>

In this case m is a module, m.M is a class and m.M.A is a property of M,
defined as:
A= property(fget= toArray,
doc= 'Deliver the data as an array.')
Colin W.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
474,201
Messages
2,571,048
Members
47,647
Latest member
NelleMacy9

Latest Threads

Top