Env Variable to Auto-Name and Recognize __pycache__ As .__pycache__
Chưa có ai nhận issue này.
- 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ả
Feature or enhancement
Proposal:
Introduce a Bash environment variable (PYTHON_PYCACHE_HIDDEN) that, when set, automatically names and recognizes the __pycache__ directory as .__pycache__. This change aims to improve directory cleanliness by making the __pycache__ directory hidden by default, reducing visual clutter in project directories.
The __pycache__ directory, often clutters project directories. While necessary for Python's efficient execution, it can be an eyesore, especially in larger projects. Making this directory hidden by default would: improve directory readability, maintain compiled functionality, and introduce optional visibility.
Bottom line, __pycache__ directory enhances Python's execution efficiency by storing compiled bytecode, but its contents are rarely useful for regular viewing, cluttering project directories unnecessarily.
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
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
Issue không nêu tên tệp, bài kiểm thử hay điểm vào nào. Trước tiên, hãy xác định cách CPython xử lý việc đặt tên và nhận diện thư mục pycache, sau đó xác định cách các biến môi trường được xử lý. Công việc được xem là hoàn tất khi một thiết lập opt-in PYTHON_PYCACHE_HIDDEN nhất quán sử dụng và nhận diện .pycache mà không làm hỏng hành vi của bytecode đã biên dịch.
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
- operating-systems
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100