[issue6734] Imap lib implicit conversion from bytes to string

Marcin Bachry report at bugs.python.org
Thu Aug 20 12:53:44 CEST 2009


Marcin Bachry <hegel666 at gmail.com> added the comment:

It seems most IMAP4 methods accept str as arguments right now (I
checked: list, lsub, myrights, select, status, search, fetch) and
login() is a sole exception. I know the protocol is mostly ascii only,
but still having possibility of using str in the API feels convenient
and reasonable to me. Can't we convert str parameters to login() to
ascii too? It already done in other methods (the _command() method
iterates over args and converts them).

----------
nosy: +marcin.bachry

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


More information about the Python-bugs-list mailing list