FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-40077: Convert _bz2 module to use PyType_FromSpec by corona10 · Pull Request #20960 · python/cpython · GitHub

/ cpython Public

bpo-40077: Convert _bz2 module to use PyType_FromSpec - #20960

Merged
corona10 merged 9 commits into
python:masterfrom
corona10:bpo-40077-bz2
Jun 19, 2020
Merged

bpo-40077: Convert _bz2 module to use PyType_FromSpec#20960
corona10 merged 9 commits into
python:masterfrom
corona10:bpo-40077-bz2

Conversation

corona10 commented Jun 18, 2020
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

Comment thread Lib/test/test_bz2.py Outdated
corona10 marked this pull request as draft June 18, 2020 13:15

Copy link
Copy Markdown
Member

I don't think that it should be possible to serialize a Compressor or Decompressor object. There is no getstate/setstate or reduce methods which would serialize attributes only accessible in C. More generally, I don't think that it would be useful, nor needed.

See https://bugs.python.org/issue40077#msg371813

Comment thread Modules/_bz2module.c Outdated
corona10 marked this pull request as ready for review June 18, 2020 17:04

Copy link
Copy Markdown
Member Author

@vstinner Thanks updated!

corona10 requested a review from vstinner June 18, 2020 17:06
Comment thread Modules/_bz2module.c Outdated
Comment thread Modules/_bz2module.c
corona10 requested a review from vstinner June 19, 2020 14:21
Comment thread Modules/_bz2module.c Outdated
Comment thread Modules/_bz2module.c Outdated
corona10 requested a review from vstinner June 19, 2020 14:54

vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL