[Python-Dev] Module properties for C modules (original) (raw)

Christian Heimes lists at cheimes.de
Thu May 1 23:00:35 CEST 2008


Guido van Rossum schrieb:

I don't see how it could work if any Python code is executed in the module, since code execution uses a dict for globals.

Supporting it only for built-in modules seems too big an exception.

I came up with the idea in order to replace the setters and getters of builtin modules such as the sys module. I deliberately excluded Python modules from the idea. It's going to be too tricky to expose the API to Python.

Christian



More information about the Python-Dev mailing list