Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
Closed
Labels
docsDocumentation in the Doc dirDocumentation in the Doc direasytriagedThe issue has been accepted as valid by a triager.The issue has been accepted as valid by a triager.
Description
Python doc doesn't have the explanation of gi_suspended to be used to check if the generator is currently suspended(paused) or not so it should be added to Types and members:
deffunc(): print(gen.gi_suspended, "func") # False funcyield0print(gen.gi_suspended, "func") # False funcyield1print(gen.gi_suspended, "func") # False funcyield2print(gen.gi_suspended, "func") # False funcgen=func() print(gen.gi_suspended) # Falseprint(next(gen)) # 0print(gen.gi_suspended) # Trueprint(next(gen)) # 1print(gen.gi_suspended) # Trueprint(next(gen)) # 2print(gen.gi_suspended) # Trueprint(next(gen)) # StopIteration:Linked PRs
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dirDocumentation in the Doc direasytriagedThe issue has been accepted as valid by a triager.The issue has been accepted as valid by a triager.
Projects
Status
Done
Status
Todo