Changes between Initial Version and Version 1 of Ticket #24639, comment 17
- Timestamp:
- 02/06/18 06:21:49 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24639, comment 17
initial v1 8 8 > OK, I did not know that. It is at least shorter to write just `return`, althought I did not find a reference to prefer it instead of `raise StopIteration`. 9 9 10 It is gone in Python 3.5: https://www.python.org/dev/peps/pep-0479/10 It is gone after Python 3.5.2: https://www.python.org/dev/peps/pep-0479/ 11 11 12 12 See also: https://stackoverflow.com/questions/14183803/what-is-the-difference-between-raise-stopiteration-and-a-return-statement-in-gen