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
9384a425
Commit
9384a425
authored
Aug 19, 2011
by
Éric Araujo
Browse files
Options
Browse Files
Download
Plain Diff
Merge 3.2
parents
3525c772
ee8ead2f
Changes
17
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
79 additions
and
70 deletions
+79
-70
Doc/distutils/install.rst
Doc/distutils/install.rst
+3
-3
Doc/distutils/introduction.rst
Doc/distutils/introduction.rst
+2
-2
Doc/glossary.rst
Doc/glossary.rst
+2
-2
Doc/install/install.rst
Doc/install/install.rst
+6
-9
Doc/library/argparse.rst
Doc/library/argparse.rst
+31
-31
Doc/library/atexit.rst
Doc/library/atexit.rst
+3
-0
Doc/library/cmd.rst
Doc/library/cmd.rst
+3
-0
Doc/library/collections.rst
Doc/library/collections.rst
+1
-2
Doc/library/concurrent.futures.rst
Doc/library/concurrent.futures.rst
+2
-2
Doc/library/functions.rst
Doc/library/functions.rst
+4
-2
Doc/library/logging.handlers.rst
Doc/library/logging.handlers.rst
+1
-1
Doc/library/optparse.rst
Doc/library/optparse.rst
+4
-4
Doc/library/string.rst
Doc/library/string.rst
+3
-4
Doc/library/sysconfig.rst
Doc/library/sysconfig.rst
+5
-4
Doc/library/urllib.parse.rst
Doc/library/urllib.parse.rst
+4
-0
Doc/library/zipfile.rst
Doc/library/zipfile.rst
+4
-3
Lib/shutil.py
Lib/shutil.py
+1
-1
No files found.
Doc/distutils/install.rst
View file @
9384a425
...
@@ -101,8 +101,8 @@ one command from a terminal::
...
@@ -101,8 +101,8 @@ one command from a terminal::
python setup.py install
python setup.py install
For Windows, this command should be run from a command prompt windows
("DOS
For Windows, this command should be run from a command prompt windows
box"
)::
(:menuselection:`Start --> Accessories`
)::
setup.py install
setup.py install
...
@@ -144,7 +144,7 @@ archive file to :file:`C:\\Temp`, then it would unpack into
...
@@ -144,7 +144,7 @@ archive file to :file:`C:\\Temp`, then it would unpack into
:file:`C:\\Temp\\foo-1.0`; you can use either a archive manipulator with a
:file:`C:\\Temp\\foo-1.0`; you can use either a archive manipulator with a
graphical user interface (such as WinZip) or a command-line tool (such as
graphical user interface (such as WinZip) or a command-line tool (such as
:program:`unzip` or :program:`pkunzip`) to unpack the archive. Then, open a
:program:`unzip` or :program:`pkunzip`) to unpack the archive. Then, open a
command prompt window
("DOS box"),
and run::
command prompt window and run::
cd c:\Temp\foo-1.0
cd c:\Temp\foo-1.0
python setup.py install
python setup.py install
...
...
Doc/distutils/introduction.rst
View file @
9384a425
...
@@ -84,8 +84,8 @@ terminal::
...
@@ -84,8 +84,8 @@ terminal::
python setup.py sdist
python setup.py sdist
For Windows, open a command prompt window
s ("DOS box") and change the command
For Windows, open a command prompt window
(:menuselection:`Start -->
to::
Accessories`) and change the command
to::
setup.py sdist
setup.py sdist
...
...
Doc/glossary.rst
View file @
9384a425
...
@@ -163,8 +163,8 @@ Glossary
...
@@ -163,8 +163,8 @@ Glossary
well-designed code improves its flexibility by allowing polymorphic
well-designed code improves its flexibility by allowing polymorphic
substitution. Duck-typing avoids tests using :func:`type` or
substitution. Duck-typing avoids tests using :func:`type` or
:func:`isinstance`. (Note, however, that duck-typing can be complemented
:func:`isinstance`. (Note, however, that duck-typing can be complemented
with :term:`abstract base class
`\ es.) Instead, it typically employs
with :term:`abstract base class
es <abstract base class>`.) Instead, it
:func:`hasattr` tests or :term:`EAFP` programming.
typically employs
:func:`hasattr` tests or :term:`EAFP` programming.
EAFP
EAFP
Easier to ask for forgiveness than permission. This common Python coding
Easier to ask for forgiveness than permission. This common Python coding
...
...
Doc/install/install.rst
View file @
9384a425
...
@@ -119,12 +119,9 @@ command::
...
@@ -119,12 +119,9 @@ command::
pysetup run install_dist
pysetup run install_dist
How you actually run this command depends on the platform and the command line
This is a command that should be run in a terminal. On Windows, it is called a
interface it provides:
command prompt and found in :menuselection:`Start --> Accessories`; Powershell
is a popular alternative.
* **Unix**: Use a shell prompt.
* **Windows**: Open a command prompt ("DOS console") or use :command:`Powershell`.
* **OS X**: Open a :command:`Terminal`.
.. _packaging-platform-variations:
.. _packaging-platform-variations:
...
@@ -147,8 +144,7 @@ archive file to :file:`C:\\Temp`, then it would unpack into
...
@@ -147,8 +144,7 @@ archive file to :file:`C:\\Temp`, then it would unpack into
:file:`C:\\Temp\\foo-1.0`. To actually unpack the archive, you can use either
:file:`C:\\Temp\\foo-1.0`. To actually unpack the archive, you can use either
an archive manipulator with a graphical user interface (such as WinZip or 7-Zip)
an archive manipulator with a graphical user interface (such as WinZip or 7-Zip)
or a command-line tool (such as :program:`unzip`, :program:`pkunzip` or, again,
or a command-line tool (such as :program:`unzip`, :program:`pkunzip` or, again,
:program:`7z`). Then, open a command prompt window ("DOS box" or
:program:`7z`). Then, open a command prompt window and run::
Powershell), and run::
cd c:\Temp\foo-1.0
cd c:\Temp\foo-1.0
pysetup run install_dist
pysetup run install_dist
...
@@ -279,7 +275,8 @@ different recipe for each platform. Under Unix, just type :command:`python` at
...
@@ -279,7 +275,8 @@ different recipe for each platform. Under Unix, just type :command:`python` at
the shell prompt. Under Windows (assuming the Python executable is on your
the shell prompt. Under Windows (assuming the Python executable is on your
:envvar:`PATH`, which is the usual case), you can choose :menuselection:`Start --> Run`,
:envvar:`PATH`, which is the usual case), you can choose :menuselection:`Start --> Run`,
type ``python`` and press ``enter``. Alternatively, you can simply execute
type ``python`` and press ``enter``. Alternatively, you can simply execute
:command:`python` at a command prompt ("DOS console" or Powershell).
:command:`python` at a command prompt (:menuselection:`Start --> Accessories`)
or in Powershell.
Once the interpreter is started, you type Python code at the prompt. For
Once the interpreter is started, you type Python code at the prompt. For
example, on my Linux system, I type the three Python statements shown below,
example, on my Linux system, I type the three Python statements shown below,
...
...
Doc/library/argparse.rst
View file @
9384a425
This diff is collapsed.
Click to expand it.
Doc/library/atexit.rst
View file @
9384a425
...
@@ -6,6 +6,9 @@
...
@@ -6,6 +6,9 @@
.. moduleauthor:: Skip Montanaro <skip@pobox.com>
.. moduleauthor:: Skip Montanaro <skip@pobox.com>
.. sectionauthor:: Skip Montanaro <skip@pobox.com>
.. sectionauthor:: Skip Montanaro <skip@pobox.com>
**Source code:** :source:`Lib/atexit.py`
--------------
The :mod:`atexit` module defines functions to register and unregister cleanup
The :mod:`atexit` module defines functions to register and unregister cleanup
functions. Functions thus registered are automatically executed upon normal
functions. Functions thus registered are automatically executed upon normal
...
...
Doc/library/cmd.rst
View file @
9384a425
...
@@ -205,6 +205,9 @@ Instances of :class:`Cmd` subclasses have some public instance variables:
...
@@ -205,6 +205,9 @@ Instances of :class:`Cmd` subclasses have some public instance variables:
:mod:`readline`, on systems that support it, the interpreter will automatically
:mod:`readline`, on systems that support it, the interpreter will automatically
support :program:`Emacs`\ -like line editing and command-history keystrokes.)
support :program:`Emacs`\ -like line editing and command-history keystrokes.)
.. _cmd-example:
Cmd Example
Cmd Example
-----------
-----------
...
...
Doc/library/collections.rst
View file @
9384a425
:mod:`collections` --- Container datatypes
:mod:`collections` --- Container datatypes
==========================================
==========================================
...
@@ -977,7 +976,7 @@ original insertion position is changed and moved to the end::
...
@@ -977,7 +976,7 @@ original insertion position is changed and moved to the end::
del self[key]
del self[key]
OrderedDict.__setitem__(self, key, value)
OrderedDict.__setitem__(self, key, value)
An ordered dictionary can combined with the :class:`Counter` class
An ordered dictionary can
be
combined with the :class:`Counter` class
so that the counter remembers the order elements are first encountered::
so that the counter remembers the order elements are first encountered::
class OrderedCounter(Counter, OrderedDict):
class OrderedCounter(Counter, OrderedDict):
...
...
Doc/library/concurrent.futures.rst
View file @
9384a425
...
@@ -4,11 +4,11 @@
...
@@ -4,11 +4,11 @@
.. module:: concurrent.futures
.. module:: concurrent.futures
:synopsis: Execute computations concurrently using threads or processes.
:synopsis: Execute computations concurrently using threads or processes.
.. versionadded:: 3.2
**Source code:** :source:`Lib/concurrent/futures/thread.py`
**Source code:** :source:`Lib/concurrent/futures/thread.py`
and :source:`Lib/concurrent/futures/process.py`
and :source:`Lib/concurrent/futures/process.py`
.. versionadded:: 3.2
--------------
--------------
The :mod:`concurrent.futures` module provides a high-level interface for
The :mod:`concurrent.futures` module provides a high-level interface for
...
...
Doc/library/functions.rst
View file @
9384a425
...
@@ -624,7 +624,8 @@ are always available. They are listed here in alphabetical order.
...
@@ -624,7 +624,8 @@ are always available. They are listed here in alphabetical order.
.. function:: isinstance(object, classinfo)
.. function:: isinstance(object, classinfo)
Return true if the *object* argument is an instance of the *classinfo*
Return true if the *object* argument is an instance of the *classinfo*
argument, or of a (direct or indirect) subclass thereof. If *object* is not
argument, or of a (direct, indirect or :term:`virtual <abstract base
class>`) subclass thereof. If *object* is not
an object of the given type, the function always returns false. If
an object of the given type, the function always returns false. If
*classinfo* is not a class (type object), it may be a tuple of type objects,
*classinfo* is not a class (type object), it may be a tuple of type objects,
or may recursively contain other such tuples (other sequence types are not
or may recursively contain other such tuples (other sequence types are not
...
@@ -634,7 +635,8 @@ are always available. They are listed here in alphabetical order.
...
@@ -634,7 +635,8 @@ are always available. They are listed here in alphabetical order.
.. function:: issubclass(class, classinfo)
.. function:: issubclass(class, classinfo)
Return true if *class* is a subclass (direct or indirect) of *classinfo*. A
Return true if *class* is a subclass (direct, indirect or :term:`virtual
<abstract base class>`) of *classinfo*. A
class is considered a subclass of itself. *classinfo* may be a tuple of class
class is considered a subclass of itself. *classinfo* may be a tuple of class
objects, in which case every entry in *classinfo* will be checked. In any other
objects, in which case every entry in *classinfo* will be checked. In any other
case, a :exc:`TypeError` exception is raised.
case, a :exc:`TypeError` exception is raised.
...
...
Doc/library/logging.handlers.rst
View file @
9384a425
...
@@ -799,7 +799,7 @@ possible, while any potentially slow operations (such as sending an email via
...
@@ -799,7 +799,7 @@ possible, while any potentially slow operations (such as sending an email via
.. queue-listener:
..
_
queue-listener:
QueueListener
QueueListener
^^^^^^^^^^^^^
^^^^^^^^^^^^^
...
...
Doc/library/optparse.rst
View file @
9384a425
...
@@ -7,14 +7,14 @@
...
@@ -7,14 +7,14 @@
..
moduleauthor:: Greg Ward <gward@python.net>
..
moduleauthor:: Greg Ward <gward@python.net>
..
sectionauthor:: Greg Ward <gward@python.net>
..
sectionauthor:: Greg Ward <gward@python.net>
.. deprecated:: 3.2
The :mod:`optparse` module is deprecated and will not be developed further;
development will continue with the :mod:`argparse` module.
**Source code:** :source:`Lib/optparse.py`
**Source code:** :source:`Lib/optparse.py`
--------------
--------------
.. deprecated:: 2.7
The :mod:`optparse` module is deprecated and will not be developed further;
development will continue with the :mod:`argparse` module.
:mod:`optparse` is a more convenient, flexible, and powerful library for parsing
:mod:`optparse` is a more convenient, flexible, and powerful library for parsing
command-line options than the old :mod:`getopt` module. :mod:`optparse` uses a
command-line options than the old :mod:`getopt` module. :mod:`optparse` uses a
more declarative style of command-line parsing: you create an instance of
more declarative style of command-line parsing: you create an instance of
...
...
Doc/library/string.rst
View file @
9384a425
...
@@ -4,6 +4,9 @@
...
@@ -4,6 +4,9 @@
.. module:: string
.. module:: string
:synopsis: Common string operations.
:synopsis: Common string operations.
**Source code:** :source:`Lib/string.py`
--------------
.. seealso::
.. seealso::
...
@@ -11,10 +14,6 @@
...
@@ -11,10 +14,6 @@
:ref:`string-methods`
:ref:`string-methods`
**Source code:** :source:`Lib/string.py`
--------------
String constants
String constants
----------------
----------------
...
...
Doc/library/sysconfig.rst
View file @
9384a425
...
@@ -3,15 +3,16 @@
...
@@ -3,15 +3,16 @@
.. module:: sysconfig
.. module:: sysconfig
:synopsis: Python's configuration information
:synopsis: Python's configuration information
.. moduleauthor:: Tarek Ziade <tarek@ziade.org>
.. moduleauthor:: Tarek Ziadé <tarek@ziade.org>
.. sectionauthor:: Tarek Ziade <tarek@ziade.org>
.. sectionauthor:: Tarek Ziadé <tarek@ziade.org>
.. index::
.. index::
single: configuration information
single: configuration information
**Source code:** :source:`Lib/sysconfig.py`
.. versionadded:: 3.2
.. versionadded:: 3.2
**Source code:** :source:`Lib/sysconfig.py`
--------------
--------------
The :mod:`sysconfig` module provides access to Python's configuration
The :mod:`sysconfig` module provides access to Python's configuration
...
...
Doc/library/urllib.parse.rst
View file @
9384a425
...
@@ -12,6 +12,10 @@
...
@@ -12,6 +12,10 @@
pair: URL; parsing
pair: URL; parsing
pair: relative; URL
pair: relative; URL
**Source code:** :source:`Lib/urllib/parse.py`
--------------
This module defines a standard interface to break Uniform Resource Locator (URL)
This module defines a standard interface to break Uniform Resource Locator (URL)
strings up in components (addressing scheme, network location, path etc.), to
strings up in components (addressing scheme, network location, path etc.), to
combine the components back into a URL string, and to convert a "relative URL"
combine the components back into a URL string, and to convert a "relative URL"
...
...
Doc/library/zipfile.rst
View file @
9384a425
...
@@ -30,15 +30,16 @@ The module defines the following items:
...
@@ -30,15 +30,16 @@ The module defines the following items:
..
exception
::
BadZipFile
..
exception
::
BadZipFile
The
error
raised
for
bad
ZIP
files
(
old
name
:
``
zipfile
.
error
``)
.
The
error
raised
for
bad
ZIP
files
.
..
versionadded
::
3.2
..
versionadded
::
3.2
..
exception
::
BadZipfile
..
exception
::
BadZipfile
This
is
an
alias
for
:
exc
:`
BadZipFile
`
that
exists
for
compatibility
with
Alias
of
:
exc
:`
BadZipFile
`,
for
compatibility
with
older
Python
versions
.
Python
versions
prior
to
3.2
.
Usage
is
deprecated
.
..
deprecated
::
3.2
..
exception
::
LargeZipFile
..
exception
::
LargeZipFile
...
...
Lib/shutil.py
View file @
9384a425
...
@@ -399,7 +399,7 @@ def _make_tarball(base_name, base_dir, compress="gzip", verbose=0, dry_run=0,
...
@@ -399,7 +399,7 @@ def _make_tarball(base_name, base_dir, compress="gzip", verbose=0, dry_run=0,
if
not
os
.
path
.
exists
(
archive_dir
):
if
not
os
.
path
.
exists
(
archive_dir
):
if
logger
is
not
None
:
if
logger
is
not
None
:
logger
.
info
(
"creating %s"
%
archive_dir
)
logger
.
info
(
"creating %s"
,
archive_dir
)
if
not
dry_run
:
if
not
dry_run
:
os
.
makedirs
(
archive_dir
)
os
.
makedirs
(
archive_dir
)
...
...
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