New submission from Eric Devolder <[EMAIL PROTECTED]>:

creating a unicode string from an empty b'' does not result in '', but
produces "b''" instead.

>>> str(b'')
"b''"

Workaround: if the encoding is specified, the resulting string is fine.
>>> str(b'', 'ascii')
''

----------
components: Interpreter Core, Unicode
messages: 75220
nosy: keldonin
severity: normal
status: open
title: unexpected str.__init__() behaviour on b''
type: behavior
versions: Python 3.0

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4205>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to