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
2b97b71b
Kaydet (Commit)
2b97b71b
authored
Ara 19, 2008
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
_call_method -> _callmethod and _get_value to _getvalue
üst
dd5312d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
multiprocessing.rst
Doc/library/multiprocessing.rst
+9
-9
No files found.
Doc/library/multiprocessing.rst
Dosyayı görüntüle @
2b97b71b
...
...
@@ -1438,13 +1438,13 @@ itself. This means, for example, that one shared object can contain a second::
Proxy
objects
are
instances
of
subclasses
of
:
class
:`
BaseProxy
`.
..
method
::
_call
_
method
(
methodname
[,
args
[,
kwds
]])
..
method
::
_callmethod
(
methodname
[,
args
[,
kwds
]])
Call
and
return
the
result
of
a
method
of
the
proxy
's referent.
If ``proxy`` is a proxy whose referent is ``obj`` then the expression ::
proxy._call
_
method(methodname, args, kwds)
proxy._callmethod(methodname, args, kwds)
will evaluate the expression ::
...
...
@@ -1457,26 +1457,26 @@ itself. This means, for example, that one shared object can contain a second::
argument
of
:
meth
:`
BaseManager
.
register
`.
If
an
exception
is
raised
by
the
call
,
then
then
is
re
-
raised
by
:
meth
:`
_call
_
method
`.
If
some
other
exception
is
raised
in
the
manager
's
:
meth
:`
_callmethod
`.
If
some
other
exception
is
raised
in
the
manager
's
process then this is converted into a :exc:`RemoteError` exception and is
raised by :meth:`_call
_
method`.
raised by :meth:`_callmethod`.
Note in particular that an exception will be raised if *methodname* has
not been *exposed*
An example of the usage of :meth:`_call
_
method`::
An example of the usage of :meth:`_callmethod`::
>>> l = manager.list(range(10))
>>> l._call
_
method('
__len__
')
>>> l._callmethod('
__len__
')
10
>>> l._call
_
method('
__getslice__
', (2, 7)) # equiv to `l[2:7]`
>>> l._callmethod('
__getslice__
', (2, 7)) # equiv to `l[2:7]`
[2, 3, 4, 5, 6]
>>> l._call
_
method('
__getitem__
', (20,)) # equiv to `l[20]`
>>> l._callmethod('
__getitem__
', (20,)) # equiv to `l[20]`
Traceback (most recent call last):
...
IndexError: list index out of range
.. method:: _get
_
value()
.. method:: _getvalue()
Return a copy of the referent.
...
...
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