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

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to