[pypy-commit] pypy default: This needs to be a list ot be RPython

alex_gaynor noreply at buildbot.pypy.org
Wed Nov 9 23:53:43 CET 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r49069:62bc56457861
Date: 2011-11-09 17:53 -0500
http://bitbucket.org/pypy/pypy/changeset/62bc56457861/

Log:	This needs to be a list ot be RPython

diff --git a/pypy/interpreter/typedef.py b/pypy/interpreter/typedef.py
--- a/pypy/interpreter/typedef.py
+++ b/pypy/interpreter/typedef.py
@@ -16,11 +16,11 @@
         "NOT_RPYTHON: initialization-time only"
         self.name = __name
         if __base is None:
-            bases = ()
+            bases = []
         elif isinstance(__base, tuple):
-            bases = __base
+            bases = list(__base)
         else:
-            bases = (__base,)
+            bases = [__base]
         self.bases = bases
         self.hasdict = '__dict__' in rawdict
         self.weakrefable = '__weakref__' in rawdict


More information about the pypy-commit mailing list