Skip to content

bpo-43785: Update bz2 document #25351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 13, 2021
Merged

bpo-43785: Update bz2 document #25351

merged 3 commits into from
Apr 13, 2021

Conversation

methane
Copy link
Member

@methane methane commented Apr 12, 2021

@@ -140,6 +138,11 @@ All of the classes in this module may safely be accessed from multiple threads.

The *compresslevel* parameter became keyword-only.

.. versionchanged:: 3.10
This class is now thread unsafe in the face of multiple simultaneous
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @methane , maybe you could remove the now, I am not sure it's really interesting.

* :class:`BZ2File` performance is improved by removing internal ``RLock``.
This makes :class:`BZ2File` thread unsafe in the face of multiple simultaneous
readers or writers, just like its equivalent classes in :mod:`gzip` and
:mod:`lzma` have always been. (Contributed by inada Naoki in :issue:`43785`).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just, I think you could use a upper case for your first name, Inada

@gpshead
Copy link
Member

gpshead commented Apr 12, 2021

There's also some wording at the top of https://docs.python.org/3/library/lzma.html that needs cleanup to not claim that bz2 is thread safe.

@methane methane merged commit 695d47b into python:master Apr 13, 2021
@methane methane deleted the bz2-document branch April 13, 2021 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants