PyDocs
Standard Library
(3.15.2)
Quick Reference
Log In
Nav
Top
Examples
0
See Also
0
Notes
0
Networking and Interprocess Communication
asyncio
mmap
select
selectors
signal
socket
ssl
All modules
PyDocs
Standard Library
Quick Ref
Log In
Staging: this is not the live site, pydocs.org.
PyDocs
Standard Library
Quick Ref
Log In
Nav
Top
Examples
0
See Also
0
Notes
0
Networking and Interprocess Communication
asyncio
mmap
select
selectors
signal
socket
ssl
All modules
ntohs
socket
function
not WASI
ntohs(x)
Convert a 16-bit unsigned integer from network to host byte order.
© Python Software Foundation.
PSF License Version 2
·
Official docs ↗
Changed in 3.10
3.10:
Raises OverflowError if x does not fit in a 16-bit unsigned integer.
0 Examples
No examples for socket/ntohs.
Log in
to add an example
See Also
No see-alsos for
socket/ntohs
Log in
to add a see-also
0 Notes
No notes for
ntohs
Log in
to add a note