Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
a "consuming-generator"
#2
It's not clear what you're trying to do here. From your description and your use of the word "filter", I can't tell if what you want is actually the filter function (when you say "it would be given more data than it gave back", that suggests filter to me, for example). Coroutines are for asynchronous programming and that doesn't sound like it's relevant here.

Perhaps you could give a more detailed example, or even a code sample (even if pseudocode) for a simple one of the things you wrote?
Reply


Messages In This Thread
a "consuming-generator" - by Skaperen - Sep-07-2019, 03:00 AM
RE: a "consuming-generator" - by ndc85430 - Sep-07-2019, 05:01 AM
RE: a "consuming-generator" - by Skaperen - Sep-07-2019, 05:31 AM

Forum Jump:

User Panel Messages

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