[Python-checkins] gh-93183: Adjust wording in socket docs (GH-93832)
miss-islington
webhook-mailer at python.org
Wed Jun 15 04:44:18 EDT 2022
https://github.com/python/cpython/commit/cde0dadd34e3b1954bf404e227980afc7753009c
commit: cde0dadd34e3b1954bf404e227980afc7753009c
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-06-15T01:44:14-07:00
summary:
gh-93183: Adjust wording in socket docs (GH-93832)
package => packet
Co-authored-by: Victor Norman
(cherry picked from commit cdd39843073fc27b8e4a887d5d3b7992cb2ced60)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland at protonmail.com>
files:
M Doc/library/socket.rst
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index c27f408890ac3..e3a855cf4d4e4 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -2028,10 +2028,10 @@ the interface::
# Include IP headers
s.setsockopt(socket.IPPROTO_IP, socket.IP_HDRINCL, 1)
- # receive all packages
+ # receive all packets
s.ioctl(socket.SIO_RCVALL, socket.RCVALL_ON)
- # receive a package
+ # receive a packet
print(s.recvfrom(65565))
# disabled promiscuous mode
More information about the Python-checkins
mailing list