Author: Alex Gaynor <[email protected]>
Branch: numpy-dtype-refactor
Changeset: r49483:94b5cfa8e30a
Date: 2011-11-16 18:07 -0500
http://bitbucket.org/pypy/pypy/changeset/94b5cfa8e30a/
Log: update the meta data on these funcs
diff --git a/pypy/module/micronumpy/types.py b/pypy/module/micronumpy/types.py
--- a/pypy/module/micronumpy/types.py
+++ b/pypy/module/micronumpy/types.py
@@ -1,3 +1,4 @@
+import functools
import math
from pypy.module.micronumpy import interp_boxes
@@ -9,6 +10,7 @@
def simple_unary_op(func):
+ @functools.wraps(func)
def dispatcher(self, v):
return self.box(
func(
@@ -19,6 +21,7 @@
return dispatcher
def simple_binary_op(func):
+ @functools.wraps(func)
def dispatcher(self, v1, v2):
return self.box(
func(
@@ -30,6 +33,7 @@
return dispatcher
def raw_binary_op(func):
+ @functools.wraps(func)
def dispatcher(self, v1, v2):
return func(self,
self.for_computation(self.unbox(v1)),
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit