[Numpy-discussion] Code generator bug and fix?

Charles R Harris charlesr.harris at gmail.com
Mon Apr 21 22:21:39 EDT 2008


I've gotten my own python class with a logical_not method to work correctly
if I goto numpy/core/code_generators/generate_umath.py and change

'logical_not' :
    Ufunc(1, 1, None,
          'returns not x elementwise.',
          TD(noobj, out='?'),
          TD(M, f='logical_not', out='?'),
          ),

to

'logical_not' :
    Ufunc(1, 1, None,
          'returns not x elementwise.',
          TD(noobj, out='?'),
          TD(M, f='logical_not'),
          ),

There are a whole bunch of functions with this same error and before I start
changing them, I would like someone more familiar with this code to tell me
if I'm doing the right thing.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080421/778f2b8e/attachment.html>


More information about the NumPy-Discussion mailing list