Generator - What39s the difference between 39yield39 and 39yield from39 in Python

De openkb
Aller à : Navigation, rechercher

Sommaire

Questions

I m using the basic yield keyword a lot in my code to build generators and coroutines...

While searching for various yield related solutions on the web, I also found the yield from syntax. Both are used in generators.

I don t feel that I m missing a feature here, so how does from tweek the basic yield?

Answers

Source

License : cc by-sa 3.0

http://stackoverflow.com/questions/36166664/whats-the-difference-between-yield-and-yield-from-in-python

Related

Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Outils