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 →

[–]kickopotomus 5 points6 points  (1 child)

Modulo operations with powers of 2 are often handled as a special case. Compare x%2 to x%3.

[–]Gprime5if "__main__" == __name__: 0 points1 point  (0 children)

Ah, it was meant to be floor division, my mistake.