Bugs item #925628, was opened at 2004-03-29 16:34
Message generated for change (Comment added) made by tjreedy
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=925628&group_id=5470
Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 2
Submitted By: Jim Jewett (jimjjewett)
Assigned to: Nobody/Anonymous (nobody)
Summary: help does not help with imported objects
Initial Comment:
help(re) just says it is a wrapper for sre. To get actually
help, you need to explicitly import sre as well.
re.__doc__ = re.__doc__ + sre.__doc__ helps, but still
does not list information on classes or exported functions.
Specific requests, such as
help(re.subn)
do work; it is only the module-level help that is lacking
when a module reexports imported objects.
----------------------------------------------------------------------
Comment By: Terry J. Reedy (tjreedy)
Date: 2004-03-30 12:50
Message:
Logged In: YES
user_id=593130
I am not sure a see a bug here (as opposed to enhancement
request). re.__all__ and dir(re) list exported names. help
(re.engine) gets the multipage doc from the wrapped engine
without importing it. The re doc string could be enhanced by
adding a FOR MORE section that says so.
Automatically adding sre would have been wrong when there
were multiple engines in the distribution. Not sure if are or
will be in 2.4, but there could be in the future again.
----------------------------------------------------------------------