[issue17437] Difference between open and codecs.open

2020-11-15 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___

[issue17437] Difference between open and codecs.open

2013-03-16 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola': In Python 2 the distinction between open() and codes.open() was clear because 'encoding' and 'errors' args were provided by codecs.open only. This is no longer the case in Python 3 since both args are provided also by open(). I'm probably missing

[issue17437] Difference between open and codecs.open

2013-03-16 Thread STINNER Victor
STINNER Victor added the comment: See also the PEP 400. I proposed (in the alternative) to make codecs.open() somehow an alias to open() (and add codecs.open_stream() for backward compatibility). -- nosy: +haypo ___ Python tracker