This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Maks Bleo
Recipients Maks Bleo, remi.lapeyre
Date 2020-04-17.11:03:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAGb653KtuZZuDkcpAP-J4iz_43+aBnfiv8rRWTvxq4_J=pVmRw@mail.gmail.com>
In-reply-to <1587121165.34.0.143936923209.issue40310@roundup.psfhosted.org>
Content
I don't think that it will overwrite element from for loop. In my mind it
was a bug.

Thank you.

On Fri, Apr 17, 2020, 1:59 PM Rémi Lapeyre <report@bugs.python.org> wrote:

>
> Rémi Lapeyre <remi.lapeyre@henki.fr> added the comment:
>
> Hi Maks, when you report a bug please write a minimal example that show
> the bug so we don't have to read the whole application (
> https://stackoverflow.com/help/minimal-reproducible-example).
>
> I think in this case that the issue is that you overrride model on line 65
> `model = car[1]` hence the error on the next iteration, model has been
> replaced.
>
> This bug tracker is for bugs in the Python interpreter, for help in using
> Python please use the python-help mailing list or a forum like
> StackOverflow.
>
> ----------
> nosy: +remi.lapeyre
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue40310>
> _______________________________________
>
History
Date User Action Args
2020-04-17 11:03:13Maks Bleosetrecipients: + Maks Bleo, remi.lapeyre
2020-04-17 11:03:13Maks Bleolinkissue40310 messages
2020-04-17 11:03:13Maks Bleocreate