[Python-Dev] bug or a feature?
Phillip J. Eby
pje at telecommunity.com
Wed Jun 11 18:15:25 CEST 2008
At 03:37 AM 6/11/2008 +0200, Maciej Fijalkowski wrote:
>On Wed, Jun 11, 2008 at 3:36 AM, Scott Dial
><scott+python-dev at scottdial.com> wrote:
> > Maciej Fijalkowski wrote:
> >>
> >> What do you think about this code:
> >>
> >> class A:
> >> locals()[42] = 98
> >>
> >> Seems people rely on it working.
> >
> > I apologize for my ignorance, but who? Could you please cite something
> > reputable that relies on this detail?
> >
>
>It's in tests of sqlalchemy. My question is among the lines "should I
>bug sqlalchemy guys to remove this, or should I change pypy to accept
>this".
That test is there to ensure that it interoperates with code using
the AddOns library from the Cheeseshop; SQLAlchemy is not the source
of the usage.
More information about the Python-Dev
mailing list