Ethan Furman <ethan <at> stoneleaf.us> writes: > > On 04/11/2016 07:56 AM, Antoine Pitrou wrote: > > >> 2) pathlib.Path accepts bytes -- > > > > Does it? Or are you proposing such a change? > > It used to (I posted a couple examples from 3.5.0). I finally rebuilt > with the latest and it no longer does.
This is surprising, since in its entire lifetime, pathlib was never supposed to support bytes inputs. See the argument check in the initial checkin of pathlib.py: https://hg.python.org/cpython/rev/43377dcfb801/#l6.571 Perhaps that slipped through at some point (and obviously no test was there to prevent it :-)). Regards Antoine. _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com