Created
April 13, 2016 20:44
-
-
Save drj11/24fc1bca8b7dbf058684baa04924aafe to your computer and use it in GitHub Desktop.
Produces wrong error in Python 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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