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
fcb444a8
Commit
fcb444a8
authored
Sep 04, 2007
by
Mark Summerfield
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added cross-references plus a note about dict & list shallow copying.
parent
691632f1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
6 deletions
+15
-6
Doc/library/copy.rst
Doc/library/copy.rst
+4
-0
Doc/library/mutex.rst
Doc/library/mutex.rst
+3
-2
Doc/library/queue.rst
Doc/library/queue.rst
+3
-2
Doc/library/thread.rst
Doc/library/thread.rst
+4
-2
Doc/library/threading.rst
Doc/library/threading.rst
+1
-0
No files found.
Doc/library/copy.rst
View file @
fcb444a8
...
...
@@ -54,6 +54,10 @@ file, socket, window, array, or any similar types. It does "copy" functions and
classes (shallow and deeply), by returning the original object unchanged; this
is compatible with the way these are treated by the :mod:`pickle` module.
Shallow copies of dictionaries can be made using :meth:`dict.copy`, and
of lists by assigning a slice of the entire list, for example,
``copied_list = original_list[:]``.
.. versionchanged:: 2.5
Added copying functions.
...
...
Doc/library/mutex.rst
View file @
fcb444a8
...
...
@@ -8,8 +8,9 @@
The :mod:`mutex` module defines a class that allows mutual-exclusion via
acquiring and releasing locks. It does not require (or imply) threading or
multi-tasking, though it could be useful for those purposes.
acquiring and releasing locks. It does not require (or imply)
:mod:`threading` or multi-tasking, though it could be useful for those
purposes.
The :mod:`mutex` module defines the following class:
...
...
Doc/library/queue.rst
View file @
fcb444a8
...
...
@@ -7,10 +7,11 @@
The :mod:`Queue` module implements a multi-producer, multi-consumer FIFO queue.
It is especially useful in thread
s
programming when information must be
It is especially useful in thread
ed
programming when information must be
exchanged safely between multiple threads. The :class:`Queue` class in this
module implements all the required locking semantics. It depends on the
availability of thread support in Python.
availability of thread support in Python; see the :mod:`threading`
module.
The :mod:`Queue` module defines the following class and exception:
...
...
Doc/library/thread.rst
View file @
fcb444a8
...
...
@@ -13,9 +13,11 @@
single: semaphores, binary
This module provides low-level primitives for working with multiple threads
(a
.k.a.
:dfn:`light-weight processes` or :dfn:`tasks`) --- multiple threads of
(a
lso called
:dfn:`light-weight processes` or :dfn:`tasks`) --- multiple threads of
control sharing their global data space. For synchronization, simple locks
(a.k.a. :dfn:`mutexes` or :dfn:`binary semaphores`) are provided.
(also called :dfn:`mutexes` or :dfn:`binary semaphores`) are provided.
The :mod:`threading` module provides an easier to use and higher-level
threading API built on top of this module.
.. index::
single: pthreads
...
...
Doc/library/threading.rst
View file @
fcb444a8
...
...
@@ -8,6 +8,7 @@
This module constructs higher-level threading interfaces on top of the lower
level :mod:`thread` module.
See also the :mod:`mutex` and :mod:`Queue` modules.
The :mod:`dummy_threading` module is provided for situations where
:mod:`threading` cannot be used because :mod:`thread` is missing.
...
...
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