[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

Serhiy Storchaka report at bugs.python.org
Fri Nov 22 20:24:39 CET 2013


Serhiy Storchaka added the comment:

>  * I think you should add the flag to the constructor of the CodecInfo
>    tuple subclass and then set this in the resp. codecs. The extra
>    constructor class method looks too much like a hack and is
>    not needed.

I think that adding new keyword argument to public function is much worse than 
adding new private class method or private module level function. Arguments 
are always visible, while private methods and functions are usually hidden. 
New argument will confuse users.

----------

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


More information about the Python-bugs-list mailing list