[PySide] pickling enums (again)

Christian Tismer tismer at stackless.com
Fri May 10 09:14:52 CEST 2013


On 07.05.13 01:48, John Ehresman wrote:
>> On 05/06/2013 03:38 PM, Robin Dunn wrote:
>>> I'm not sure if PyQt is doing anything different, but I've been using
>>> SIP lately (for the new wxPython) and things like pickle or copy
>>> module operations work fine with enum values.  IIRC SIP implements
>>> each enum as a class that derives from int and the enum values are
>>> instances of that class.
> This is probably the way to go, though it's probably worth looking at
> what comes out of the current python-dev discussion of adding enums to
> the standard library.

Just a note: Pep 435 is accepted since today!

Now it is interesting to see how PyQT will react on this.
A dialog with the developers could make sense ;-)

-- 
Christian Tismer             :^)   <mailto:tismer at stackless.com>
Software Consulting          :     Have a break! Take a ride on Python's
Karl-Liebknecht-Str. 121     :    *Starship* http://starship.python.net/
14482 Potsdam                :     PGP key -> http://pgp.uni-mainz.de
phone +49 173 24 18 776  fax +49 (30) 700143-0023
PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04
       whom do you want to sponsor today?   http://www.stackless.com/




More information about the PySide mailing list