[issue4874] decoding functions in _codecs module accept str arguments
STINNER Victor
report at bugs.python.org
Thu Jan 8 01:59:08 CET 2009
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
Patch replacing "s*" parsing format by "y*" for:
- utf_7_decode()
- utf_8_decode()
- utf_16_decode()
- utf_16_le_decode()
- utf_16_be_decode()
- utf_16_ex_decode()
- utf_32_decode()
- utf_32_le_decode()
- utf_32_be_decode()
- utf_32_ex_decode()
- unicode_escape_decode()
- raw_unicode_escape_decode()
- latin_1_decode()
- ascii_decode()
- charmap_decode()
- mbcs_decode()
Using run_tests.sh, all tests are ok (with 19 skipped tests). I guess
that there is not tests for all these functions :-/
Note: codecs documentation was already correct:
.. method:: Codec.decode(input[, errors])
(...)
*input* must be a bytes object or one which provides the read-only
character
buffer interface -- for example, buffer objects and memory mapped
files.
----------
keywords: +patch
nosy: +haypo
Added file: http://bugs.python.org/file12641/_codecs_bytes.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4874>
_______________________________________
More information about the Python-bugs-list
mailing list