Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3805fe7

Browse files
committed
Mention getservbyport(). There's no patch number in the CVS log, so I assume Barry wrote the code.
1 parent aafdc9c commit 3805fe7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Doc/whatsnew/whatsnew24.tex

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,9 +1422,10 @@ \section{New, Improved, and Deprecated Modules}
14221422
Python 2.4's regular expression engine can match this pattern without
14231423
problems.
14241424

1425-
\item A new \function{socketpair()} function, returning a pair of
1426-
connected sockets, was added to the \module{socket} module.
1427-
(Contributed by Dave Cole.)
1425+
\item Two new functions were added to the \module{socket} module.
1426+
\function{socketpair()} returns a pair of connected sockets and
1427+
\function{getservbyport(\var{port})} looks up the service name for a
1428+
given port number. (Contributed by Dave Cole and Barry Warsaw.)
14281429

14291430
\item The \function{sys.exitfunc()} function has been deprecated. Code
14301431
should be using the existing \module{atexit} module, which correctly

0 commit comments

Comments
 (0)