mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
more yield from
patch by Serhiy Storchaka
This commit is contained in:
parent
8bfcf51b5d
commit
fd0d3e5d25
5 changed files with 22 additions and 39 deletions
|
@ -1193,8 +1193,7 @@ def deepvalues(mapping):
|
|||
pass
|
||||
else:
|
||||
mapping = True
|
||||
for subobj in deepvalues(obj):
|
||||
yield subobj
|
||||
yield from deepvalues(obj)
|
||||
if not mapping:
|
||||
yield obj
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue