[PATCH] Replace dictionary iteration methods

Łukasz Żarnowiecki dolohow at outlook.com
Mon May 16 22:28:48 BST 2016


> > This patch differs from the previous one that it does not blindly wrap
> > all dictionaries with "list" while looping.  This is only necessary when
> > the dictionary will be later modified inside of this loop.  Python3 will
> > will rise a RuntimeError exception.
> 
> I didn't check if all the cases are handled. Neither did I check if the
> list() is used where it actually matters. I'm pretty sure this patch is
> not introducing issues. Applied.

I tested both Python 2 and 3 versions and it worked for me very well. 




More information about the OfflineIMAP-project mailing list