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
b3931d21
Kaydet (Commit)
b3931d21
authored
Kas 22, 2013
tarafından
Andrew Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Wording changes
üst
02ac74ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
selectors.rst
Doc/library/selectors.rst
+5
-5
No files found.
Doc/library/selectors.rst
Dosyayı görüntüle @
b3931d21
...
@@ -78,12 +78,12 @@ below:
...
@@ -78,12 +78,12 @@ below:
.. attribute:: events
.. attribute:: events
Events that must be waited for this file object.
Events that must be waited for
on
this file object.
.. attribute:: data
.. attribute:: data
Optional opaque data associated to this file object: for example, this
Optional opaque data associated to this file object: for example, this
could be used to store
per-client session
.
could be used to store
a per-client session ID
.
.. class:: BaseSelector
.. class:: BaseSelector
...
@@ -122,7 +122,7 @@ below:
...
@@ -122,7 +122,7 @@ below:
.. method:: modify(fileobj, events, data=None)
.. method:: modify(fileobj, events, data=None)
Change a registered file object monitored events or attached data.
Change a registered file object
's
monitored events or attached data.
This is equivalent to :meth:`BaseSelector.unregister(fileobj)` followed
This is equivalent to :meth:`BaseSelector.unregister(fileobj)` followed
by :meth:`BaseSelector.register(fileobj, events, data)`, except that it
by :meth:`BaseSelector.register(fileobj, events, data)`, except that it
...
@@ -143,7 +143,7 @@ below:
...
@@ -143,7 +143,7 @@ below:
If *timeout* is ``None``, the call will block until a monitored file object
If *timeout* is ``None``, the call will block until a monitored file object
becomes ready.
becomes ready.
This returns a list of ``(key, events)`` tuple, one for each ready file
This returns a list of ``(key, events)`` tuple
s
, one for each ready file
object.
object.
*key* is the :class:`SelectorKey` instance corresponding to a ready file
*key* is the :class:`SelectorKey` instance corresponding to a ready file
...
@@ -159,7 +159,7 @@ below:
...
@@ -159,7 +159,7 @@ below:
.. method:: get_key(fileobj)
.. method:: get_key(fileobj)
Return the key associated
to
a registered file object.
Return the key associated
with
a registered file object.
This returns the :class:`SelectorKey` instance associated to this file
This returns the :class:`SelectorKey` instance associated to this file
object, or raises :exc:`KeyError` if the file object is not registered.
object, or raises :exc:`KeyError` if the file object is not registered.
...
...
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