3 ms·
It was a feature van Rossum added in the earliest days of Python, on 14 Oct 1990, back before he fully developed his design sense. As I recall, he said added i
by eesmith 8y ago
It was a feature van Rossum added in the earliest days of Python, on 14 Oct 1990, back before he fully developed his design sense.
As I recall, he said added it because the implementation structure of the "for" code matched the implementation structure of the "if" code, and he felt that 'for' could use an 'else'.