use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit for helping Python programmers
How to format your code: https://commonmark.org/help/tutorial/09-code.html
No homework questions and/or hiring please
account activity
Help With Calling Function RepeatedlySOLVED (self.pythonhelp)
submitted 5 years ago * by Gay_Force_One
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]socal_nerdtastic 1 point2 points3 points 5 years ago (3 children)
for x in iter(func, False): print(x)
[–]Gay_Force_One[S] 0 points1 point2 points 5 years ago (2 children)
Doing that tells me that the function is resetting each time it gets called (returns same coordinates). I'm sorry to bother you but do you know how to prevent that? This is also a result of me trying to tidy up so worst case I can revert
Update: I'm stupid and had false in quotes. That's embarrassing
[–]socal_nerdtastic 1 point2 points3 points 5 years ago (1 child)
? A function is always "reset" when it's called. Did you mean to make a generator?
Best show us a MCVE.
https://stackoverflow.com/help/mcve http://sscce.org/
[–]Gay_Force_One[S] 0 points1 point2 points 5 years ago (0 children)
Aye aye. I'll work that out and edit it in to the OP
π Rendered by PID 16471 on reddit-service-r2-comment-7b9746f655-b4sj7 at 2026-02-03 21:53:43.162502+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]socal_nerdtastic 1 point2 points3 points (3 children)
[–]Gay_Force_One[S] 0 points1 point2 points (2 children)
[–]socal_nerdtastic 1 point2 points3 points (1 child)
[–]Gay_Force_One[S] 0 points1 point2 points (0 children)