Timeline for What does the "yield" keyword do in Python?
Current License: CC BY-SA 4.0
24 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 5 at 5:04 | review | Suggested edits | |||
Mar 5 at 16:11 | |||||
Aug 10, 2023 at 4:30 | history | edited | Michael M. | CC BY-SA 4.0 |
capitalization consistency, minor grammar/formatting
|
May 18, 2023 at 20:40 | review | Suggested edits | |||
May 20, 2023 at 21:33 | |||||
S Oct 1, 2022 at 21:06 | history | suggested | Saket Thakur | CC BY-SA 4.0 |
fixed grammar
|
Oct 1, 2022 at 9:46 | review | Suggested edits | |||
S Oct 1, 2022 at 21:06 | |||||
S May 13, 2020 at 12:29 | history | suggested | nzz | CC BY-SA 4.0 |
improved formatting (e.g. python3's next() was bold)
|
May 13, 2020 at 9:20 | review | Suggested edits | |||
S May 13, 2020 at 12:29 | |||||
S Mar 4, 2020 at 21:35 | history | suggested | Addy Roy | CC BY-SA 4.0 |
Made the sentences more robust to be comfortable for English readers. Corrected a few punctuations.
|
Mar 4, 2020 at 20:42 | review | Suggested edits | |||
S Mar 4, 2020 at 21:35 | |||||
Jul 28, 2019 at 12:51 | review | Suggested edits | |||
Jul 28, 2019 at 15:45 | |||||
Apr 24, 2019 at 9:37 | history | edited | Arne | CC BY-SA 4.0 |
This is a community wiki, not tvtropes
|
Dec 26, 2017 at 18:53 | comment | added | today |
@pedro You have misunderstood that sentence. It means that python performs the two mentioned steps on mylist (not on otherlist ) when executing otherlist.extend(mylist) .
|
|
Sep 14, 2017 at 14:48 | comment | added | Pedro |
"it could be a for loop, but it could also be code like otherlist.extend(mylist) " -> This is incorrect. extend() modifies the list in-place and does not return an iterable. Trying to loop over otherlist.extend(mylist) will fail with a TypeError because extend() implicitly returns None , and you can't loop over None .
|
|
Jun 17, 2017 at 22:41 | comment | added | DanielSank |
"When you see a function with yield statements, apply this easy trick to understand what will happen" Doesn't this completely ignore the fact that you can send into a generator, which is a huge part of the point of generators?
|
|
S Aug 15, 2016 at 21:29 | history | suggested | Cameron Gagnon | CC BY-SA 3.0 |
Clarify that execution continues immediately following a yield statement.
|
Aug 15, 2016 at 20:11 | review | Suggested edits | |||
S Aug 15, 2016 at 21:29 | |||||
Jul 24, 2014 at 11:15 | history | edited | Rob Grant | CC BY-SA 3.0 |
Revert doesn't mean that
|
S Jun 27, 2013 at 16:52 | history | suggested | relgukxilef | CC BY-SA 3.0 |
In Python 3 the next method is written __next__
|
Jun 27, 2013 at 16:46 | review | Suggested edits | |||
S Jun 27, 2013 at 16:52 | |||||
S Jan 31, 2013 at 5:29 | history | suggested | Andrew Youdin | CC BY-SA 3.0 |
fixed NameError, `f123()` was defined but `f()` was called
|
Jan 31, 2013 at 5:20 | review | Suggested edits | |||
S Jan 31, 2013 at 5:29 | |||||
Dec 27, 2011 at 6:51 | review | Suggested edits | |||
Dec 27, 2011 at 7:33 | |||||
Oct 25, 2008 at 21:27 | history | edited | user28409 | CC BY-SA 2.5 |
added line to clarify iterator protocol
|
Oct 25, 2008 at 21:22 | history | answered | user28409 | CC BY-SA 2.5 |