Message259063
My only aversion to raising an exception is that it goes against the original intent of maxlen as giving an automatic-pop-to-make-room behavior.
Rather that introduce a discontinuity, I like the "smoothness" of letting d.insert(len(d), obj) follow the insert-normally-then-pop-from-the-right rule as opposed to having a special case. |
|
Date |
User |
Action |
Args |
2016-01-27 21:24:58 | rhettinger | set | recipients:
+ rhettinger, tim.peters, mark.dickinson, vstinner, python-dev, serhiy.storchaka |
2016-01-27 21:24:58 | rhettinger | set | messageid: <1453929898.14.0.0189237481772.issue26194@psf.upfronthosting.co.za> |
2016-01-27 21:24:58 | rhettinger | link | issue26194 messages |
2016-01-27 21:24:58 | rhettinger | create | |
|