Author: Philip Jenvey <[email protected]>
Branch: py3.3
Changeset: r72684:2c1d4539a787
Date: 2014-08-03 13:04 -0700
http://bitbucket.org/pypy/pypy/changeset/2c1d4539a787/
Log: might as well return a list to match cpython
diff --git a/pypy/interpreter/pytraceback.py b/pypy/interpreter/pytraceback.py
--- a/pypy/interpreter/pytraceback.py
+++ b/pypy/interpreter/pytraceback.py
@@ -51,8 +51,8 @@
self.next = space.interp_w(PyTraceback, w_next, can_be_None=True)
def descr__dir__(self, space):
- return space.newtuple([space.wrap(n) for n in
- ['tb_frame', 'tb_next', 'tb_lasti', 'tb_lineno']])
+ return space.newlist([space.wrap(n) for n in
+ ('tb_frame', 'tb_next', 'tb_lasti', 'tb_lineno')])
def record_application_traceback(space, operror, frame, last_instruction):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit