[Python-Dev] readonly doc (original) (raw)

Guido van Rossum guido at python.org
Thu Oct 22 19:12:09 CEST 2009


On Thu, Oct 22, 2009 at 9:45 AM, Antoine Pitrou <solipsis at pitrou.net> wrote:

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 "", line 1, in AttributeError: attribute 'doc' of 'type' objects is not writable Is this deliberate?

Yes.

-- --Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list