Created
June 10, 2012 17:44
-
-
Save nathania/2906742 to your computer and use it in GitHub Desktop.
Python type conversion
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
# Save one object's type and use as a function later | |
type_1 = type(type_1_obj) | |
type_2_to_1 = type_1(type_2_obj) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment