How to access the document for __call__ from command line?
Peng Yu
pengyu.ut at gmail.com
Thu Oct 18 22:30:24 EDT 2012
Hi,
reference.pdf from python document has the following description. It
is not accessible from help() in the command line. Is there an
alternative so that I can quickly access these class attributes or
method names from the command line?
object.__call__(self [, args... ])
Called when the instance is “called” as a function; if this method is
defined, x(arg1, arg2, ...) is a
shorthand for x.__call__(arg1, arg2, ...).
--
Regards,
Peng
More information about the Python-list
mailing list