Message45422
Logged In: YES
user_id=80475
Guido, after some discussion on comp.lang.python, I would
like to re-open this one.
I'm +1 on an alternate patch with a simpler approach that
defines dict.update to be the same as dict.__init__().
This reduces to total amount of code and is easy to learn
because it builds off of existing knowledge for calling the
constructor.
In terms of functionality, it is more readable, faster, and
more memory efficient than explicity constructing an
intermediate dictionary for the update. Also, as Bob points
out, it works nicely with genexps.
If approved, please assign back to me for the revised
implementation, unittests, and doc updates. |
|
Date |
User |
Action |
Args |
2007-08-23 15:32:28 | admin | link | issue904720 messages |
2007-08-23 15:32:28 | admin | create | |
|