User Tools

Site Tools


help:python:data_class

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
help:python:data_class [2020/08/11 14:48] – [Data Class in Python] gerhardhelp:python:data_class [2020/08/11 14:50] – [Data Class in Python] gerhard
Line 22: Line 22:
  
  
-Also note the `__iter__function is the classes and the `yieldinstead of `returnthat allows iteration in the `__iter__function without the need for a `__next__function+Also note the ''__iter__'' function is the classes and the ''yield'' instead of ''return'' that allows iteration in the ''__iter__'' function without the need for a ''__next__'' function inside the class.
  
 <code python> <code python>
help/python/data_class.txt · Last modified: 2020/08/11 15:04 by gerhard