[New-bugs-announce] [issue24967] add errors='ignore' to print kwargs

Lukáš Němec report at bugs.python.org
Mon Aug 31 10:17:24 CEST 2015


New submission from Lukáš Němec:

Please add errors='...' to print's kwargs and pass it to codecs that are called from print. Sometimes you have undecodable/unencodable characters that you want to remove from the printed text.

Now you need to call 'mytext'.encode('enc', errors='replace').decode('enc') to achieve the same result. This would be just a shortcut.

Thank you :)

----------
messages: 249389
nosy: Lukáš.Němec
priority: normal
severity: normal
status: open
title: add errors='ignore' to print kwargs
versions: Python 3.3, Python 3.4, Python 3.5, Python 3.6

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


More information about the New-bugs-announce mailing list