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

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

Is this deliberate?

Antoine.



More information about the Python-Dev mailing list