[ python-Bugs-1772489 ] dir() on traceback objects returns an empty list

SourceForge.net noreply at sourceforge.net
Tue Aug 14 19:54:45 CEST 2007


Bugs item #1772489, was opened at 2007-08-11 22:25
Message generated for change (Comment added) made by collinwinter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1772489&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 Interpreter Core
Group: Python 3000
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Collin Winter (collinwinter)
Assigned to: Nobody/Anonymous (nobody)
Summary: dir() on traceback objects returns an empty list

Initial Comment:
The current status of the py3k branch is that calling dir() on a traceback object does not produce the expected results: a 4-element list of the tb_* attributes. The attached patch restores this behaviour and adds a regression test to test_builtins.

----------------------------------------------------------------------

>Comment By: Collin Winter (collinwinter)
Date: 2007-08-14 13:54

Message:
Logged In: YES 
user_id=1344176
Originator: YES

Submitted as r57028.

----------------------------------------------------------------------

Comment By: Neal Norwitz (nnorwitz)
Date: 2007-08-11 22:34

Message:
Logged In: YES 
user_id=33168
Originator: NO

I was the one that broke this when I removed __members__ and __methods__. 
I was hoping we could get rid of the getattr.  See the XXX comment near the
top of the file.  If that can't be removed this patch should at least by
applied.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1772489&group_id=5470


More information about the Python-bugs-list mailing list