Skip to content

Instantly share code, notes, and snippets.

@EvanBurchard
Created October 2, 2009 03:23
Show Gist options
  • Save EvanBurchard/199440 to your computer and use it in GitHub Desktop.
Save EvanBurchard/199440 to your computer and use it in GitHub Desktop.
:( 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