Created
October 2, 2009 03:23
-
-
Save EvanBurchard/199440 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
:( I miss you Ruby... | |
>>> x = 7 | |
>>> print x + "some literal" | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
TypeError: unsupported operand type(s) for +: 'int' and 'str' | |
>>> x.to_string() | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
AttributeError: 'int' object has no attribute 'to_string' | |
>>> x.repr() | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
AttributeError: 'int' object has no attribute 'repr' | |
>>> x.str() | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
AttributeError: 'int' object has no attribute 'str' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment