From: LUK S. <shu...@po...> - 2004-02-01 06:35:35
|
Nils Wagner wrote: > ~/cvs/matplotlib/htdocs/screenshots> /usr/bin/python makeshots.py > Making screenshot simple_plot.py > Traceback (most recent call last): > File "simple_plot.py", line 1, in ? > from matplotlib.matlab import * > File "/usr/local/lib/python2.1/site-packages/matplotlib/matlab.py", > line 109, in ? > from mlab import * > File "/usr/local/lib/python2.1/site-packages/matplotlib/mlab.py", line > 147 > else: numFreqs = NFFT//2+1 > ^ > SyntaxError: invalid syntax > Not a syntax error any more in Python 2.3. <quote> In [1]: 3//2 Out[1]: 1 In [2]: 3/2 Out[2]: 1 In [3]: from __future__ import division In [4]: 3//2 Out[4]: 1 In [5]: 3/2 Out[5]: 1.5 </quote> Regards, ST -- |