The Python Policy document [1] states:

> For all supported Debian releases, sys.path does not include a 
> /usr/lib/pythonXY.zip entry.

I may not understand the sentence, or something, because it looks wrong to me 
as pythonXY looks to be in sys.path, at least on my Debian bookworm:

    $ /usr/bin/python3.10 -c 'print(__import__("sys").path)'
    ['', '/usr/lib/python310.zip', ...

    $ /usr/bin/python3.10 -S -c 'print(__import__("sys").path)'
    ['', '/usr/lib/python310.zip', ...

Any idea of what's wrong here?

[1]: https://www.debian.org/doc/packaging-manuals/python-policy/
-- 
[Julien Palard](https://mdk.fr)

Reply via email to