[issue35131] Cannot access to customized paths within .pth file

Jason R. Coombs report at bugs.python.org
Sat Nov 3 10:05:00 EDT 2018


Jason R. Coombs <jaraco at jaraco.com> added the comment:

I'm only aware of one tool that writes .pth files, and that's setuptools, and it always writes ASCII (assuming package names are ASCII), so any encoding handling should be fine there.

> We could add a handler for UnicodeDecodeError that falls back on utf-8?

Yes, reasonable, but maybe we should consider instead _preferring_ UTF-8 and fall back to default encodings. That would be my preference.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35131>
_______________________________________


More information about the Python-bugs-list mailing list