[Numpy-discussion] Code generator bug and fix?

Charles R Harris charlesr.harris@gmail....
Mon Apr 21 21:21:39 CDT 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://projects.scipy.org/pipermail/numpy-discussion/attachments/20080421/778f2b8e/attachment.html 


More information about the Numpy-discussion mailing list