This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: fix inspect.getargs() crash on def foo((bar)) (bug #891637)
Type: Stage:
Components: None Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: doko, jlgijsbers
Priority: normal Keywords: patch

Created on 2004-08-08 11:29 by jlgijsbers, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
inspect-sublistOfOne.diff jlgijsbers, 2004-08-08 11:29
Messages (2)
msg46583 - (view) Author: Johannes Gijsbers (jlgijsbers) * (Python triager) Date: 2004-08-08 11:29
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.
msg46584 - (view) Author: Matthias Klose (doko) * (Python committer) Date: 2004-08-15 17:17
Logged In: YES 
user_id=60903

Fixed in
 - Lib/inspect.py 1.53 and 1.47.8.2
 - Lib/test/test_inspect.py 1.15 and 1.12.8.3
History
Date User Action Args
2022-04-11 14:56:06adminsetgithub: 40716
2004-08-08 11:29:57jlgijsberscreate