Skip to content

Instantly share code, notes, and snippets.

@drj11
Created April 13, 2016 20:44
Show Gist options
  • Save drj11/24fc1bca8b7dbf058684baa04924aafe to your computer and use it in GitHub Desktop.
Save drj11/24fc1bca8b7dbf058684baa04924aafe to your computer and use it in GitHub Desktop.
Produces wrong error in Python 3
#!/usr/bin/env python3
def it():
x=1
yield 1
"{:d}".format(x.bit_length) # try changing to assert 0
yield 2
print(max(*it()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment