Message212460
From looking at the sentinel code it appears a sentinel's identity is controlled by its name alone, i. e.
sentinel.foo is sentinel.foo
If that's the desired behaviour it is well possible to make that indentity survive pickling. I have attached a demo script using the simplest approach -- registering the class with copyreg.
If you like the general idea I'm willing to look up the alternative (a __getstate__() or __reduce__() method), too ;) |
|
Date |
User |
Action |
Args |
2014-02-28 17:00:54 | peter.otten | set | recipients:
+ peter.otten, r.david.murray, michael.foord, Vlastimil.Zíma |
2014-02-28 17:00:54 | peter.otten | set | messageid: <1393606854.1.0.906772975008.issue20804@psf.upfronthosting.co.za> |
2014-02-28 17:00:54 | peter.otten | link | issue20804 messages |
2014-02-28 17:00:53 | peter.otten | create | |
|