[New-bugs-announce] [issue19300] Swap keyword arguments in open() to make encoding easier to use

py.user report at bugs.python.org
Sat Oct 19 19:06:22 CEST 2013


New submission from py.user:

>>> print(open.__doc__)
open(file, mode='r', buffering=-1, encoding=None,
     errors=None, newline=None, closefd=True, opener=None) -> file object


It would be handy to use
open('file.txt', 'r', 'utf-8')

instead of
open('file.txt', 'r', encoding='utf-8')

----------
components: Interpreter Core
messages: 200445
nosy: py.user
priority: normal
severity: normal
status: open
title: Swap keyword arguments in open() to make encoding easier to use
type: enhancement
versions: Python 3.3, Python 3.4

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


More information about the New-bugs-announce mailing list