shunwang / numexpr

Automatically exported from code.google.com/p/numexpr
MIT License
0 stars 0 forks source link

extension to necompiler.evaluate breaks Python 2.4 + 2.5 compatibility #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Build latest release
2. import numexpr

What is the expected output? What do you see instead?
dlopen("/sw32/lib/python2.5/site-packages/numexpr/interpreter.so", 2);
import numexpr.interpreter # dynamically loaded from 
/sw32/lib/python2.5/site-packages/numexpr/interpreter.so
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/sw32/lib/python2.5/site-packages/numexpr/__init__.py", line 39, in <module>
    from numexpr.necompiler import NumExpr, disassemble, evaluate
  File "/sw32/lib/python2.5/site-packages/numexpr/necompiler.py", line 679
    return compiled_ex(*arguments, out=out, order=order, casting=casting, ex_uses_vml=ex_uses_vml)
                                     ^
SyntaxError: invalid syntax

What version of the product are you using? On what operating system?
numexpr 2.0 against Python < 2.6 (tested on OSX 10.5/ppc and 10.6/x86_64)

Please provide any additional information below.
I assume passing the additional arguments is a feature missing from 2.4/2.5 - 
possibly there is another way to add "out" etc. to **kwargs?

Original issue reported on code.google.com by dhom...@gwdg.de on 30 Nov 2011 at 8:04

GoogleCodeExporter commented 9 years ago
Ok, I think this has been fixed in revision a403076cac96.  However, I don't 
have a Python 2.4 or 2.5 box at hand now.  Could you confirm that this works 
for you?

Original comment by fal...@gmail.com on 31 Dec 2011 at 11:11

GoogleCodeExporter commented 9 years ago
This fix has been confirmed to work against 2.5 by Antonio Valentino (with the 
exception of the multiprocess issue in test suite; fixed in revision 
75cd5036c593).  

Python 2.4 is still showing a lot of problems, so this is going to be 
unsupported (revision 64bee73e4f30).

Closing ticket.

Original comment by fal...@gmail.com on 31 Dec 2011 at 2:15