[Python-checkins] r73832 - in python/branches/py3k: Doc/library/select.rst Modules/selectmodule.c
gregory.p.smith
python-checkins at python.org
Sat Jul 4 04:28:47 CEST 2009
Author: gregory.p.smith
Date: Sat Jul 4 04:28:47 2009
New Revision: 73832
Log:
Merged revisions 73818 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r73818 | gregory.p.smith | 2009-07-03 13:48:31 -0700 (Fri, 03 Jul 2009) | 2 lines
Adds the select.PIPE_BUF attribute to expose the system constant.
........
Modified:
python/branches/py3k/ (props changed)
python/branches/py3k/Doc/library/select.rst
python/branches/py3k/Modules/selectmodule.c
Modified: python/branches/py3k/Doc/library/select.rst
==============================================================================
--- python/branches/py3k/Doc/library/select.rst (original)
+++ python/branches/py3k/Doc/library/select.rst Sat Jul 4 04:28:47 2009
@@ -94,6 +94,15 @@
library, and does not handle file descriptors that don't originate from
WinSock.
+.. attribute:: select.PIPE_BUF
+
+ Files reported as ready for writing by :func:`select`, :func:`poll` or
+ similar interfaces in this module are guaranteed to not block on a write
+ of up to :const:`PIPE_BUF` bytes.
+ This value is guaranteed by POSIX to be at least 512.
+
+ .. versionadded:: 2.7
+
.. _epoll-objects:
Modified: python/branches/py3k/Modules/selectmodule.c
==============================================================================
--- python/branches/py3k/Modules/selectmodule.c (original)
+++ python/branches/py3k/Modules/selectmodule.c Sat Jul 4 04:28:47 2009
@@ -1764,6 +1764,8 @@
Py_INCREF(SelectError);
PyModule_AddObject(m, "error", SelectError);
+ PyModule_AddIntConstant(m, "PIPE_BUF", PIPE_BUF);
+
#if defined(HAVE_POLL)
#ifdef __APPLE__
if (select_have_broken_poll()) {
More information about the Python-checkins
mailing list