python / python/cpython

Url starting with file:\\ no longer works in urllib since 3.14

Aperta
#156,325 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@serhiy-storchaka ci sta già lavorando.

Dal 25/8/2026.

stdlib 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:
from urllib.request import urlopen
with urlopen("file:\\C:/temp/test.txt") as response:
    print(response.read())

That works in python 313 but fails in 314

Just checking if it's intended change? This resulted failure when upgrading 313->314

Same url works in webbrowser, Firefox, Edge, in Windows 11

CPython versions tested on:

3.14

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.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.