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/093193.html below:

[Python-Dev] readonly __doc__

[Python-Dev] readonly __doc__ [Python-Dev] readonly __doc__Alexander Belopolsky alexander.belopolsky at gmail.com
Thu Oct 22 19:52:51 CEST 2009
On Thu, Oct 22, 2009 at 1:25 PM, Antoine Pitrou <solipsis at pitrou.net> wrote:
..
> I might add why I was asking this question. I was trying to demonstrate the use
> of class decorators and the simplest example I found was to add a docstring to
> the class.

I always thought that read-only __doc__ was an artifact of new classes
evolving from (C-implemented) types.  IIRC, NumPy project implemented
a somewhat elaborate hack to allow docstrings to be added to
C-implemented classes in a .py file.
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