On Tue, Jul 14, 2020 at 09:47:15PM -0400, Random832 wrote:

> I was asking for the current Unpickler class, which currently has a 
> whitelist hook for loading globals, to be modified to also have a 
> whitelist hook so that an application can provide a function that 
> looks at a callable and its arguments that the pickle proposes to 
> call, and can choose to either evaluate it, raise an error, or return 
> a substitute value.

Could you provide a proof of concept subclass?


-- 
Steven
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/7UGE2KX33ZWH5TB2YE5VU3TJAWGHSVZU/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to