iso tank

Pythonいじり

なんだか暇なので、レスポンスヘッダ表示装置を国際化ドメイン名に対応させてみた。

作るにあたって色んな国際化ドメイン名を調べてみたけど、中国とか台湾とかやたら多いのな。

あと下記はhttplibライブラリの例外クラスの引数のメモ。どこにも書いてなかったからさ。

httplib.InvalidURL
引数の持つプロパティ:message
httplib.NotConnected
引数の持つプロパティ:message
httplib.UnknownProtocol
引数の持つプロパティ:message, version
httplib.IllegalKeywordArgument
※なぜかraiseしただけでInternalServerErrorになるなーと思ったらPython 2.6.2にはない例外だった。
SourceForge参照。
httplib.UnknownTransferEncoding
引数の持つプロパティ:message
httplib.UnimplementedFileMode
引数の持つプロパティ:message
httplib.IncompleteRead
引数の持つプロパティ:message, expected, partial
httplib.CannotSendRequest
引数の持つプロパティ:message
httplib.CannotSendHeader
引数の持つプロパティ:message
httplib.ResponseNotReady
引数の持つプロパティ:message
httplib.ImproperConnectionState
CannotSendRequest、CannotSendHeader、ResponseNotReadyの親クラス。
引数の持つプロパティ:message
httplib.BadStatusLine
引数の持つプロパティ:message, line
httplib.HTTPException
httplib下の例外クラスすべての祖。
引数の持つプロパティ:message

Pythonいじり への Writeback

名前:

URLまたはE-Mail:(※リンク表示注意)

コメント:

情報をクッキーに保存する

trackback URI:

http://iso.tank.jp/puroguramu/python02.tarako