消息 [208156]
>>> import urllib.parse
>>> p = urllib.parse.urlparse('http://[::1]spam:80')
>>> p
ParseResult(scheme='http', netloc='[::1]spam:80', path='', params='', query='', fragment='')
>>> p.hostname
'::1'
>>> p.port
80
'http://[::1]spam:80' is invalid URL, but urllib.parse.urlparse() accepts it and just ignore the spam part. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2014-01-15 12:32:10 | serhiy.storchaka | 修改 | recipients:
+ serhiy.storchaka, orsenthil |
| 2014-01-15 12:32:09 | serhiy.storchaka | 修改 | messageid: <1389789129.93.0.775761654638.issue20271@psf.upfronthosting.co.za> |
| 2014-01-15 12:32:09 | serhiy.storchaka | 链接 | issue20271 messages |
| 2014-01-15 12:32:09 | serhiy.storchaka | 创建 | |
|