Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
6a0514ea
Commit
6a0514ea
authored
9 years ago
by
Senthil Kumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue25982 - Add a class definition for managers.Namespace in the multiprocessing docs.
parent
bfd316e7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
Doc/library/multiprocessing.rst
Doc/library/multiprocessing.rst
+17
-15
No files found.
Doc/library/multiprocessing.rst
View file @
6a0514ea
...
...
@@ -316,7 +316,7 @@ However, if you really do need to use some shared data then
proxies
.
A
manager
returned
by
:
func
:`
Manager
`
will
support
types
:
class
:`
list
`,
:
class
:`
dict
`,
:
class
:`
Namespace
`,
:
class
:`
Lock
`,
:
class
:`
list
`,
:
class
:`
dict
`,
:
class
:`
~
managers
.
Namespace
`,
:
class
:`
Lock
`,
:
class
:`
RLock
`,
:
class
:`
Semaphore
`,
:
class
:`
BoundedSemaphore
`,
:
class
:`
Condition
`,
:
class
:`
Event
`,
:
class
:`
Barrier
`,
:
class
:`
Queue
`,
:
class
:`
Value
`
and
:
class
:`
Array
`.
For
example
,
::
...
...
@@ -1747,16 +1747,18 @@ their parent process exits. The manager classes are defined in the
lproxy[0] = d
Namespace objects
>>>>>>>>>>>>>>>>>
.. class:: Namespace
A namespace object has no public methods, but does have writable attributes.
Its representation shows the values of its attributes.
A type that can register with :class:`SyncManager`.
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:
A namespace object has no public methods, but does have writable attributes.
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()
>>> Global = manager.Namespace()
...
...
This diff is collapsed.
Click to expand it.
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