[Python-modules-team] Bug#673790: Broken API on new version
Florent Fourcot
florent.fourcot at resel.fr
Mon May 21 13:20:56 UTC 2012
Package: python-prettytable
Version: 0.6-1
Severity: grave
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 old script and has border effect on other applications
like weboob (http://packages.debian.org/sid/weboob). 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
Please consider to warn users about changes, or to provide compatibility with old
versions. Upstream doesn't provide release note to help the upgrade.
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-prettytable depends on:
ii python 2.7.2-10
ii python-support 1.0.14
python-prettytable recommends no packages.
python-prettytable suggests no packages.
-- no debconf information
More information about the Python-modules-team
mailing list