python / python/cpython

Python 3.11 and above adding default module search path from the “PythonPath” registry key if the standard library was found already

Aperta
#119,920 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

OS-windows type-bug
Lingua principale
Python
Stelle
77.2k
Fork
35.9k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

Bug report

Bug description:

Please see https://discuss.python.org/t/behaviour-change-in-python-3-11-compatibility-break-or-genuine-fix/54729

There's also another issue highlited in the same module by the author, but it's not important as we can workaround by setting PYTHONNOUSERSITE as seen below.

"Including import site inadvertently enables the user site packages directory because the configuration with a ._pth file doesn’t explicitly disable it. I think it should because I can’t imagine why an embedding application would ever want that. You’ll have to set PYTHONNOUSERSITE to work around this."

CPython versions tested on:

3.10, 3.11, 3.12

Operating systems tested on:

Windows

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia dalla discussione Python collegata e riproduci il comportamento su Windows usando CPython 3.10, 3.11 e 3.12. Traccia il modo in cui la chiave del registro PythonPath contribuisce al percorso di ricerca dei moduli predefinito dopo che è stata trovata la libreria standard; il lavoro è completo quando il comportamento previsto e l'eventuale copertura di regressione necessaria sono stati stabiliti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
operating-systems
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.