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
762d761d
Kaydet (Commit)
762d761d
authored
Ock 20, 2016
tarafından
Senthil Kumaran
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
issue25982 - Add a class definition for managers.Namespace in the multiprocessing docs.
üst
9b5177c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
multiprocessing.rst
Doc/library/multiprocessing.rst
+16
-15
No files found.
Doc/library/multiprocessing.rst
Dosyayı görüntüle @
762d761d
...
@@ -215,7 +215,7 @@ However, if you really do need to use some shared data then
...
@@ -215,7 +215,7 @@ However, if you really do need to use some shared data then
proxies
.
proxies
.
A
manager
returned
by
:
func
:`
Manager
`
will
support
types
:
class
:`
list
`,
A
manager
returned
by
:
func
:`
Manager
`
will
support
types
:
class
:`
list
`,
:
class
:`
dict
`,
:
class
:`
Namespace
`,
:
class
:`
Lock
`,
:
class
:`
RLock
`,
:
class
:`
dict
`,
:
class
:`
~
managers
.
Namespace
`,
:
class
:`
Lock
`,
:
class
:`
RLock
`,
:
class
:`
Semaphore
`,
:
class
:`
BoundedSemaphore
`,
:
class
:`
Condition
`,
:
class
:`
Semaphore
`,
:
class
:`
BoundedSemaphore
`,
:
class
:`
Condition
`,
:
class
:`
Event
`,
:
class
:`~
multiprocessing
.
Queue
`,
:
class
:`
Value
`
and
:
class
:`
Array
`.
For
:
class
:`
Event
`,
:
class
:`~
multiprocessing
.
Queue
`,
:
class
:`
Value
`
and
:
class
:`
Array
`.
For
example
,
::
example
,
::
...
@@ -1512,24 +1512,25 @@ their parent process exits. The manager classes are defined in the
...
@@ -1512,24 +1512,25 @@ their parent process exits. The manager classes are defined in the
lproxy
[
0
]
=
d
lproxy
[
0
]
=
d
Namespace
objects
..
class
::
Namespace
>>>>>>>>>>>>>>>>>
A
namespace
object
has
no
public
methods
,
but
does
have
writable
attributes
.
A
type
that
can
register
with
:
class
:`
SyncManager
`.
Its
representation
shows
the
values
of
its
attributes
.
However
,
when
using
a
proxy
for
a
namespace
object
,
an
attribute
beginning
with
A
namespace
object
has
no
public
methods
,
but
does
have
writable
attributes
.
``
'_'
``
will
be
an
attribute
of
the
proxy
and
not
an
attribute
of
the
referent
:
Its
representation
shows
the
values
of
its
attributes
.
..
doctest
::
However
,
when
using
a
proxy
for
a
namespace
object
,
an
attribute
beginning
with
``
'_'
``
will
be
an
attribute
of
the
proxy
and
not
an
attribute
of
the
referent
:
..
doctest
::
>>>
manager
=
multiprocessing
.
Manager
()
>>>
manager
=
multiprocessing
.
Manager
()
>>>
Global
=
manager
.
Namespace
()
>>>
Global
=
manager
.
Namespace
()
>>>
Global
.
x
=
10
>>>
Global
.
x
=
10
>>>
Global
.
y
=
'hello'
>>>
Global
.
y
=
'hello'
>>>
Global
.
_z
=
12.3
#
this
is
an
attribute
of
the
proxy
>>>
Global
.
_z
=
12.3
#
this
is
an
attribute
of
the
proxy
>>>
print
Global
>>>
print
Global
Namespace
(
x
=
10
,
y
=
'hello'
)
Namespace
(
x
=
10
,
y
=
'hello'
)
Customized
managers
Customized
managers
...
...
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