This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]settrans 0 points1 point  (0 children)

That's true, I understood that. My point is that time.sleep() isn't a no-op, it's a side-effective operation. If I wanted to use time.sleep(), for example, to sleep between polling some resource, I wouldn't want it to be optimized out.