A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-October/093182.html below:

[Python-Dev] readonly __doc__

[Python-Dev] readonly __doc__ [Python-Dev] readonly __doc__Antoine Pitrou solipsis at pitrou.net
Thu Oct 22 18:45:00 CEST 2009
Speaking of the __doc__ property, I just noticed the following thing on py3k:

>>> class C: pass
... 
>>> C.__doc__ = "hop"
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: attribute '__doc__' of 'type' objects is not writable


Is this deliberate?

Antoine.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4