3.14.0a1 urljoin regression wrt //
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 77.2k
- Fork
- 35.9k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
Bug report
Bug description:
The tests of lxml do (simplified):
from urllib.parse import urljoin
urljoin('file:', '/foo/bar')
- On Python 3.13.0 and earlier, the result of the urljoin call is
file:///foo/bar. - On Python 3.14.0a1, the result of the urljoin call is
file:/foo/bar.
This change of behavior was introduced in fc897fcc01964649f023e0baa4c95d142e4e8a10 https://github.com/python/cpython/pull/123273 cc @serhiy-storchaka
The NEWS entry in that change does not seem to indicate this change was intentional.
CPython versions tested on:
3.14, CPython main branch
Operating systems tested on:
Linux
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con urllib.parse.urljoin ed esamina il cambiamento di comportamento introdotto da fc897fcc01964649f023e0baa4c95d142e4e8a10. Riproduci l’esempio in stile lxml su Python 3.14 e conferma che la correzione completata ripristini file:///foo/bar per urljoin('file:', '/foo/bar') senza causare regressioni rispetto al cambiamento segnalato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- networking
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 45/100