]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update whatsnew/3.4.rst wrt. the socket constants switch to IntEnum
authorEli Bendersky <eliben@gmail.com>
Sat, 31 Aug 2013 22:18:48 +0000 (15:18 -0700)
committerEli Bendersky <eliben@gmail.com>
Sat, 31 Aug 2013 22:18:48 +0000 (15:18 -0700)
[issue #18730]

Doc/whatsnew/3.4.rst

index 311c683f928a896526e6ffb07bd75abacd1af1ee..218b8229776dc1db659179374bc9586d5d423fc3 100644 (file)
@@ -320,6 +320,9 @@ Socket objects have new methods to get or set their `inheritable flag
 
 * :meth:`socket.socket.get_inheritable`, :meth:`socket.socket.set_inheritable`
 
+The ``socket.AF_*`` and ``socket.SOCK_*`` constants are enumeration values,
+using the new :mod:`enum` module. This allows descriptive reporting during
+debugging, instead of seeing integer "magic numbers".
 
 ssl
 ---