[pypy-commit] pypy py3.3: might as well return a list to match cpython
pjenvey
noreply at buildbot.pypy.org
Sun Aug 3 22:05:28 CEST 2014
Author: Philip Jenvey <pjenvey at underboss.org>
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):
More information about the pypy-commit
mailing list