Skip to content

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

@corona10corona10 commented Jun 18, 2020

Copy link
Copy Markdown
Member

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

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 threadModules/_bz2module.c Outdated
@corona10
corona10 marked this pull request as ready for review June 18, 2020 17:04
@corona10

Copy link
Copy Markdown
MemberAuthor

@vstinner Thanks updated!

@corona10
corona10 requested a review from vstinnerJune 18, 2020 17:06
Comment threadModules/_bz2module.c Outdated
Comment threadModules/_bz2module.c
@corona10
corona10 requested a review from vstinnerJune 19, 2020 14:21
Comment threadModules/_bz2module.c Outdated
Comment threadModules/_bz2module.c Outdated

@vstinnervstinner 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.

LGTM.

Sign up for freeto 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

@corona10@vstinner@the-knights-who-say-ni@bedevere-bot