Python Forum
Python function executes twice when region loop is present
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python function executes twice when region loop is present
#2
The instance count is reported in report_instance_stats. This is called on line 139, at the end of the 'for instance' loop on line 38. But that's within the 'for reservation' loop on line 37, and you don't reset the count before the next iteration of the 'for reservation' loop. Could that be causing the problem?
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: Python function executes twice when region loop is present - by ichabod801 - Jan-06-2020, 11:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Using locationtagger to extract locations found in a specific country/region lord_of_cinder 1 1,330 Oct-04-2022, 12:46 AM
Last Post: Larz60+
  Check if a value is present in each group Menthix 8 2,890 May-16-2022, 12:25 PM
Last Post: Menthix
  Anaconda pip install mpyc Error pip-script.py is not present Anldra12 2 7,969 Dec-13-2021, 06:59 PM
Last Post: Anldra12
  Exit Function - loop Tetsuo30 2 2,110 Sep-17-2020, 09:58 AM
Last Post: Tetsuo30
  Add new line after finding last string in a region Nigel11 1 1,937 Aug-08-2020, 10:00 PM
Last Post: Larz60+
  No Scripts File present after python installation ag2207 5 5,012 Jul-30-2020, 11:11 AM
Last Post: buran
  pytz: get integer utc offset from Olsen region/city h4tt3n 2 5,402 Jul-30-2020, 06:43 AM
Last Post: h4tt3n
  pyautogui.screenshot region is not working alexlu 6 6,613 Jun-04-2020, 10:46 AM
Last Post: alexlu
  Using Function in a For loop vp1989 5 2,881 May-19-2020, 03:53 PM
Last Post: vp1989
  "usr" directory not present and needed for cmd commands? ajetrumpet 2 2,196 Dec-19-2019, 05:59 PM
Last Post: ajetrumpet

Forum Jump:

User Panel Messages

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