This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author peter.otten
Recipients Vlastimil.Zíma, michael.foord, peter.otten, r.david.murray
Date 2014-02-28.17:00:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1393606854.1.0.906772975008.issue20804@psf.upfronthosting.co.za>
In-reply-to
Content
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 ;)
History
Date User Action Args
2014-02-28 17:00:54peter.ottensetrecipients: + peter.otten, r.david.murray, michael.foord, Vlastimil.Zíma
2014-02-28 17:00:54peter.ottensetmessageid: <1393606854.1.0.906772975008.issue20804@psf.upfronthosting.co.za>
2014-02-28 17:00:54peter.ottenlinkissue20804 messages
2014-02-28 17:00:53peter.ottencreate