[issue22097] Linked list API for ordereddict

Antoine Pitrou report at bugs.python.org
Tue Jul 29 15:27:21 CEST 2014


Antoine Pitrou added the comment:

Le 29/07/2014 07:09, Serhiy Storchaka a écrit :
>
> About your use case. Note that all indices after inserted element
should be shifted. If you inserted more than one statement in the same
ir_block, all but first insertions can be at wrong position.

Thanks for noticing! This is precisely why I'm not using indices, and 
why a regular sequence isn't fit for the use case.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22097>
_______________________________________


More information about the Python-bugs-list mailing list