python / python/cpython

`sqlite3` help message shows wrong EOF key on Windows

Đang mở
#139,105 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

stdlib topic-sqlite3 type-bug
Ngôn ngữ chính
Python
Star
77.2k
Fork
35.9k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

Bug report

Bug description:
# enter the interactive sqlite3 console
python -m sqlite3
# print the help message
>> .help
  • expect on Windows
Enter SQL code or one of the below commands, and press enter.

.version    Print underlying SQLite library version
.help       Print this help message
.quit       Exit the CLI, equivalent to CTRL-Z
  • what we get now
Enter SQL code or one of the below commands, and press enter.

.version    Print underlying SQLite library version
.help       Print this help message
.quit       Exit the CLI, equivalent to CTRL-D

This issue is actually found by @yihong0618

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Linked PRs
  • gh-139106

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với entry point python -m sqlite3 và tái hiện .help trên Windows. Theo dõi đường đi định dạng dòng trợ giúp của .quit, sau đó xác minh rằng thông báo ghi CTRL-Z trên Windows trong khi vẫn giữ nguyên các lệnh khác được hiển thị.

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, sqlite
Lĩnh vực
cli
Loại issue
Lỗi
Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.