In-place array repetition changes values without updating serialized TOML
Maintainer thường phản hồi trong vòng 3 ngà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
- 35/100
Hướng nghiên cứu
Start with the array's in-place repetition behavior and the existing clear() and extend() paths mentioned in the issue. Add tests for a *= 0, a *= 2, and negative repetition that compare the array values, serialized TOML, and a subsequent mutation. Done means all three stay synchronized; the issue links open pull request #647, so check its status before starting.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
On current master (858186a3), in-place array repetition changes the Python list but leaves the serialized TOML unchanged:
import tomlkit
doc = tomlkit.parse("a = [1, 2]\n")
a = doc["a"]
a *= 0
assert a == []
print(tomlkit.dumps(doc)) # still a = [1, 2]
With a *= 2, the values become [1, 2, 1, 2], but the document still serializes [1, 2]. Negative repetition similarly clears the list without clearing the rendered values. The array remains the same object attached to the document.
I plan to synchronize this existing list operation by using the array's current clear() / extend() paths, with tests that compare values, serialization and subsequent mutation. This does not change sorting/reordering behavior discussed in #233.
Prepared with AI assistance. I found no repetition-related issue or PR; please flag any overlapping work.
- Ngôn ngữ chính
- Python
- Star
- 859
- Fork
- 186
- Merge trung bình
- 4 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 22
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có 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.
Issue khác của python-poetry/tomlkit
-
Regression: impossible to dump multiline strings with leading newlineCó thể đã có người làm @shivampwm2020 đã nhận hôm nay. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
python-poetry/tomlkit#655 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
tomlkit 0.15.1 fails on out-of-order table headerCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
python-poetry/tomlkit#632 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
`dumps(sort_keys=True)` only sorts the top level of a parsed document (nested tables / inline tables / AoT keep original order)Có thể đã có người làm @Sreekant13 đã nhận 15 ngày trước. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
python-poetry/tomlkit#614 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
toml-test datetime cases use tomlkit's own parse_rfc3339 as the expected value, so they cannot detect datetime parsing bugsCó thể đã có người làm @ekanshul đã nhận 6 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
python-poetry/tomlkit#603 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
unwrap raises KeyAlreadyPresent for an out-of-order AoT element extensionCó thể đã có người làm @davidpavlovschi đã nhận 77 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
python-poetry/tomlkit#577 ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của python-poetry/tomlkit
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Deltares/imod-python#1940 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
effort: low prio: low ready
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
digitalfabrik/integreat-cms#4621 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
ioos/compliance-checker#1375 ·
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 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
netbox status: backlog topic: testing type: housekeeping
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
netbox-community/netbox#23395 ·
Maintainer thường phản hồi trong vòng 1 ngày