Python Forum
Need some help with strange situation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need some help with strange situation
#6
Quote:
        while parts_list:
            for p in parts_list:
                # processing
                return
Why loop over the parts_list at all, if you're just going to process the first thing in it?

This seems like a good opportunity for you to try mocking the server's response, so you can test it without needing to log into the server every time. Besides making testing easier, that also means it's easier for us to help, since we don't have to guess what your input is.
Reply


Messages In This Thread
Need some help with strange situation - by SpencerH - Oct-16-2018, 03:12 PM
RE: Need some help with strange situation - by nilamo - Oct-16-2018, 08:48 PM

Forum Jump:

User Panel Messages

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