[Python-modules-team] Bug#673790: Bug#673790: Broken API on new version
Sandro Tosi
morph at debian.org
Mon May 21 18:09:28 UTC 2012
severity 673790 normal
thanks
Hello,
On Mon, May 21, 2012 at 3:20 PM, Florent Fourcot
<florent.fourcot at resel.fr> wrote:
> The new version of python-prettytable use an other API than the 0.5.
> Extract of the changelog:
> * Replaced all setter methods with managed attributes
>
> The new API breaks
this is somehow possible for 0.* modules/libraries.
> The example script is
> broken too:
>
> $ python /usr/share/doc/python-prettytable/examples/prettytable-example.py
> Traceback (most recent call last):
> File "/usr/share/doc/python-prettytable/examples/prettytable-example.py", line 20, in <module>
> main()
> File "/usr/share/doc/python-prettytable/examples/prettytable-example.py", line 9, in main
> x.set_field_align("City name", "l") # Left align city names
> File "/usr/lib/pymodules/python2.7/prettytable.py", line 163, in __getattr__
> raise AttributeError(name)
> AttributeError: set_field_align
this has been fixed in svn
> Please consider to warn users about changes, or to provide compatibility with old
> versions. Upstream doesn't provide release note to help the upgrade.
I was working with upstream to release also documentation along with
the code. it should have been done with 0.6 release but there were
some problems. Next will have upstream doc with it, I'll close this
bug at that time.
Regards,
--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi
More information about the Python-modules-team
mailing list