Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
yield help
#2
I observe that if 56 is sent instead of 58 one will get 60 too. You should look into definition of you function to find out why this behaviour happens.

Python documentation about yield and yield expression
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
yield help - by chakox - Apr-11-2019, 11:28 PM
RE: yield help - by perfringo - Apr-12-2019, 06:24 AM
RE: yield help - by Gribouillis - Apr-12-2019, 07:02 AM
RE: yield help - by chakox - Apr-13-2019, 09:00 PM
RE: yield help - by Gribouillis - Apr-13-2019, 09:26 PM
RE: yield help - by chakox - Apr-13-2019, 09:42 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  yield from akbarza 4 342 Apr-19-2024, 07:58 PM
Last Post: DeaD_EyE
  yield usage as statement or expression akbarza 5 858 Oct-23-2023, 11:43 AM
Last Post: Gribouillis
  Using list comprehension with 'yield' in function tester_V 5 1,299 Apr-02-2023, 06:31 PM
Last Post: tester_V
  Yield generator weird output Vidar567 8 3,325 Nov-23-2020, 10:59 PM
Last Post: deanhystad
  Trying to access next element using Generator(yield) in a Class omm 2 2,009 Oct-19-2020, 03:36 PM
Last Post: omm
  Yield statement question DPaul 6 2,544 Sep-26-2020, 05:18 PM
Last Post: DPaul
  Problem about yield, please help!! cls0724 5 2,906 Apr-08-2020, 05:37 PM
Last Post: deanhystad
  does yield support variable args? Skaperen 0 1,697 Mar-03-2020, 02:44 AM
Last Post: Skaperen
  generator function that yield from a list buran 9 4,264 Jun-04-2019, 10:26 PM
Last Post: snippsat
  Multiple calls to Python interpreter embedded in C++ application yield segmentation f mmoelle1 0 2,857 Mar-21-2019, 08:54 PM
Last Post: mmoelle1

Forum Jump:

User Panel Messages

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