'Python 3.10 - module 'socket' has no attribute 'IPPROTO_MPTCP'

According to the documentation, the "IPPROTO_MPTCP" protocol has been added to Python3.10, but when I create a socket like this,

socket.socket(socket.AF_INET, socket.SOCK_STREAM, socket.IPPROTO_MPTCP)

I get this error

module 'socket' has no attribute 'IPPROTO_MPTCP'

What could I be doing wrong in this? Here's a screenshot.

Here's a screenshot as well



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source