[Python-Dev] PEP 362: 4th edition

Christian Heimes lists at cheimes.de
Sat Jun 16 00:05:32 CEST 2012


Am 15.06.2012 23:03, schrieb R. David Murray:
> The issue isn't "consenting adults", the issue is consistency.
> Without the deepcopy, sometimes what you get back from the
> inspect function is freely modifiable and sometimes it is not.
> That inconsistency is a bad thing.

This must be addressed one way or the other. Otherwise you will break
isolation of sub interpreters. Builtin objects, types and methods *must*
be immutable because they are shared across subinterpreters. This topic
has been addressed by the PEP.

Proposal:
You could store the signature objects for builtin methods in a dict in
each PyInterpreterState and use the qualname to reference the signature
object. This ensures full isolation.

Christian



More information about the Python-Dev mailing list