IDLE: Run ... Customized strips backslashes from arguments
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 77.2k
- Fork
- 36k
- Chỉ số merge pull request
- Chỉ số pull request đang chờ
Mô tả
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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với workflow Run... Customized của IDLE và tái hiện các trường hợp đường dẫn Windows được mô tả trong issue, bao gồm cả hành vi của mục đã lưu. Xem lại PR được liên kết gh-157635 trước khi thực hiện thay đổi; hoàn tất khi các đối số giữ nguyên dấu gạch chéo ngược và trường mục tùy chỉnh giữ nguyên đường dẫn đã nhập như mong đợi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- desktop
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 25/100