StackOverflow Questions for Tag: yield-from

marsouf
marsouf

Reputation: 1147

Difference between `return iterator` and `yield from iterator`

Score: 7

Views: 7362

Answers: 4

Read More
albertopasqualetto
albertopasqualetto

Reputation: 107

What happens if I do not yield anything to `yield from`?

Score: -1

Views: 77

Answers: 1

Read More
Intrastellar Explorer
Intrastellar Explorer

Reputation: 2511

Avoiding extra `next` call after `yield from` in Python generator

Score: 3

Views: 235

Answers: 3

Read More
AlanSTACK
AlanSTACK

Reputation: 6075

Apply function for objects from "yield from" statement in python

Score: 2

Views: 2552

Answers: 2

Read More
erzya
erzya

Reputation: 618

yield from vs yield in for-loop

Score: 32

Views: 4474

Answers: 2

Read More
vkaul11
vkaul11

Reputation: 4214

Converting "yield from" statement to Python 2.7 code

Score: 76

Views: 35261

Answers: 7

Read More
Hikager
Hikager

Reputation: 23

In Python is faster using "yield from" than yield in a loop?

Score: 0

Views: 483

Answers: 1

Read More
Zach Gates
Zach Gates

Reputation: 4155

What is the correct way to yield from a stream?

Score: 25

Views: 5318

Answers: 2

Read More
Mite
Mite

Reputation: 57

Trigger except clause in generator from exception raised in user code

Score: 0

Views: 142

Answers: 1

Read More
joseville
joseville

Reputation: 953

Mixing yield and return. `yield [cand]; return` vs `return [[cand]]`. Why do they lead to different output?

Score: 2

Views: 690

Answers: 1

Read More
prog
prog

Reputation: 1073

extracting the actual output of generator in a list

Score: 0

Views: 392

Answers: 2

Read More
Bharat
Bharat

Reputation: 2479

Breadth First Tree Traversal using Generators in Python

Score: 2

Views: 2759

Answers: 4

Read More
Shivam Sahil
Shivam Sahil

Reputation: 4925

Using yield won't generate new numbers (Using next function)

Score: 0

Views: 85

Answers: 1

Read More
Animeta
Animeta

Reputation: 1363

How to understand `yield from` in python coroutine?

Score: 1

Views: 470

Answers: 1

Read More
wab
wab

Reputation: 857

Recursing python dictionaries with yield from to generate list of nested dictionary keys

Score: 0

Views: 547

Answers: 1

Read More
sharathchandramandadi
sharathchandramandadi

Reputation: 540

How to save the output of recursive function to list of items using yield and generator functions

Score: 1

Views: 598

Answers: 1

Read More
Srijan Saurav
Srijan Saurav

Reputation: 81

How to yield objects recursively using python generator?

Score: 2

Views: 544

Answers: 2

Read More
Anakhand
Anakhand

Reputation: 3038

How to intercept the first value of a generator and transparently yield from the rest

Score: 12

Views: 964

Answers: 2

Read More
David Rodrigues
David Rodrigues

Reputation: 12562

"yield" and "yield from" at same function

Score: 4

Views: 219

Answers: 1

Read More
toing
toing

Reputation: 536

"yield from" another generator but after processing

Score: 4

Views: 522

Answers: 2

Read More
PreviousPage 1Next