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 serhiy.storchaka
Recipients alexandre.vassalotti, barry, josh.r, pitrou, serhiy.storchaka
Date 2014-12-18.15:58:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1418918286.0.0.469452005046.issue22995@psf.upfronthosting.co.za>
In-reply-to
Content
Here is sample patch which adds two restrictions. Default reduce method for protocol >= 2 will forbid pickling objects:

1) When tp_new == NULL.

2) Builtins without any of pickle-related methods: __getnewargs_ex__, __getnewargs__ or __getstate__.

Are there any other ideas?
History
Date User Action Args
2014-12-18 15:58:06serhiy.storchakasetrecipients: + serhiy.storchaka, barry, pitrou, alexandre.vassalotti, josh.r
2014-12-18 15:58:06serhiy.storchakasetmessageid: <1418918286.0.0.469452005046.issue22995@psf.upfronthosting.co.za>
2014-12-18 15:58:05serhiy.storchakalinkissue22995 messages
2014-12-18 15:58:05serhiy.storchakacreate