-
-
Save ibeauregard/a30cefbedd079f4da3ca87c20d4269e7 to your computer and use it in GitHub Desktop.
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
order_by([('93465', '9832'), ('0', '9832'), ('45783', '547389')], | |
[Key(1, False), Key(0, True)]) | |
# Works fine | |
# Ouput: [('45783', '547389'), ('0', '9832'), ('93465', '9832')] | |
order_by([('93465', 'hi'), ('0', 'hello'), ('45783', 'good day')], | |
[Key(1, False), Key(0, True)]) | |
# TypeError: bad operand type for unary -: 'str' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment