Python Forum
issue with updating list every iteration of a loop
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
issue with updating list every iteration of a loop
#2
Please use python tags when posting code. I put them in for you this time. See the BBCode link in my signature below for instructions.

This looks more like an assumptions problem than a loop problem. It looks like detectorModule.func_detector on line 37 is just returning a shorter list than you expect. I would look to see what exactly is being returned there.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: issue with updating list every iteration of a loop - by ichabod801 - Oct-28-2018, 10:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  List Comprehension Issue johnywhy 5 614 Jan-14-2024, 07:58 AM
Last Post: Pedroski55
  Updating Code And Having Issue With Keys Xileron 8 1,270 May-25-2023, 11:14 PM
Last Post: DigiGod
  Inconsistent loop iteration behavior JonWayn 2 1,028 Dec-10-2022, 06:49 AM
Last Post: JonWayn
  Python List Issue Aggie64 5 1,729 Jun-30-2022, 09:15 PM
Last Post: Aggie64
  Updating nested dict list keys tbaror 2 1,312 Feb-09-2022, 09:37 AM
Last Post: tbaror
  List Iteration Help javeeva 2 1,227 Feb-07-2022, 11:23 PM
Last Post: snippsat
  List to table issue robdineen 2 1,492 Nov-07-2021, 09:31 PM
Last Post: robdineen
  Looping through nested elements and updating the original list Alex_James 3 2,184 Aug-19-2021, 12:05 PM
Last Post: Alex_James
  saving each iteration of a loop sgcgrif3 3 6,816 Jul-27-2021, 01:02 PM
Last Post: DeaD_EyE
  Calculator code issue using list kirt6405 4 2,326 Jun-11-2021, 10:13 PM
Last Post: topfox

Forum Jump:

User Panel Messages

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