Skip to content

Instantly share code, notes, and snippets.

@smarnach
Created January 18, 2012 19:46
Show Gist options
  • Save smarnach/1635125 to your computer and use it in GitHub Desktop.
Save smarnach/1635125 to your computer and use it in GitHub Desktop.
Python 2.7.2+ (default, Jun 29 2011, 00:07:42)
[GCC 4.6.1 20110616 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> class A(object):
... pass
...
>>> A.__doc__ = "doc"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: attribute '__doc__' of 'type' objects is not writable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment