4 ms·
Article briefly mentions: > Using yield in a function definition is not the only way in which generators can be constructed in Python Anyone can point out wha
by prashnts 5y ago
Article briefly mentions:
> Using yield in a function definition is not the only way in which generators can be constructed in Python
Anyone can point out what do they mean by that? Googling didn’t help much.
- sherjilozair 5y agoLook up iterator, __next__, __iter__.
- prashnts 5y agoRight, thanks!