Fix printing for Operand object
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Bắt đầu bằng cách tìm phần triển khai in Operand và đọc issue #19 để biết thêm ngữ cảnh. Xác nhận đầu ra hiện tại đối với các tên được đặt trong dấu ngoặc kép và các chuỗi rỗng, sau đó thay đổi biểu diễn để giữ lại một cách rõ ràng ranh giới của các operand, bao gồm cả Operand("").
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
When an Operand object is printed, if the name contains quotation marks, those marks are not printed (e.g. "hello" creates Operand("hello") which, when printed, appears as hello). This becomes a problem when the empty string ("") shows up as an operand, as nothing is printed. When such an operand (Operand("")) is contained as part of another object, such as CommandInvocationInitial, it will appear as though, when printed, the CommandInvocationInitial object does not actually contain an Operand("") when, in reality, it does. This is quite deceptive and could easily lead to annoying issues that are difficult to debug (in this case, the only way to tell that there is an Operand("") is to check the length of the CommandInvocationInitial object's operand list, which is not intuitive). My proposition would be to forcefully include quotation marks around every operand that is printed to ensure that it is always clear that they exist or to provide some clear indicator that any Operand("") instances are present such as some kind of keyword.
See #19 for more details on the issue.
- Ngôn ngữ chính
- Python
- Star
- 5
- Fork
- 7
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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.
Issue khác của binpash/annotations
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
binpash/annotations#27 ·
-
Could we make a generator of the InputOutput and Parallelizability objects from (legacy) jsonĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
binpash/annotations#25 ·
-
Move aggregator tests hereĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
binpash/annotations#17 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
binpash/annotations#16 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
binpash/annotations#12 · 1 bình luận ·
Tất cả issue của binpash/annotations
Issue tương tự
-
parse names a key after a top-level multi() threshold Bitcoin Core v31.1 refuses as not validĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
btclib-org/btclib-wallet#587 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Judgment-Pack/judgment-pack-spec#275 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ai-generated
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue priority: low size: XS
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 92/100
yeongseon/azure-functions-doctor-python#651 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Changaco/python-libarchive-c#146 ·