[issue43450] List amnesia

2021-03-09 Thread Christian Heimes
Christian Heimes added the comment: Florian's answer is correct. Thanks! -- nosy: +christian.heimes resolution: -> not a bug stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker

[issue43450] List amnesia

2021-03-09 Thread Florian Bruhin
Florian Bruhin added the comment: This is not a bug. itertools.product returns an iterator: https://docs.python.org/3/glossary.html#term-iterator Quoting from there: > [...] every iterator is also iterable and may be used in most places where > other iterables are accepted. One notable exce

[issue43450] List amnesia

2021-03-09 Thread Márcio Mocellin
New submission from Márcio Mocellin : In Python 3.6.8 (default, Apr 16 2020, 01:36:27) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)] on linux, when I materialize the list, it is shown and is deleted. Shouldn't the list persist in memory? Is this a bug or is it really? ```python >>> vet_neg ['EH01', '