08/01/25 21:10:37
>>42
手元でやってみたけど、>>41の言ってるように、
コンストラクタを実行しようとして、9行目でエラーで止まったよ。
これでいいと思うけど。
c:\temp>c:\Python25\python.exe --version
Python 2.5.1
c:\temp>c:\Python25\python.exe hoge.py
Traceback (most recent call last):
File "hoge.py", line 11, in <module>
Orz()
File "hoge.py", line 9, in __init__
print Hoge.Orz.__private
AttributeError: type object 'Orz' has no attribute '_Orz__private'