[Python-Dev] readonly __doc__

Antoine Pitrou solipsis at pitrou.net
Thu Oct 22 23:26:35 CEST 2009


Le jeudi 22 octobre 2009 à 13:59 -0700, Guido van Rossum a écrit :
> > I don't really understand how this explains the read-only __doc__.
> > I am talking about modifying __doc__ on a class, not on an instance.
> > (sure, a new-style class is also an instance of type, but still...)
> 
> Antoine, it's not clear from the questions you're asking whether
> you've read the code in typobject.c that implements __doc__ or not.

Ah, well I haven't :-/ My bad.

Regards

Antoine.




More information about the Python-Dev mailing list