Created
October 11, 2013 15:38
-
-
Save MarkRoddy/6936926 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
pmroddy@mroddy-local-vm:~$ python | |
Python 2.7.3 (default, Apr 10 2013, 05:46:21) | |
[GCC 4.6.3] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> int.__add__ = lambda x: 5 | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
TypeError: can't set attributes of built-in/extension type 'int' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment