Sorry, something went wrong.
|
@vstinner @corona10 @shihai1991 please review |
Sorry, something went wrong.
There was a problem hiding this comment.
PickleState is not used here, but is added as an argument to avoid complicating the macro/switch case in
Sorry, something went wrong.
|
Most modules are using state for the state variable. Could you please replace st with state so we have a consistent naming scheme across the code base? |
Sorry, something went wrong.
|
Most modules are using state for the state variable. Could you please replace st with state so we have a consistent naming scheme across the code base? @tiran I did that in my initial draft here. The reason I didn't do it here is because there are local variables named state in some functions (see for example line 3949 in save_reduce. Do you have a suggestion on what to change those names to? I don't understand exactly what those variables represent |
Sorry, something went wrong.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
There was a problem hiding this comment.
The reason I didn't do it here is because there are local variables named state in some functions (see for example line 3949 in save_reduce.
the state would be more exact. If there have other arguments have own this name, keep st unchanged is not a big probleam.
Sorry, something went wrong.
|
@shihai1991 @vstinner I addressed these comments |
Sorry, something went wrong.
There was a problem hiding this comment.
This PR is huge :) . About adding parenthesis, I will update it when those code have relation with the bpo.
Sorry, something went wrong.
|
https://bugs.python.org/issue1635741 is closed. What is the status of this PR? |
Sorry, something went wrong.
|
The change is still relevant, but should use a new issue number. Moreover, the SC asked to put the conversion of static types to heap types on hold. @encukou and @erlend-aasland wrote https://peps.python.org/pep-0687/ which may unblock the situation but it's still a draft. |
Sorry, something went wrong.
|
The change is still relevant, but should use a new issue number. Moreover, the SC asked to put the conversion of static types to heap types on hold. @encukou and @erlend-aasland wrote https://peps.python.org/pep-0687/ which may unblock the situation but it's still a draft. FYI, PEP 687 was accepted. |
Sorry, something went wrong.
|
Pickle module state was isolated in #102982. koubaa is listed as co-author, so I hope some of this work made it in at the end. |
Sorry, something went wrong.
|
Pickle module state was isolated in #102982. koubaa is listed as co-author, so I hope some of this work made it in at the end. It did; PR #102982 was based off of Mohamed's work in #23188 (IIRC, I cherry-picked the commits from this that PR onto my new branch). See also #23188 (comment). |
Sorry, something went wrong.
This PR prepares for changing to heap types.
When switching to heap types, the clinic can be used to get the module state.
https://bugs.python.org/issue1635741