open-like access
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
No files or tests are named. Start by reviewing the package's current cache access and iterator behavior, then compare the requested API with Python's builtin open parameters; done means defining supported behavior, preserving one file version during iteration, and raising NotImplementedError for unsupported operations.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Another feature I would like is an API like the builtin open. This is less urgent, and does not even need to be part of this package. If you are not keen, it can exist only in coala.
It might seem a little strange to rewrap the cache in a file open-like API, but it helps ensure our access is strictly an iteraror, and it means the semantics are familiar and not tied to this implementation. The iterator needs to ensure one version of the file is processed, even if the file has been modified, and thus the cache is invalidated.
It can, and should, raise exceptions such as NotImplementedError for open parameters that are not able to be provided for the wrapped file cache object, or the operation is possible but not yet built because it is non-trivial to build properly.
Again, I am happy to build if you are happy for this feature to reside in your package.
- Ngôn ngữ chính
- Python
- Star
- 5
- Fork
- 4
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
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 tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
canonical/paas-charm#368 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
tech debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
addition to tracking list Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
StevenBlack/hosts#3256 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
qualcomm/qai-appbuilder#275 ·