[Python-3000] bsddb finished for 2.6/3.0 (and "<class 'BytesWarning'>: str() on a bytes instance")

Jesus Cea jcea at jcea.es
Wed Sep 3 23:31:49 CEST 2008

Hash: SHA1

Christian Heimes wrote:
> Jesus Cea wrote:
>> I can't reproduce the issue in my local Python3.0 development version
>> (here, all tests passes fine). Any suggestion?.
> Yeah, use my byte warning mode of Python 3.0. Before your time in the
> core team I had a long discussion with Guido and a few others. The
> conclusion of the discussion was the byte warning mode.

So much to learn, so little time :). Do you have an URL at hand?

>> "Decoding" the "db.DB_VERSION_STRING" byte string would solve the error,
>> but I rather prefer to know WHY I am having this issue at all. My
>> Python3.0 "str()" has no any issue with byte values:
> It has no issues because Guido wanted str() to successed. Any comparison
> or conversion of a byte / bytearray instance with / to str is most
> likely a bug or design flaw in the application. The byte warning mode
> helps to discover hard to find bugs like "" == b"".

Just committed the "decode" thing: r66188.

- --
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea at jcea.es - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
jabber / xmpp:jcea at jabber.org         _/_/    _/_/          _/_/_/_/_/
.                              _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


More information about the Python-3000 mailing list