<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> My favorite part with operator precedence surrounding bitshifts in Python is that if you accidentally get it wrong on a leftshift and end up shifting something left by a huge number, you will be presented with a MemoryError and are left to ponder how you just managed to do that, on a seemingly innocuous line doing simple arithmetic no less</p>
Reply