Your message dated Mon, 4 Feb 2008 12:47:25 +0100
with message-id <[EMAIL PROTECTED]>
and subject line sarge not supported any more
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: python-mysqldb
Version: 1.2.1-p2-4
Severity: important
Hello,
after an update from woody to sarge, some of the scripts using
python-mysqldb stopped working, raising exceptions in code that used to
work.
The Str2Set function from this package
(/usr/lib/python2.4/site-packages/MySQLdb/converters.py) is the
following:
def Str2Set(s):
values = s.split(',')
return apply(str, tuple(values))
I am unsure whether this used to work or not, but, reading the python
documentation, this is not expected to work. I replaced
apply(str, tuple(values))
by
tuple( map( str, values ) )
and my scripts worked again.
I looked for this file in the original mysqldb from sourceforge, and it
seems the version supplied in the Debian package is very different from
the file from the original package.
I finally replaced the implementation of Str2Set with the implementation
from sourceforge, and things also work fine :
def Str2Set(s):
values = s.split(',')
return Set([ i for i in s.split(',') if i ])
However, the soureforge file differs much more than this, maybe an
update is required ?
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.22.6
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
--- End Message ---
--- Begin Message ---
Hello,
Sarge is oldstable, and will not be supported in the future.
thus i'm closing the bugreport.
If you discover this bug on etch or lenny, feel free to reopen the
bugreport.
greetings,
jonas
--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/python-modules-team