[Python-Dev] bug or a feature? (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Wed Jun 11 06:02:13 CEST 2008
- Previous message: [Python-Dev] bug or a feature?
- Next message: [Python-Dev] bug or a feature?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Maciej Fijalkowski wrote:
What do you think about this code:
class A: locals()[42] = 98 Seems people rely on it working. Do we consider it part of python language?
Modifying the dict returned by locals() is documented as NOT being guaranteed to work, isn't it?
-- Greg
- Previous message: [Python-Dev] bug or a feature?
- Next message: [Python-Dev] bug or a feature?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]