[Python-Dev] bug or a feature?

Maciej Fijalkowski fijall at gmail.com
Wed Jun 11 03:37:45 CEST 2008


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".


More information about the Python-Dev mailing list