Commit 2dd8c42
committed
SF bug #696777: How to make a class iterable using a member generator.
* Added a note that a container class can implement the iterator protocol
by defining its __iter__() method as a generator.1 parent 03ec6d5 commit 2dd8c42
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
398 | 404 | | |
399 | 405 | | |
400 | 406 | | |
| |||
0 commit comments