All,
What's the mechanism to submit tickets ?
I just ran this rather obscure bug that has been reported on numpy/scipy:
when import matplotlib when python is started with the -OO flag, a TypeError
is raised:
File "/usr/lib64/python2.4/site-packages/matplotlib/figure.py", line 623, in
Figure
add_axes.__doc__ = add_axes.__doc__ %
(", ".join(get_projection_names()), '%(Axes)s')
TypeError: unsupported operand type(s) for %: 'NoneType' and 'tuple'
(that's r6097).
The trick is to use a command such as:
add_axes.__doc__ = ((add_axes.__doc__ or '') %
(", ".join(get_projection_names()), '%(Axes)s')) or None
everywhere needed.
Thx a lot in advance.
Pierre GM wrote:
All,
What's the mechanism to submit tickets ?
Pierre,
There is a tracker, http://sourceforge.net/tracker/?group_id=80706&atid=560720
but it is better to start exactly as you have, with a message to this list.
I just ran this rather obscure bug that has been reported on numpy/scipy:
when import matplotlib when python is started with the -OO flag, a TypeError is raised:
File "/usr/lib64/python2.4/site-packages/matplotlib/figure.py", line 623, in Figure
add_axes.__doc__ = add_axes.__doc__ % (", ".join(get_projection_names()), '%(Axes)s')
TypeError: unsupported operand type(s) for %: 'NoneType' and 'tuple'
Why would one want to use -OO when running matplotlib? Is it essential to be able to do this?
(that's r6097).
The trick is to use a command such as:
add_axes.__doc__ = ((add_axes.__doc__ or '') % (", ".join(get_projection_names()), '%(Axes)s')) or None
everywhere needed.
Clever, but it strikes me as a bit too ugly to sprinkle throughout mpl.
Numpy has the same problem (via nosetester.py, if not elsewhere), so fixing mpl alone won't help.
Eric