James Saryerwinnie added the comment:
> What's the actual scenario that this broke?
I only noticed this because a project that I work on
(https://github.com/aws/chalice/) started failing CI for seemingly unrelated
changes. A specific test run is here:
https://github.com/jamesls/chal
New submission from James Saryerwinnie :
There was a change in behavior in Python 3.8.10 when using relative paths in
sys.path. It appears that the paths are now converted to absolute paths that
are cached and can cause import errors in some cases.
Repro:
$ cat repro.sh
#!/bin/bash
python
James Saryerwinnie added the comment:
I ran into this as well also using the embedded distribution for windows
(https://docs.python.org/3/using/windows.html#the-embeddable-package).
socket.getaddrinfo() will encode unicode hostnames using idna and trigger this
error if you call
James Saryerwinnie added the comment:
I confirmed the issue in tip. One of the issues with the original patch is
that it modifies the tokeneater method used by getblock which won't work
if the first token is any of the special cased tokens in the original patch
('@', 'def', 'class'). I've