error in os.chdir

Chris Angelico rosuav at gmail.com
Sat Jun 30 22:28:07 EDT 2018


On Sun, Jul 1, 2018 at 12:22 PM, eryk sun <eryksun at gmail.com> wrote:
>> So what if, internally, that's done by converting them to backslashes?
>> No Python program needs to care. In fact, there are other conversions,
>> too - the underlying file system is most likely using UTF-16 paths,
>> but your Python program needn't use UTF-16. No, it simply uses a plain
>> old string literal - a Unicode string. The OP need not be concerned
>> about any of these fiddlinesses, unless in some way they actually
>> affect Python.
>
> A few minor changes in in wording are both technically correct and
> don't make the text any more difficult to understand. You're the one
> blowing this up beyond proportion and making a mountain out of a small
> technical-correction mole hill. Please just let it pass.

If you can show me a way in which a Python program actually needs to
care about any of these distinctions when dealing with files on
Windows, then I'll admit that the technical correction was needed. You
won't be shelling out to the "dir" command, for instance.

ChrisA



More information about the Python-list mailing list