[Python-Dev] bug or a feature? (original) (raw)

Scott Dial scott+python-dev at scottdial.com
Wed Jun 11 03:36:27 CEST 2008


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?

-- Scott Dial scott at scottdial.com scodial at cs.indiana.edu



More information about the Python-Dev mailing list