Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bcc484e

Browse files
committed
Merged revisions 74062 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k ................ r74062 | alexandre.vassalotti | 2009-07-17 13:43:26 +0200 (Fr, 17 Jul 2009) | 37 lines Merged revisions 73665,73693,73704-73705,73707,73712-73713,73824 via svnmerge from svn+ssh://[email protected]/python/trunk ........ r73665 | alexandre.vassalotti | 2009-06-28 21:01:51 -0400 (Sun, 28 Jun 2009) | 2 lines Update docstrings for sys.getdlopenflags() and sys.setdlopenflags(). ........ r73693 | jesse.noller | 2009-06-29 14:20:34 -0400 (Mon, 29 Jun 2009) | 1 line Bug 5906: add a documentation note for unix daemons vs. multiprocessing daemons ........ r73704 | georg.brandl | 2009-06-30 12:15:43 -0400 (Tue, 30 Jun 2009) | 1 line #6376: fix copy-n-paste oversight. ........ r73705 | georg.brandl | 2009-06-30 12:17:28 -0400 (Tue, 30 Jun 2009) | 1 line #6374: add a bit of explanation about shell=True on Windows. ........ r73707 | georg.brandl | 2009-06-30 12:35:11 -0400 (Tue, 30 Jun 2009) | 1 line #6371: fix link targets. ........ r73712 | ezio.melotti | 2009-06-30 18:51:06 -0400 (Tue, 30 Jun 2009) | 1 line Fixed defaultTestCase -> defaultTestResult ........ r73713 | ezio.melotti | 2009-06-30 18:56:16 -0400 (Tue, 30 Jun 2009) | 1 line Fixed a backslash that was not supposed to be there ........ r73824 | ezio.melotti | 2009-07-03 21:18:08 -0400 (Fri, 03 Jul 2009) | 1 line #6398 typo: versio. -> version. ........ ................
1 parent 243d02f commit bcc484e

6 files changed

Lines changed: 26 additions & 19 deletions

File tree

Doc/library/decimal.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -563,10 +563,9 @@ Decimal objects
563563
operands* (see :ref:`logical_operands_label`). The result is the
564564
digit-wise ``and`` of the two operands.
565565

566-
.. method:: logical_invert(other[, context])
566+
.. method:: logical_invert([context])
567567

568-
:meth:`logical_invert` is a logical operation. The argument must
569-
be a *logical operand* (see :ref:`logical_operands_label`). The
568+
:meth:`logical_invert` is a logical operation. The
570569
result is the digit-wise inversion of the operand.
571570

572571
.. method:: logical_or(other[, context])

Doc/library/multiprocessing.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,9 @@ The :mod:`multiprocessing` package mostly replicates the API of the
372372

373373
Note that a daemonic process is not allowed to create child processes.
374374
Otherwise a daemonic process would leave its children orphaned if it gets
375-
terminated when its parent process exits.
375+
terminated when its parent process exits. Additionally, these are **not**
376+
Unix daemons or services, they are normal processes that will be
377+
terminated (and not joined) if non-dameonic processes have exited.
376378

377379
In addition to the :class:`Threading.Thread` API, :class:`Process` objects
378380
also support the following attributes and methods:

Doc/library/optparse.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,8 +637,8 @@ option involved in the error; be sure to do the same when calling
637637
``parser.error()`` from your application code.
638638

639639
If :mod:`optparse`'s default error-handling behaviour does not suit your needs,
640-
you'll need to subclass OptionParser and override its :meth:`exit` and/or
641-
:meth:`error` methods.
640+
you'll need to subclass OptionParser and override its :meth:`~OptionParser.exit`
641+
and/or :meth:`~OptionParser.error` methods.
642642

643643

644644
.. _optparse-putting-it-all-together:

Doc/library/subprocess.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ This module defines one class called :class:`Popen`:
6868
needed: Usually, the program to execute is defined by the *args* argument. If
6969
``shell=True``, the *executable* argument specifies which shell to use. On Unix,
7070
the default shell is :file:`/bin/sh`. On Windows, the default shell is
71-
specified by the :envvar:`COMSPEC` environment variable.
71+
specified by the :envvar:`COMSPEC` environment variable. The only reason you
72+
would need to specify ``shell=True`` on Windows is where the command you
73+
wish to execute is actually built in to the shell, eg ``dir``, ``copy``.
74+
You don't need ``shell=True`` to run a batch file, nor to run a console-based
75+
executable.
7276

7377
*stdin*, *stdout* and *stderr* specify the executed programs' standard input,
7478
standard output and standard error file handles, respectively. Valid values

Doc/library/unittest.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,8 @@ Test cases
580580

581581
Run the test, collecting the result into the test result object passed as
582582
*result*. If *result* is omitted or :const:`None`, a temporary result
583-
object is created (by calling the :meth:`defaultTestCase` method) and
584-
used; this result object is not returned to :meth:`run`'s caller.
583+
object is created (by calling the :meth:`defaultTestResult` method) and
584+
used. The result object is not returned to :meth:`run`'s caller.
585585

586586
The same effect may be had by simply calling the :class:`TestCase`
587587
instance.

Python/sysmodule.c

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -586,12 +586,14 @@ sys_setdlopenflags(PyObject *self, PyObject *args)
586586
PyDoc_STRVAR(setdlopenflags_doc,
587587
"setdlopenflags(n) -> None\n\
588588
\n\
589-
Set the flags that will be used for dlopen() calls. Among other\n\
590-
things, this will enable a lazy resolving of symbols when importing\n\
591-
a module, if called as sys.setdlopenflags(0)\n\
592-
To share symbols across extension modules, call as\n\
593-
sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL)"
594-
);
589+
Set the flags used by the interpreter for dlopen calls, such as when the\n\
590+
interpreter loads extension modules. Among other things, this will enable\n\
591+
a lazy resolving of symbols when importing a module, if called as\n\
592+
sys.setdlopenflags(0). To share symbols across extension modules, call as\n\
593+
sys.setdlopenflags(ctypes.RTLD_GLOBAL). Symbolic names for the flag modules\n\
594+
can be either found in the ctypes module, or in the DLFCN module. If DLFCN\n\
595+
is not available, it can be generated from /usr/include/dlfcn.h using the\n\
596+
h2py script.");
595597

596598
static PyObject *
597599
sys_getdlopenflags(PyObject *self, PyObject *args)
@@ -605,10 +607,10 @@ sys_getdlopenflags(PyObject *self, PyObject *args)
605607
PyDoc_STRVAR(getdlopenflags_doc,
606608
"getdlopenflags() -> int\n\
607609
\n\
608-
Return the current value of the flags that are used for dlopen()\n\
609-
calls. The flag constants are defined in the dl module."
610-
);
611-
#endif
610+
Return the current value of the flags that are used for dlopen calls.\n\
611+
The flag constants are defined in the ctypes and DLFCN modules.");
612+
613+
#endif /* HAVE_DLOPEN */
612614

613615
#ifdef USE_MALLOPT
614616
/* Link with -lmalloc (or -lmpc) on an SGI */

0 commit comments

Comments
 (0)