[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-04 Thread Craig Citro
Craig Citro craigci...@gmail.com 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__

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-04 Thread Craig Citro
Craig Citro craigci...@gmail.com 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

ANN: Cython 0.13 released!

2010-08-25 Thread Craig Citro
contributed to this release, including: * David Barnett * Stefan Behnel * Chuck Blake * Robert Bradshaw * Craig Citro * Bryan Cole * Lisandro Dalcin * Eric Firing * Danilo Freitas * Christoph Gohlke * Dag Sverre Seljebotn * Kurt Smith * Erik Tollerud * Carl Witty -cc -- http

[issue7689] Pickling of classes with a metaclass and copy_reg

2010-01-13 Thread Craig Citro
New submission from Craig Citro craigci...@gmail.com: 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

Re: String to unicode - duplicating by function the effect of u prefix

2009-06-19 Thread CiTro
Thank you, Peter. That solved my problem. -- http://mail.python.org/mailman/listinfo/python-list

String to unicode - duplicating by function the effect of u prefix

2009-06-18 Thread CiTro
I'm looking for a way to convert a string to it's unicode brother. This means: stringOne = \u0026 stringTwo = u\u0026 print unicode(stringOne) == stringTwo The result is false. What function should I use, to duplicate the effect of the u prefix ? --