a new PEP?

Andrew McGregor andrew at indranet.co.nz
Sun Jan 5 06:29:10 EST 2003


--On Saturday, January 04, 2003 23:04:25 +0100 "Martin v. Löwis" 
<martin at v.loewis.de> wrote:

> vm_usenet at yahoo.com (vm_usenet) writes:
>
>> What I'm proposing is to dump the current approach of static/global
>> variables in the python source and to make the python interpreter
>> state-oriented.
>
> Please understand that this can't be achieved through a proposal: Many
> existing C modules which are not part of the Python core use global
> variables as well. Somebody will have to change those modules -
> writing a PEP doesn't help.

Or one can change the module loader so the globals section of the module is 
linked into a different space, kind of like how Linux loads kernel modules. 
I don't know how you'd implement this on non-ELF platforms, though.

Andrew





More information about the Python-list mailing list