python:クラス名の取得: __class__.__name__

[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from tx import *
>>> x=deliver()
>>> x.__class__
<class tx.deliver at 0xb7de45cc>
>>> x.__class__.__name__
'deliver'
カテゴリー: 未分類 パーマリンク

コメントを残す