[New-bugs-announce] [issue15588] quopri: encodestring and decodestring handle bytes, not strings

patrick vrijlandt report at bugs.python.org
Wed Aug 8 09:30:59 CEST 2012


New submission from patrick vrijlandt:

quopri.py's functions encodestring and decodestring are documented to handle strings; and this is clearly suggested by their name. However, these functions accept and return bytes, not strings. This should be reflected in the documentation. 

Even better: deprecate these functions and introduce new ones with behaviour as suggested by their names: encode_string, encode_bytes etc.

----------
assignee: docs at python
components: Documentation, Library (Lib)
messages: 167672
nosy: docs at python, patrick.vrijlandt
priority: normal
severity: normal
status: open
title: quopri: encodestring and decodestring handle bytes, not strings
type: behavior
versions: Python 3.2

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


More information about the New-bugs-announce mailing list