[issue19300] Swap keyword arguments in open() to make encoding easier to use

2013-10-19 Thread Ezio Melotti
Ezio Melotti added the comment: That would be backward incompatible. -- nosy: +ezio.melotti resolution: -> rejected stage: -> committed/rejected status: open -> closed versions: -Python 3.3 ___ Python tracker __

[issue19300] Swap keyword arguments in open() to make encoding easier to use

2013-10-19 Thread py.user
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') -