Pierre GM | 17 Sep 01:45

Submitting tickets

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.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Eric Firing | 17 Sep 03:35
Favicon

Re: Submitting tickets

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.
(Continue reading)


Gmane