network protocols

Tarek Ziadé tarek at ziade.org
Wed Jun 13 07:41:25 EDT 2012


Hey

I was surprised not to find any way to list all protocol names listed in 
/etc/protocols in Python

We have

socket.getprotobyname(NAME)

But there's no way to get the list of names

Any ideas if this is available in the stdlib somehwere ?

Thx
Tarek



More information about the Python-list mailing list