Skip to content

Instantly share code, notes, and snippets.

@MarkRoddy
Created October 11, 2013 15:38
Show Gist options
  • Save MarkRoddy/6936926 to your computer and use it in GitHub Desktop.
Save MarkRoddy/6936926 to your computer and use it in GitHub Desktop.
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