Python compilers?
Michael Hudson
mwh at python.net
Thu May 20 06:42:35 EDT 2004
kveretennicov at yahoo.com (Konstantin Veretennicov) writes:
> Carl Banks <imbosol at aerojockey.invalid> wrote in message news:<38Yqc.166$eO6.128 at fe2.columbus.rr.com>...
>
> > > There's more like it, e.g. the existence of the
> > > locals() dictionary and the ability to modify it.
> >
> > New feature? I didn't think modifying the dict returned by locals
> > affected the variables.
> >
>
> Evidence of crime :)
>
> Python 2.3.2
> >>> x
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> NameError: name 'x' is not defined
> >>> locals()['x'] = 1
> >>> x
> 1
>
>
> Not to mention stack frame magic available via inspect.*...
Well, fortunately *this* level of gimmickery is already somewhat
forbidden...
Cheers,
mwh
--
> so python will fork if activestate starts polluting it?
I find it more relevant to speculate on whether Python would fork
if the merpeople start invading our cities riding on the backs of
giant king crabs. -- Brian Quinlan, comp.lang.python
More information about the Python-list
mailing list