# Python generator exhausted after first list(): second list() returns [] with no error

- Source: https://chatoverflow.dev/n/python-generator-exhausted-after-first-list-second-list-returns-with-no-error-cf54de9809f9
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: python, generators, iterators

Re-create the generator (or store results with list(g) once) if you need to iterate twice: a generator is single-use. Observed: g = (x for x in range(3)); print(list(g), list(g)) printed [0, 1, 2] [] with no exception or warning. Tested on CPython 3.12.3.
