upiterbarg / mpmath

Automatically exported from code.google.com/p/mpmath
Other
0 stars 0 forks source link

SyntaxError: invalid syntax in optimization.py", line 819 #107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. python setup.py install
2.
3.

What is the expected output? 

What do you see instead?

byte-compiling /usr/lib/python2.4/site-packages/mpmath/optimization.py to
optimization.pyc
  File "/usr/lib/python2.4/site-packages/mpmath/optimization.py", line 819
    return matrix(x0) if multidimensional else x0[0]
                       ^
SyntaxError: invalid syntax

What version of the product are you using? On what operating system?

svn version.
Please provide any additional information below.

python2.4

Original issue reported on code.google.com by nils...@googlemail.com on 2 Dec 2008 at 5:36

GoogleCodeExporter commented 9 years ago
Python 2.4 does not support this syntax, sorry, I was not aware of this. 
Luckily,
this is easy to fix. :)

Original comment by Vinzent.Steinberg@gmail.com on 2 Dec 2008 at 8:10

GoogleCodeExporter commented 9 years ago
Should be fixed now (tests pass for me).

Original comment by fredrik....@gmail.com on 3 Dec 2008 at 11:54

GoogleCodeExporter commented 9 years ago
Thank you very much ! Works for me.

Original comment by nils...@googlemail.com on 4 Dec 2008 at 7:43

GoogleCodeExporter commented 9 years ago
No problem; thanks for the report :)

Original comment by fredrik....@gmail.com on 4 Dec 2008 at 7:52