Changes between Initial Version and Version 1 of Ticket #24639, comment 17


Ignore:
Timestamp:
02/06/18 06:21:49 (4 years ago)
Author:
tscrim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24639, comment 17

    initial v1  
    88> 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`.
    99
    10 It is gone in Python 3.5: https://www.python.org/dev/peps/pep-0479/
     10It is gone after Python 3.5.2: https://www.python.org/dev/peps/pep-0479/
    1111
    1212See also: https://stackoverflow.com/questions/14183803/what-is-the-difference-between-raise-stopiteration-and-a-return-statement-in-gen