IDLE: Run ... Customized strips backslashes from arguments
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 77.2k
- Fork
- 36k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
PART 1/2
Actions
In editor, do "Run... Customized"
In text box, Paste or type a valid Windows path (e.g.: c:\Users, \\server\share)
Select "OK"
Expected response:
script receives argument as entered without modification just as it does when run on the command line (e.g.: python prog.py c:\users)
Actual response:
script receives argument with backslashes treated as escape characters (e.g.: c:users, \servershare)
Workaround:
argument is not altered if entered in quotes. This is not the same behavior as the command line where quotes are accepted as part of the argument.
Part 2/2
Actions
In editor, do "Run... Customized"
Expected response:
text box is populated with previous entry, a legal windows path (e.g. `c:\Users)
Actual response:
text box is populated with previous entry mangled as above surrounded by curly braces (e.g.: {c:users}, {\serverpath}). If workaround above is used, then the string is correct, but quotes are gone and curly braces are present (e.g.: {c:\users}, {\\server\share}
System information
Windows 10 Home x86-64 (21H1 build 19043.1706)
Idle version 3.10.4
Linked PRs
- gh-157635
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 il workflow Run... Customized di IDLE e riproduci i casi di percorsi Windows descritti nell’issue, incluso il comportamento delle voci salvate. Esamina il PR collegato gh-157635 prima di apportare modifiche; il lavoro è completato quando gli argomenti mantengono i loro backslash e il campo della voce personalizzata conserva il percorso inserito come previsto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- desktop
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 25/100