Message370241
Hi cmaliwal! You are mutating the list while iterating over it which can lead to all sorts of issues, to keep the unique elements of a list you can do
>>> a = [1, 1, 1, 1]
>>> list(set(a))
[1]
If you think you found a bug in Python please check in the python-help mailing list or StackOverflow. |
|
Date |
User |
Action |
Args |
2020-05-28 16:39:13 | remi.lapeyre | set | recipients:
+ remi.lapeyre, cmaliwal |
2020-05-28 16:39:12 | remi.lapeyre | set | messageid: <1590683952.97.0.875942719185.issue40809@roundup.psfhosted.org> |
2020-05-28 16:39:12 | remi.lapeyre | link | issue40809 messages |
2020-05-28 16:39:12 | remi.lapeyre | create | |
|