[Python-Dev] PEP 362: 4th edition (original) (raw)
Christian Heimes lists at cheimes.de
Sat Jun 16 00:05:32 CEST 2012
- Previous message: [Python-Dev] PEP 362: 4th edition
- Next message: [Python-Dev] PEP 362: 4th edition
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] PEP 362: 4th edition
- Next message: [Python-Dev] PEP 362: 4th edition
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]