(original) (raw)
this is happening on python 2.6 too.
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> class Test(type):
... \_\_doc\_\_=
File "<stdin>", line 2
\_\_doc\_\_=
^
SyntaxError: invalid syntax
>>> class Test(type):
... \_\_doc\_\_='asasdas'
...
>>>
>>> Test.\_\_doc\_\_='sadfsdff'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: attribute '\_\_doc\_\_' of 'type' objects is not writable
>>> type(Test)
<type 'type'>
>>>