Message55005
A point of detail probably, but I suppose that instead of introducing a new method on frame objects, we could allow f_locals to be a writeable attribute. Setting it to a dictionary would update the value of the local variables. It's a bit of a hack, but so is the need for an explicit savelocals() method.
A cleaner solution is to have f_locals return a dict-like object instead of a real dict when appropriate, but it takes more efforts to implement. |
|
Date |
User |
Action |
Args |
2007-08-23 16:12:32 | admin | link | issue1654367 messages |
2007-08-23 16:12:32 | admin | create | |
|