[Chicago] Deleting from a list or dictionary while processing it?

Chris Foresman foresmac at gmail.com
Wed Mar 29 15:01:18 EDT 2017


Unless you happen to be using CPython 3.6.x.


Chris Foresman
foresmac at gmail.com




> On Mar 29, 2017, at 1:50 PM, Joshua Herman <zitterbewegung at gmail.com> wrote:
> 
> If you use a dictionary and not an ordered dictionary the order that you insert the elements will not be preserved .
> 
> On Mon, Mar 27, 2017 at 4:28 PM Dan O'Day <4n6.listserv at gmail.com <mailto:4n6.listserv at gmail.com>> wrote:
> Just be careful if relying on specific list indices after that, as the
> elements' positions will change.
> 
> Dan
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20170329/e51b8734/attachment.html>


More information about the Chicago mailing list