Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
b401637b
Kaydet (Commit)
b401637b
authored
Nis 02, 1998
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Markup nits, index entries.
üst
674e0fd7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
32 deletions
+38
-32
libselect.tex
Doc/lib/libselect.tex
+19
-16
libselect.tex
Doc/libselect.tex
+19
-16
No files found.
Doc/lib/libselect.tex
Dosyayı görüntüle @
b401637b
...
...
@@ -2,22 +2,21 @@
\label
{
module-select
}
\bimodindex
{
select
}
This module provides access to the function
\c
ode
{
select
}
available in
most
\UNIX
{}
versions. It defines the following:
This module provides access to the function
\c
function
{
select()
}
available in
most
\UNIX
{}
versions. It defines the following:
\setindexsubitem
{
(in module select)
}
\begin{excdesc}
{
error
}
The exception raised when an error occurs. The accompanying value is
a pair containing the numeric error code from
\c
ode
{
errno
}
and the
corresponding string, as would be printed by the
C
function
\c
ode
{
perror()
}
.
a pair containing the numeric error code from
\c
data
{
errno
}
and the
corresponding string, as would be printed by the
\C
{}
function
\c
function
{
perror()
}
.
\end{excdesc}
\begin{funcdesc}
{
select
}{
iwtd, owtd, ewtd
\optional
{
, timeout
}}
This is a straightforward interface to the
\UNIX
{}
\c
ode
{
select()
}
This is a straightforward interface to the
\UNIX
{}
\c
function
{
select()
}
system call. The first three arguments are lists of `waitable
objects': either integers representing
\UNIX
{}
file descriptors or
objects with a parameterless method named
\
code
{
fileno()
}
returning
objects with a parameterless method named
\
method
{
fileno()
}
returning
such an integer. The three lists of waitable objects are for input,
output and `exceptional conditions', respectively. Empty lists are
allowed. The optional
\var
{
timeout
}
argument specifies a time-out as a
...
...
@@ -31,13 +30,17 @@ without a file descriptor becoming ready, three empty lists are
returned.
Amongst the acceptable object types in the lists are Python file
objects (e.g.
\code
{
sys.stdin
}
, or objects returned by
\code
{
open()
}
or
\code
{
posix.popen()
}
), socket objects returned by
\code
{
socket.socket()
}
, and the module
\code
{
stdwin
}
which happens to
define a function
\code
{
fileno()
}
for just this purpose. You may
objects (e.g.
\code
{
sys.stdin
}
, or objects returned by
\function
{
open()
}
or
\function
{
os.popen()
}
), socket objects
returned by
\function
{
socket.socket()
}
,
%
\withsubitem
{
(in module socket)
}{
\ttindex
{
socket()
}}
\withsubitem
{
(in module posix)
}{
\ttindex
{
popen()
}}
\withsubitem
{
(in module os)
}{
\ttindex
{
popen()
}}
and the module
\module
{
stdwin
}
\refbimodindex
{
stdwin
}
which happens to
define a function
\function
{
fileno()
}
%
\withsubitem
{
(in module stdwin)
}{
\ttindex
{
fileno()
}}
for just this purpose. You may
also define a
\dfn
{
wrapper
}
class yourself, as long as it has an
appropriate
\
code
{
fileno()
}
method (that really returns a
\UNIX
{}
file
descriptor, not just a random integer).
appropriate
\
method
{
fileno()
}
method (that really returns a
\UNIX
{}
file
descriptor, not just a random integer).
\end{funcdesc}
\ttindex
{
socket
}
\ttindex
{
stdwin
}
Doc/libselect.tex
Dosyayı görüntüle @
b401637b
...
...
@@ -2,22 +2,21 @@
\label
{
module-select
}
\bimodindex
{
select
}
This module provides access to the function
\c
ode
{
select
}
available in
most
\UNIX
{}
versions. It defines the following:
This module provides access to the function
\c
function
{
select()
}
available in
most
\UNIX
{}
versions. It defines the following:
\setindexsubitem
{
(in module select)
}
\begin{excdesc}
{
error
}
The exception raised when an error occurs. The accompanying value is
a pair containing the numeric error code from
\c
ode
{
errno
}
and the
corresponding string, as would be printed by the
C
function
\c
ode
{
perror()
}
.
a pair containing the numeric error code from
\c
data
{
errno
}
and the
corresponding string, as would be printed by the
\C
{}
function
\c
function
{
perror()
}
.
\end{excdesc}
\begin{funcdesc}
{
select
}{
iwtd, owtd, ewtd
\optional
{
, timeout
}}
This is a straightforward interface to the
\UNIX
{}
\c
ode
{
select()
}
This is a straightforward interface to the
\UNIX
{}
\c
function
{
select()
}
system call. The first three arguments are lists of `waitable
objects': either integers representing
\UNIX
{}
file descriptors or
objects with a parameterless method named
\
code
{
fileno()
}
returning
objects with a parameterless method named
\
method
{
fileno()
}
returning
such an integer. The three lists of waitable objects are for input,
output and `exceptional conditions', respectively. Empty lists are
allowed. The optional
\var
{
timeout
}
argument specifies a time-out as a
...
...
@@ -31,13 +30,17 @@ without a file descriptor becoming ready, three empty lists are
returned.
Amongst the acceptable object types in the lists are Python file
objects (e.g.
\code
{
sys.stdin
}
, or objects returned by
\code
{
open()
}
or
\code
{
posix.popen()
}
), socket objects returned by
\code
{
socket.socket()
}
, and the module
\code
{
stdwin
}
which happens to
define a function
\code
{
fileno()
}
for just this purpose. You may
objects (e.g.
\code
{
sys.stdin
}
, or objects returned by
\function
{
open()
}
or
\function
{
os.popen()
}
), socket objects
returned by
\function
{
socket.socket()
}
,
%
\withsubitem
{
(in module socket)
}{
\ttindex
{
socket()
}}
\withsubitem
{
(in module posix)
}{
\ttindex
{
popen()
}}
\withsubitem
{
(in module os)
}{
\ttindex
{
popen()
}}
and the module
\module
{
stdwin
}
\refbimodindex
{
stdwin
}
which happens to
define a function
\function
{
fileno()
}
%
\withsubitem
{
(in module stdwin)
}{
\ttindex
{
fileno()
}}
for just this purpose. You may
also define a
\dfn
{
wrapper
}
class yourself, as long as it has an
appropriate
\
code
{
fileno()
}
method (that really returns a
\UNIX
{}
file
descriptor, not just a random integer).
appropriate
\
method
{
fileno()
}
method (that really returns a
\UNIX
{}
file
descriptor, not just a random integer).
\end{funcdesc}
\ttindex
{
socket
}
\ttindex
{
stdwin
}
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