[Patches] [ python-Patches-1005466 ] fix inspect.getargs() crash on
def foo((bar)) (bug #891637)
SourceForge.net
noreply at sourceforge.net
Sun Aug 8 13:29:57 CEST 2004
Patches item #1005466, was opened at 2004-08-08 13:29
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1005466&group_id=5470
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Johannes Gijsbers (jlgijsbers)
Assigned to: Nobody/Anonymous (nobody)
Summary: fix inspect.getargs() crash on def foo((bar)) (bug #891637)
Initial Comment:
inspect.getargs() assumes that Python generates the
UNPACK_TUPLE or UNPACK_SEQUENCE bytecodes when a
sublist is used. However, when the sublist has length 1
Python just optimizes away those bytecodes. It only
generates a STORE_FAST, even though it does take the
path used for sublists. This patch fixes this case in
inspect.getargs().
This fixes http://python.org/sf/891637: pydoc crashes
on a class property.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1005466&group_id=5470
More information about the Patches
mailing list