[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-04 Thread Nick Coghlan
Nick Coghlan added the comment: Specifically, 2.7.3. A date for that has not yet been set, but somewhere in the December/January time frame is likely. -- ___ Python tracker ___

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, it will. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-04 Thread Brent Payne
Brent Payne added the comment: will the 2.7 patch also be incorporated into a 2.7 release? -- ___ Python tracker ___ ___ Python-bugs-l

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is fixed now, thank you! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: -Python 3.1 ___ Python tracker __

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 64053bd79590 by Antoine Pitrou in branch '2.7': Issue #7689: Allow pickling of dynamically created classes when their http://hg.python.org/cpython/rev/64053bd79590 -- ___ Python tracker

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 760ac320fa3d by Antoine Pitrou in branch '3.2': Issue #7689: Allow pickling of dynamically created classes when their http://hg.python.org/cpython/rev/760ac320fa3d New changeset 46c026a5ccb9 by Antoine Pitrou in branch 'default': Issue #7689: Allow

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: No need, I'll do it myself. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-04 Thread Craig Citro
Craig Citro added the comment: Antoine -- ah, that makes sense. Is that the only blocker? I've let this patch rot on the vine a long time; if so, I'll happily switch `__eq__` back to `__cmp__` and re-post if it'll get submitted. -- ___ Python track

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Craig: I'm talking about the __eq__ version (durban's patch). The __cmp__ version is probably fine. -- ___ Python tracker ___ _

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-04 Thread Craig Citro
Craig Citro added the comment: Antoine -- why do you want to switch "if r" for "if not r"? If we did, the test would just confirm that the unpicked object was of the same type as the original; if we were going to do that, we might as well just replace the whole `__cmp__` function with just `

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: +def __eq__(self, other): +r = (type(self) == type(other)) +if r: +return r I think this should be "if not r". -- ___ Python tracker __

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-03 Thread Lance Hepler
Lance Hepler added the comment: Hello all, sorry to be a bother, but what's the progress on this issue? I have a codebase that requires resolution of this issue to enable multiprocessing. What are the remaining outstanding problems herein preventing the attached patches from being merged? --

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-03 Thread Brent Payne
Changes by Brent Payne : -- nosy: +Brent.Payne ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-02 Thread Lance Hepler
Changes by Lance Hepler : -- nosy: +nlhepler ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-03-14 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-03-13 Thread Daniel Urban
Daniel Urban added the comment: Attaching an updated patch for py3k. > Not an expert, but the Python parts of your patch look good to me. Me neither, but the C parts also look good to me. The tests fail without the patch, succeed with it. Note, that it is possible, that the copy module also s

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-03-08 Thread François Bissey
Changes by François Bissey : -- nosy: +fbissey ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-03-06 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue7689] Pickling of classes with a metaclass and copy_reg

2010-07-31 Thread Éric Araujo
Éric Araujo added the comment: Not an expert, but the Python parts of your patch look good to me. -- nosy: +pitrou ___ Python tracker ___

[issue7689] Pickling of classes with a metaclass and copy_reg

2010-07-31 Thread Éric Araujo
Éric Araujo added the comment: I was mistaken: bug fixes go in stable releases too. -- versions: +Python 2.7, Python 3.1 ___ Python tracker ___ __

[issue7689] Pickling of classes with a metaclass and copy_reg

2010-06-16 Thread Éric Araujo
Éric Araujo added the comment: Thanks for your report and patch. I’m editing the versions field: New features and bug fixes go to the active branch, py3k (future 3.2), while only security and documentation fixes are allowed to go in stable branches (2.6 and 3.1). Current trunk (2.7) is frozen

[issue7689] Pickling of classes with a metaclass and copy_reg

2010-06-16 Thread Gerald Dalley
Gerald Dalley added the comment: Another use case: for distributed processing, it's handy to be able to pickle interactive functions and functions that are part of a script. The user can then remotely execute a broader set of functions than can be pickled by default. This is especially help

[issue7689] Pickling of classes with a metaclass and copy_reg

2010-05-12 Thread Bryan Silverthorn
Changes by Bryan Silverthorn : -- nosy: +bsilverthorn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue7689] Pickling of classes with a metaclass and copy_reg

2010-01-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +alexandre.vassalotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue7689] Pickling of classes with a metaclass and copy_reg

2010-01-13 Thread Craig Citro
New submission from Craig Citro : Currently, it's impossible to use the usual pickle mechanisms to pickle a dynamically created class, even if the user requests a different pickling mechanism via copy_reg. The attached patch makes this customization possible by simply transposing two blocks of