[New-bugs-announce] [issue30412] mailbox : add option to prevent platform EOL conversion

adder report at bugs.python.org
Sat May 20 08:09:06 EDT 2017


New submission from adder:

The mailbox module will actively convert EOL format from the input mailbox, towards the EOL convention of the platform it is running on.

This is wrong.

If the mailbox originates from the same platform, as the code is executing on, it is an unnecessary conversion.
If the mailbox originates from a different platform, as the code is executing on, it is an incorrect conversion.

In general, it is best to be EOL preserving.

Please consider a solution which will be backwards compatible, by having an option when opening a mailbox to prevent EOL translations, which defaults to the current behaviour of EOL conversion.
That will prevent legacy code from breaking.

----------
components: Library (Lib)
messages: 294028
nosy: adder
priority: normal
severity: normal
status: open
title: mailbox : add option to prevent platform EOL conversion
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7

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


More information about the New-bugs-announce mailing list