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
ad21945d
Kaydet (Commit)
ad21945d
authored
Haz 14, 2004
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Back out #957240.
üst
148a63f1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
19 deletions
+16
-19
libasyncore.tex
Doc/lib/libasyncore.tex
+14
-14
asyncore.py
Lib/asyncore.py
+2
-3
NEWS
Misc/NEWS
+0
-2
No files found.
Doc/lib/libasyncore.tex
Dosyayı görüntüle @
ad21945d
...
@@ -44,20 +44,20 @@ channel (including any that have been added to the map during asynchronous
...
@@ -44,20 +44,20 @@ channel (including any that have been added to the map during asynchronous
service) is closed.
service) is closed.
\begin{funcdesc}
{
loop
}{
\optional
{
timeout
\optional
{
, use
_
poll
\optional
{
,
\begin{funcdesc}
{
loop
}{
\optional
{
timeout
\optional
{
, use
_
poll
\optional
{
,
map
\optional
{
,count
}
}}}}
map
}}}}
Enter a polling loop that
terminates after count passes or all open
Enter a polling loop that
only terminates after all open channels
channels have been closed. All arguments are optional. The
\var
(count)
have been closed. All arguments are optional. The
\var
{
timeout
}
parameter defaults to infinity, resulting in the loop terminating only
argument sets the timeout parameter for the appropriate
when all channels have been closed. The
\var
{
timeout
}
argument sets the
\function
{
select()
}
or
\function
{
poll()
}
call, measured in seconds;
t
imeout parameter for the appropriate
\function
{
select()
}
or
t
he default is 30 seconds. The
\var
{
use
_
poll
}
parameter, if true,
\function
{
poll()
}
call, measured in seconds; the default is 30 seconds.
indicates that
\function
{
poll()
}
should be used in preference to
The
\var
{
use
_
poll
}
parameter, if true, indicates that
\function
{
poll()
}
\function
{
select()
}
(the default is
\code
{
False
}
). The
\var
{
map
}
parameter
should be used in preference to
\function
{
select()
}
(the default i
s
is a dictionary whose items are the channels to watch. As channel
s
\code
{
False
}
). The
\var
{
map
}
parameter is a dictionary whose items are
are closed they are deleted from their map. If
\var
{
map
}
is
the channels to watch. As channels are closed they are deleted from their
omitted, a global map is used (this map is updated by the default
map. If
\var
{
map
}
is omitted, a global map is used (this map is updated
class
\method
{__
init
__
()
}
by the default class
\method
{__
init
__
()
}
-- make sure you extend, rather
-- make sure you extend, rather than override,
\method
{__
init
__
()
}
than override,
\method
{__
init
__
()
}
if you want to retain this behavior).
if you want to retain this behavior).
Channels (instances of
\class
{
asyncore.dispatcher
}
,
\class
{
asynchat.async
_
chat
}
Channels (instances of
\class
{
asyncore.dispatcher
}
,
\class
{
asynchat.async
_
chat
}
and subclasses thereof) can freely be mixed in the map.
and subclasses thereof) can freely be mixed in the map.
...
...
Lib/asyncore.py
Dosyayı görüntüle @
ad21945d
...
@@ -157,7 +157,7 @@ def poll2(timeout=0.0, map=None):
...
@@ -157,7 +157,7 @@ def poll2(timeout=0.0, map=None):
poll3
=
poll2
# Alias for backward compatibility
poll3
=
poll2
# Alias for backward compatibility
def
loop
(
timeout
=
30.0
,
use_poll
=
False
,
map
=
None
,
count
=
1e309
):
def
loop
(
timeout
=
30.0
,
use_poll
=
False
,
map
=
None
):
if
map
is
None
:
if
map
is
None
:
map
=
socket_map
map
=
socket_map
...
@@ -166,9 +166,8 @@ def loop(timeout=30.0, use_poll=False, map=None, count=1e309):
...
@@ -166,9 +166,8 @@ def loop(timeout=30.0, use_poll=False, map=None, count=1e309):
else
:
else
:
poll_fun
=
poll
poll_fun
=
poll
while
map
and
count
>=
0
:
while
map
:
poll_fun
(
timeout
,
map
)
poll_fun
(
timeout
,
map
)
count
=
count
-
1
class
dispatcher
:
class
dispatcher
:
...
...
Misc/NEWS
Dosyayı görüntüle @
ad21945d
...
@@ -349,8 +349,6 @@ Library
...
@@ -349,8 +349,6 @@ Library
- refactored site.py into functions. Also wrote regression tests for the
- refactored site.py into functions. Also wrote regression tests for the
module.
module.
- asyncore.loop now has repeat count parameter that defaults to infinity.
- The distutils sdist command now ignores all .svn directories, in
- The distutils sdist command now ignores all .svn directories, in
addition to CVS and RCS directories. .svn directories hold
addition to CVS and RCS directories. .svn directories hold
administrative files for the Subversion source control system.
administrative files for the Subversion source control system.
...
...
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