Message201745
I agree that OrderedDict is more a dict than a list, but it is not clear to me why this means that it cannot extend a dict's functionality in that respect.
OrderedDict already adds functionality to dict (preserving the order), so why shouldn't it also allow changes during iteration?
I think these two things actually come together quite naturally, since it is the existence of an ordering that makes the behavior under changes during iteration well defined.
Is there really a danger that people will get confused because a previously undefined operation now becomes officially supported with a defined meaning? |
|
Date |
User |
Action |
Args |
2013-10-30 16:32:19 | nikratio | set | recipients:
+ nikratio, arigo, rhettinger, ethan.furman |
2013-10-30 16:32:19 | nikratio | set | messageid: <1383150739.17.0.730645040969.issue19414@psf.upfronthosting.co.za> |
2013-10-30 16:32:19 | nikratio | link | issue19414 messages |
2013-10-30 16:32:18 | nikratio | create | |
|