Split function for host:port in standard lib

Michael Ströder michael at stroeder.com
Tue Aug 26 07:31:58 EDT 2008


HI!

Is there a function in the standard lib which can be used to split a 
string containg 'host:port' into a tuple (host,port) and also does this 
reliably for IPv6 addresses?

Ciao, Michael.



More information about the Python-list mailing list