[New-bugs-announce] [issue4874] decoding functions in _codecs module accept str arguments

Antoine Pitrou report at bugs.python.org
Thu Jan 8 00:48:16 CET 2009


New submission from Antoine Pitrou <pitrou at free.fr>:

The following function calls should raise a TypeError instead. Encoding
functions are fine (they only accept str).

>>> import codecs
>>> codecs.utf_8_decode('aa')
('aa', 2)
>>> codecs.utf_8_decode('éé')
('éé', 4)
>>> codecs.latin_1_decode('éé')
('éé', 4)

----------
components: Extension Modules
messages: 79384
nosy: pitrou
priority: release blocker
severity: normal
status: open
title: decoding functions in _codecs module accept str arguments
type: behavior
versions: Python 3.0, Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4874>
_______________________________________


More information about the New-bugs-announce mailing list