Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c95628e3
Commit
c95628e3
authored
Apr 29, 2003
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- clean up some extra punctuation hidden in indexing markup
- fix a typo and one markup nit - normalize whitespace
parent
83c19ee0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
13 deletions
+10
-13
Doc/lib/libselect.tex
Doc/lib/libselect.tex
+10
-13
No files found.
Doc/lib/libselect.tex
View file @
c95628e3
...
...
@@ -49,12 +49,12 @@ subsets of the first three arguments. When the time-out is reached
without a file descriptor becoming ready, three empty lists are
returned.
Among
st
the acceptable object types in the lists are Python file
Among the acceptable object types in the lists are Python file
objects (e.g.
\code
{
sys.stdin
}
, or objects returned by
\function
{
open()
}
or
\function
{
os.popen()
}
), socket objects
returned by
\function
{
socket.socket()
}
,
%
returned by
\function
{
socket.socket()
}
.
%
\withsubitem
{
(in module socket)
}{
\ttindex
{
socket()
}}
\withsubitem
{
(in module os)
}{
\ttindex
{
popen()
}}
.
\withsubitem
{
(in module os)
}{
\ttindex
{
popen()
}}
You may also define a
\dfn
{
wrapper
}
class yourself, as long as it has
an appropriate
\method
{
fileno()
}
method (that really returns a file
descriptor, not just a random integer).
...
...
@@ -103,7 +103,6 @@ used will check for all 3 types of events.
Registering a file descriptor that's already registered is not an
error, and has the same effect as registering the descriptor exactly
once.
\end{methoddesc}
\begin{methoddesc}
{
unregister
}{
fd
}
...
...
@@ -128,8 +127,6 @@ An empty list indicates that the call timed out and no file
descriptors had any events to report.
If
\var
{
timeout
}
is given, it specifies the length of time in
milliseconds which the system will wait for events before returning.
If
\var
{
timeout
}
is omitted, negative, or
\co
de
{
None
}
, the call will
If
\var
{
timeout
}
is omitted, negative, or
\co
nstant
{
None
}
, the call will
block until there is an event for this poll object.
\end{methoddesc}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment