- 15 名前:デフォルトの名無しさん [2009/09/24(木) 18:58:00 ]
- たとえば
www.python.jp/doc/2.5/tut/node10.html#SECTION0010400000000000000000 なんかの例を見ても >>> try: ... raise Exception('spam', 'eggs') ... except Exception, inst: ... print type(inst) # 例外インスタンス <type 'instance'> となっています。print type(inst)では Exception か その派生クラスの名前が表示されると思うのですが。
|

|