Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
generator concurrency
#1
so i wrote a generator. it's not a class. it's just a function with a yield statement. calling it returns an iterator that effectively drives the generator.

what if i call the generator twice and get 2 iterators? can i still use either? can i use the other before the one i use first is complete? can i interleave them?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
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