On Sat, Jan 23, 2021, at 22:43, Matt Wozniski wrote: > 1. Deprecate calling `open` for text mode (the default) unless an > `encoding=` is specified,
I have a suggestion, if this is going to be done: If the third positional argument to open is a string, accept it as encoding instead of buffering. Maybe even allow the fourth to be errors. It might be worthwhile to consider making the other arguments keyword-only - are they ever used positionally in real-world code? _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/HX37WBOP5PSMTVVNK7FVHLMEEGW4B2VX/ Code of Conduct: http://python.org/psf/codeofconduct/