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
Rewrite _reduce and _reconstructor in C #37217
Comments
The copy_reg defines two functions, _reduce() and |
Logged In: YES I'd like to add some comments from Jim Fulton on this (or a """ reconstructor, (some_class, object, None), some_state but there is a more general case where an uninitialized There are really two issues:
A new pickling code would handler the later, but I also want One thought is to return: (copy_reg.new, (some_class, ), def new(class_): return class.__new__(class_) The pickler could easily spot reduce returns with |
Logged In: YES Lowering priority; when you use pickle protocol 2, none of Jim's comment has been addressed by __newobj__ and |
Logged In: YES Except that the new Python code _better_reduce() is used |
Logged In: YES This isn't going to be done for 2.3a2; we'll revisit who |
Classifying as an RFE since this is not critical (as shown by it not |
I just don't see this happening. Possibly it's out of date. Lots of |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: