Created
April 18, 2019 17:33
-
-
Save luisenriquecorona/b5e3cef58dd2de3532f9c8c11273ab63 to your computer and use it in GitHub Desktop.
How to Break Your Code’s Flexibility
This file contains hidden or 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
# In Python 2.X: | |
>>> type(L) | |
<type 'list'> | |
>>> type(type(L)) <type 'type'> | |
# In Python 3.X: | |
>>> type(L) <class 'list'> >>> type(type(L)) <class 'type'> | |
# Types: type of L is list type object # Even types are objects | |
# 3.X: types are classes, and vice versa # See Chapter 32 for more on class types |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment