Commits

Philip Jenvey  committed e6da813

fix function identifier clashing breaking translation

  • Participants
  • Parent commits f43f866
  • Branches py3.3

Comments (0)

Files changed (2)

File pypy/interpreter/special.py

 
 
 class Ellipsis(W_Root):
+
+    @staticmethod
+    def descr_new_ellipsis(space, w_type):
+        return space.w_Ellipsis
+
     def descr__repr__(self, space):
         return space.wrap('Ellipsis')
 
 
 class NotImplemented(W_Root):
+
+    @staticmethod
+    def descr_new_notimplemented(space, w_type):
+        return space.w_NotImplemented
+
     def descr__repr__(self, space):
         return space.wrap('NotImplemented')

File pypy/interpreter/typedef.py

 Cell.typedef.acceptable_as_base_class = False
 
 Ellipsis.typedef = TypeDef("Ellipsis",
-    __new__ = interp2app(lambda space, w_type: space.w_Ellipsis),
+    __new__ = interp2app(Ellipsis.descr_new_ellipsis),
     __repr__ = interp2app(Ellipsis.descr__repr__),
 )
 Ellipsis.typedef.acceptable_as_base_class = False
 
 NotImplemented.typedef = TypeDef("NotImplemented",
-    __new__ = interp2app(lambda space, w_type: space.w_NotImplemented),
+    __new__ = interp2app(NotImplemented.descr_new_notimplemented),
     __repr__ = interp2app(NotImplemented.descr__repr__),
 )
 NotImplemented.typedef.acceptable_as_base_class = False