[pypy-commit] pypy numpy-record-dtypes: some renaming attempt

fijal noreply at buildbot.pypy.org
Sat Mar 3 18:03:07 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-record-dtypes
Changeset: r53141:06b6c2676f47
Date: 2012-03-03 09:02 -0800
http://bitbucket.org/pypy/pypy/changeset/06b6c2676f47/

Log:	some renaming attempt

diff --git a/pypy/module/micronumpy/interp_boxes.py b/pypy/module/micronumpy/interp_boxes.py
--- a/pypy/module/micronumpy/interp_boxes.py
+++ b/pypy/module/micronumpy/interp_boxes.py
@@ -232,7 +232,7 @@
     pass
 
 class W_StringBox(W_CharacterBox):
-    def descr__new__(space, w_subtype, w_arg):
+    def descr__new__string_box(space, w_subtype, w_arg):
         from pypy.module.micronumpy.interp_numarray import W_NDimArray
         from pypy.module.micronumpy.interp_dtype import new_string_dtype
 
@@ -244,7 +244,7 @@
 
 
 class W_UnicodeBox(W_CharacterBox):
-    def descr__new__(space, w_subtype, w_arg):
+    def descr__new__unicode_box(space, w_subtype, w_arg):
         from pypy.module.micronumpy.interp_numarray import W_NDimArray
         from pypy.module.micronumpy.interp_dtype import new_unicode_dtype
 
@@ -425,11 +425,11 @@
 
 W_StringBox.typedef = TypeDef("string_", (str_typedef, W_CharacterBox.typedef),
     __module__ = "numpypy",
-    __new__ = interp2app(W_StringBox.descr__new__.im_func),
+    __new__ = interp2app(W_StringBox.descr__new__string_box.im_func),
 )
 
 W_UnicodeBox.typedef = TypeDef("unicode_", (unicode_typedef, W_CharacterBox.typedef),
     __module__ = "numpypy",
-    __new__ = interp2app(W_UnicodeBox.descr__new__.im_func),
+    __new__ = interp2app(W_UnicodeBox.descr__new__unicode_box.im_func),
 )
                                           


More information about the pypy-commit mailing list