Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
loop running indefinitely
#2
Just to comment structure of code,when you have function(main) that over 100 lines,
that dos all kind of stuff talk to API,logic,Pandas ect.
Then the whole point of using functions is gone.
The point function is that they should not do a lot stuff,but rather one thing good and return the result.
Then code it easier to read and test,now your error is in the main function so have to break it down is error from API,logic..ect or other stuff.

Just want to point this out,maybe i have some time later to dig more into the error later.
Yoriz likes this post
Reply


Messages In This Thread
loop running indefinitely - by shantanu97 - Jun-14-2021, 12:10 PM
RE: loop running indefinitely - by snippsat - Jun-14-2021, 12:55 PM
RE: loop running indefinitely - by deanhystad - Jun-14-2021, 02:06 PM
RE: loop running indefinitely - by Gribouillis - Jun-14-2021, 03:38 PM
RE: loop running indefinitely - by deanhystad - Jun-14-2021, 04:52 PM
RE: loop running indefinitely - by Underscore - Sep-29-2021, 05:58 PM
RE: loop running indefinitely - by deanhystad - Sep-29-2021, 08:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  help RuntimeError: no running event loop marpaslight 5 4,172 Oct-18-2022, 10:04 PM
Last Post: marpaslight
  bleak library RuntimeError: This event loop is already running alice93 3 4,364 Sep-30-2021, 08:06 AM
Last Post: alice93
  Running A Loop Until You See A Particular Result knight2000 6 32,196 Sep-04-2021, 08:55 AM
Last Post: knight2000
  Running loop at specific frequency mdsousa 3 6,229 Apr-21-2021, 11:22 AM
Last Post: jefsummers
  RuntimeError: This event loop is already running newbie2019 2 7,106 Sep-30-2020, 06:59 PM
Last Post: forest44
  Running function from parent module which has a loop in it. ta2909i 1 2,814 Nov-18-2019, 07:04 PM
Last Post: Gribouillis
  How to add coroutine to a running event loop? AlekseyPython 1 8,391 Mar-21-2019, 06:04 PM
Last Post: nilamo
  action on MQTT while long loop is running runboy 4 6,298 Oct-05-2018, 11:57 PM
Last Post: runboy
  Outer loop not running ted_gress 2 3,430 Aug-25-2018, 07:56 AM
Last Post: volcano63
  Running Class methods in a loop and updating variables. ujjwalrathod007 3 6,629 Oct-05-2016, 07:11 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

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