Split function for host:port in standard lib

Hartmut Goebel h.goebel at goebel-consult.de
Wed Aug 27 14:05:00 EDT 2008


Michael Ströder schrieb:

> Examples IPv6 addresses:
> '::1:389' -> ('::1',389)
> '::1' -> ('::1',None)

These are wrong, see http://tools.ietf.org/html/rfc2732 ("Format for 
Literal IPv6 Addresses in URL's§).

Correct formats are:
[::1]:389
[::1]



More information about the Python-list mailing list