Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
generator concurrency
#3
If I have to use my own words:

A generator is returned by calling a function when a yield statement is inside the function.
Each instance of a generator has it's own context.

Yes, they are independent.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
generator concurrency - by Skaperen - Dec-25-2018, 04:51 PM
RE: generator concurrency - by Gribouillis - Dec-25-2018, 05:16 PM
RE: generator concurrency - by DeaD_EyE - Dec-25-2018, 06:44 PM
RE: generator concurrency - by Skaperen - Dec-26-2018, 07:24 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020