mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Get rid of the remaining versionadded/versionchanged directives.
This commit is contained in:
parent
1617457cff
commit
55ac8f0f26
161 changed files with 335 additions and 2197 deletions
|
@ -63,8 +63,7 @@ differently into an actual IPv4/v6 address, depending on the results from DNS
|
|||
resolution and/or the host configuration. For deterministic behavior use a
|
||||
numeric address in *host* portion.
|
||||
|
||||
.. versionadded:: 2.5
|
||||
AF_NETLINK sockets are represented as pairs ``pid, groups``.
|
||||
AF_NETLINK sockets are represented as pairs ``pid, groups``.
|
||||
|
||||
All errors raise exceptions. The normal exceptions for invalid argument types
|
||||
and out-of-memory conditions can be raised; errors related to socket or address
|
||||
|
@ -114,8 +113,6 @@ The module :mod:`socket` exports the following constants and functions:
|
|||
timeouts enabled via a prior call to :meth:`settimeout`. The accompanying value
|
||||
is a string whose value is currently always "timed out".
|
||||
|
||||
.. versionadded:: 2.3
|
||||
|
||||
|
||||
.. data:: AF_UNIX
|
||||
AF_INET
|
||||
|
@ -164,8 +161,6 @@ The module :mod:`socket` exports the following constants and functions:
|
|||
This constant contains a boolean value which indicates if IPv6 is supported on
|
||||
this platform.
|
||||
|
||||
.. versionadded:: 2.3
|
||||
|
||||
|
||||
.. function:: create_connection(address[, timeout])
|
||||
|
||||
|
@ -176,8 +171,6 @@ The module :mod:`socket` exports the following constants and functions:
|
|||
instance (if it is not given or ``None``, the global default timeout setting is
|
||||
used).
|
||||
|
||||
.. versionadded:: 2.6
|
||||
|
||||
|
||||
.. function:: getaddrinfo(host, port[, family[, socktype[, proto[, flags]]]])
|
||||
|
||||
|
@ -200,8 +193,6 @@ The module :mod:`socket` exports the following constants and functions:
|
|||
address, as described above. See the source for :mod:`socket` and other
|
||||
library modules for a typical usage of the function.
|
||||
|
||||
.. versionadded:: 2.2
|
||||
|
||||
|
||||
.. function:: getfqdn([name])
|
||||
|
||||
|
@ -212,8 +203,6 @@ The module :mod:`socket` exports the following constants and functions:
|
|||
case no fully qualified domain name is available, the hostname as returned by
|
||||
:func:`gethostname` is returned.
|
||||
|
||||
.. versionadded:: 2.0
|
||||
|
||||
|
||||
.. function:: gethostbyname(hostname)
|
||||
|
||||
|
@ -264,8 +253,6 @@ The module :mod:`socket` exports the following constants and functions:
|
|||
or numeric address representation in *host*. Similarly, *port* can contain a
|
||||
string port name or a numeric port number.
|
||||
|
||||
.. versionadded:: 2.2
|
||||
|
||||
|
||||
.. function:: getprotobyname(protocolname)
|
||||
|
||||
|
@ -308,8 +295,6 @@ The module :mod:`socket` exports the following constants and functions:
|
|||
if defined on the platform; otherwise, the default is :const:`AF_INET`.
|
||||
Availability: Unix.
|
||||
|
||||
.. versionadded:: 2.4
|
||||
|
||||
|
||||
.. function:: fromfd(fd, family, type[, proto])
|
||||
|
||||
|
@ -396,8 +381,6 @@ The module :mod:`socket` exports the following constants and functions:
|
|||
|
||||
Availability: Unix (maybe not all platforms).
|
||||
|
||||
.. versionadded:: 2.3
|
||||
|
||||
|
||||
.. function:: inet_ntop(address_family, packed_ip)
|
||||
|
||||
|
@ -414,8 +397,6 @@ The module :mod:`socket` exports the following constants and functions:
|
|||
|
||||
Availability: Unix (maybe not all platforms).
|
||||
|
||||
.. versionadded:: 2.3
|
||||
|
||||
|
||||
.. function:: getdefaulttimeout()
|
||||
|
||||
|
@ -423,8 +404,6 @@ The module :mod:`socket` exports the following constants and functions:
|
|||
of ``None`` indicates that new socket objects have no timeout. When the socket
|
||||
module is first imported, the default is ``None``.
|
||||
|
||||
.. versionadded:: 2.3
|
||||
|
||||
|
||||
.. function:: setdefaulttimeout(timeout)
|
||||
|
||||
|
@ -432,8 +411,6 @@ The module :mod:`socket` exports the following constants and functions:
|
|||
``None`` indicates that new socket objects have no timeout. When the socket
|
||||
module is first imported, the default is ``None``.
|
||||
|
||||
.. versionadded:: 2.3
|
||||
|
||||
|
||||
.. data:: SocketType
|
||||
|
||||
|
@ -599,8 +576,6 @@ correspond to Unix system calls applicable to sockets.
|
|||
optional argument *flags*; it defaults to zero. (The format of *address*
|
||||
depends on the address family --- see above.)
|
||||
|
||||
.. versionadded:: 2.5
|
||||
|
||||
|
||||
.. method:: socket.recv_into(buffer[, nbytes[, flags]])
|
||||
|
||||
|
@ -610,8 +585,6 @@ correspond to Unix system calls applicable to sockets.
|
|||
:manpage:`recv(2)` for the meaning of the optional argument *flags*; it defaults
|
||||
to zero.
|
||||
|
||||
.. versionadded:: 2.5
|
||||
|
||||
|
||||
.. method:: socket.send(string[, flags])
|
||||
|
||||
|
@ -662,8 +635,6 @@ correspond to Unix system calls applicable to sockets.
|
|||
``s.settimeout(0.0)`` is equivalent to ``s.setblocking(0)``;
|
||||
``s.settimeout(None)`` is equivalent to ``s.setblocking(1)``.
|
||||
|
||||
.. versionadded:: 2.3
|
||||
|
||||
|
||||
.. method:: socket.gettimeout()
|
||||
|
||||
|
@ -671,7 +642,6 @@ correspond to Unix system calls applicable to sockets.
|
|||
``None`` if no timeout is set. This reflects the last call to
|
||||
:meth:`setblocking` or :meth:`settimeout`.
|
||||
|
||||
.. versionadded:: 2.3
|
||||
|
||||
Some notes on socket blocking and timeouts: A socket object can be in one of
|
||||
three modes: blocking, non-blocking, or timeout. Sockets are always created in
|
||||
|
@ -724,22 +694,16 @@ values given to the :class:`socket` constructor.
|
|||
|
||||
The socket family.
|
||||
|
||||
.. versionadded:: 2.5
|
||||
|
||||
|
||||
.. attribute:: socket.type
|
||||
|
||||
The socket type.
|
||||
|
||||
.. versionadded:: 2.5
|
||||
|
||||
|
||||
.. attribute:: socket.proto
|
||||
|
||||
The socket protocol.
|
||||
|
||||
.. versionadded:: 2.5
|
||||
|
||||
|
||||
.. _socket-example:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue