[pypy-svn] r78517 - pypy/trunk/pypy/annotation

fijal at codespeak.net fijal at codespeak.net
Sat Oct 30 13:35:43 CEST 2010

Author: fijal
Date: Sat Oct 30 13:35:41 2010
New Revision: 78517

sprinkle (object) around annotation as well

Modified: pypy/trunk/pypy/annotation/bookkeeper.py
--- pypy/trunk/pypy/annotation/bookkeeper.py	(original)
+++ pypy/trunk/pypy/annotation/bookkeeper.py	Sat Oct 30 13:35:41 2010
@@ -24,7 +24,7 @@
 from pypy.rpython import extregistry
 from pypy.tool.identity_dict import identity_dict
-class Stats:
+class Stats(object):
     def __init__(self, bookkeeper):
         self.bookkeeper = bookkeeper
@@ -137,7 +137,7 @@
     def consider_dict_delitem(self, dic):
         return dic
-class Bookkeeper:
+class Bookkeeper(object):
     """The log of choices that have been made while analysing the operations.
     It ensures that the same 'choice objects' will be returned if we ask
     again during reflowing.  Like ExecutionContext, there is an implicit
@@ -736,7 +736,7 @@
         return True
 # for parsing call arguments
-class RPythonCallsSpace:
+class RPythonCallsSpace(object):
     """Pseudo Object Space providing almost no real operation.
     For the Arguments class: if it really needs other operations, it means
     that the call pattern is too complex for R-Python.

Modified: pypy/trunk/pypy/annotation/classdef.py
--- pypy/trunk/pypy/annotation/classdef.py	(original)
+++ pypy/trunk/pypy/annotation/classdef.py	Sat Oct 30 13:35:41 2010
@@ -58,7 +58,7 @@
 #        same name in all subclasses of A, if any.  (Parent class attributes can
 #        be visible in reads from instances of subclasses.)
-class Attribute:
+class Attribute(object):
     # readonly-ness
     # SomeThing-ness
     # NB.  an attribute is readonly if it is a constant class attribute.
@@ -402,7 +402,7 @@
 # ____________________________________________________________
-class InstanceSource:
+class InstanceSource(object):
     instance_level = True
     def __init__(self, bookkeeper, obj):

Modified: pypy/trunk/pypy/annotation/description.py
--- pypy/trunk/pypy/annotation/description.py	(original)
+++ pypy/trunk/pypy/annotation/description.py	Sat Oct 30 13:35:41 2010
@@ -6,7 +6,7 @@
 from pypy.tool.sourcetools import valid_identifier
 from pypy.tool.pairtype import extendabletype
-class CallFamily:
+class CallFamily(object):
     """A family of Desc objects that could be called from common call sites.
     The call families are conceptually a partition of all (callable) Desc
     objects, where the equivalence relation is the transitive closure of
@@ -51,7 +51,7 @@
             self.total_calltable_size += 1
-class FrozenAttrFamily:
+class FrozenAttrFamily(object):
     """A family of FrozenDesc objects that have any common 'getattr' sites.
     The attr families are conceptually a partition of FrozenDesc objects,
     where the equivalence relation is the transitive closure of:
@@ -80,7 +80,7 @@
         self.attrs[attrname] = s_value
-class ClassAttrFamily:
+class ClassAttrFamily(object):
     """A family of ClassDesc objects that have common 'getattr' sites for a
     given attribute name.  The attr families are conceptually a partition
     of ClassDesc objects, where the equivalence relation is the transitive

Modified: pypy/trunk/pypy/annotation/dictdef.py
--- pypy/trunk/pypy/annotation/dictdef.py	(original)
+++ pypy/trunk/pypy/annotation/dictdef.py	Sat Oct 30 13:35:41 2010
@@ -77,7 +77,7 @@
             dictdef.dictvalue = self
-class DictDef:
+class DictDef(object):
     """A dict definition remembers how general the keys and values in that
     particular dict have to be.  Every dict creation makes a new DictDef,
     and the union of two dicts merges the DictKeys and DictValues that each

Modified: pypy/trunk/pypy/annotation/listdef.py
--- pypy/trunk/pypy/annotation/listdef.py	(original)
+++ pypy/trunk/pypy/annotation/listdef.py	Sat Oct 30 13:35:41 2010
@@ -6,7 +6,7 @@
 class TooLateForChange(Exception):
-class ListItem:
+class ListItem(object):
     mutated = False    # True for lists mutated after creation
     resized = False    # True for lists resized after creation
     range_step = None  # the step -- only for lists only created by a range()
@@ -117,7 +117,7 @@
         return updated
-class ListDef:
+class ListDef(object):
     """A list definition remembers how general the items in that particular
     list have to be.  Every list creation makes a new ListDef, and the union
     of two lists merges the ListItems that each ListDef stores."""

Modified: pypy/trunk/pypy/annotation/specialize.py
--- pypy/trunk/pypy/annotation/specialize.py	(original)
+++ pypy/trunk/pypy/annotation/specialize.py	Sat Oct 30 13:35:41 2010
@@ -100,7 +100,7 @@
 # ____________________________________________________________________________
 # specializations
-class MemoTable:
+class MemoTable(object):
     def __init__(self, funcdesc, args, value):
         self.funcdesc = funcdesc
         self.table = {args: value}

More information about the Pypy-commit mailing list