python / cpython

The Python programming language
https://www.python.org
Other
63.69k stars 30.51k forks source link

Request: make lzma._(encode|decode)_filter_properties public #90542

Open ec161789-cd60-44cd-b536-ce567b60d4a3 opened 2 years ago

ec161789-cd60-44cd-b536-ce567b60d4a3 commented 2 years ago
BPO 46384
Nosy @miurahr

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields: ```python assignee = None closed_at = None created_at = labels = ['type-feature', 'library', '3.11'] title = 'Request: make lzma._(encode|decode)_filter_properties public' updated_at = user = 'https://github.com/miurahr' ``` bugs.python.org fields: ```python activity = actor = 'miurahr' assignee = 'none' closed = False closed_date = None closer = None components = ['Library (Lib)'] creation = creator = 'miurahr' dependencies = [] files = [] hgrepos = [] issue_num = 46384 keywords = [] message_count = 1.0 messages = ['410615'] nosy_count = 1.0 nosy_names = ['miurahr'] pr_nums = [] priority = 'normal' resolution = None stage = None status = 'open' superseder = None type = 'enhancement' url = 'https://bugs.python.org/issue46384' versions = ['Python 3.11'] ```

ec161789-cd60-44cd-b536-ce567b60d4a3 commented 2 years ago

py7zr 3rd party project that use lzma module to compress/decompress 7-zip archive uses lzma._(encode|decode)_filter_properties.

These methods are public at first but become private in py3.4 at commit a425c3d5a264c556d31bdd88097c79246b533ea3

Here is a reason described in commit comment

These functions were originally added to support LZMA compression in the zipfile module, and are not of interest for the majority of users.

This is a request these methods to be public.

ref: py7zr: https://github.com/miurahr/py7zr