Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13981

Python completely ignores function even though it is called, without showing any errors whatsoever [closed]

$
0
0

I have a function that is called and it doesn't print out in the first statement. I have even checked via breakpoints where only call (at least should) happens but nothing in the function itself.

The function is as follows:

def play(max_steps) -> None:    print("Hello World")    counter = 0    while True:        if counter >= max_steps:            return        else:            counter += 1            yield counterplay(5)

Viewing all articles
Browse latest Browse all 13981

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>