[ python-Bugs-1723875 ] inspect.formatargspec last argument ignored
SourceForge.net
noreply at sourceforge.net
Thu May 31 17:41:30 CEST 2007
Bugs item #1723875, was opened at 2007-05-22 20:46
Message generated for change (Comment added) made by draghuram
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1723875&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Patrick Dobbs (patrickcd)
Assigned to: Nobody/Anonymous (nobody)
Summary: inspect.formatargspec last argument ignored
Initial Comment:
from: patrick at laculine.com
The last argument of inspect.formatargspect() is a function to control the way the entire returned string is formatted:
...join=joinseq):
joinseq being a function at line 757 in inspect.py
However, this argument is ignored and joinseq is not called.
The line in question is inspect.py 794 it was:
return '(' + string.join(specs, ', ') + ')'
The function seems to work as advertised if this line is replaced by:
return join(specs)
----------------------------------------------------------------------
Comment By: Raghuram Devarakonda (draghuram)
Date: 2007-05-31 11:41
Message:
Logged In: YES
user_id=984087
Originator: NO
A simple look at the source proves your point. BTW, the same problem
exists for formatargvalues(). Do you think you can work up a patch? The
code change itself would be simple but the patch would require a test case.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1723875&group_id=5470
More information about the Python-bugs-list
mailing list