Created
November 4, 2013 16:50
-
-
Save ryanseys/7305562 to your computer and use it in GitHub Desktop.
Empty array in Python treated as None-ish type
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
//JavaScript | |
[] || 'hello' // returns [] | |
# Python | |
[] or 'hello' # returns 'hello' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment