|
|
|
|
|
by framecowbird
1637 days ago
|
|
There are a couple of language features in Python that I thought were cool when I discovered them, but actually have never ever find a need for them in my code. The first is using an "else" clause in a "for" loop, and the second is returning a value from a generator. Curious whether anybody actually uses either of those. |
|
I'd like a different name for for "for's" else.
I've been using method/function redefinition in place of conditionals related to initialization.