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

Skip to content

Commit da10d3b

Browse files
committed
Merged revisions 67952,67957-67958,67960-67961,67963,67973,67978,67995,68030,68057,68061 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r67952 | georg.brandl | 2008-12-27 11:42:40 -0600 (Sat, 27 Dec 2008) | 2 lines #4752: actually use custom handler in example. ........ r67957 | georg.brandl | 2008-12-27 12:49:19 -0600 (Sat, 27 Dec 2008) | 2 lines #4754: improve winsound documentation. ........ r67958 | georg.brandl | 2008-12-27 13:02:59 -0600 (Sat, 27 Dec 2008) | 2 lines #4682: 'b' is actually unsigned char. ........ r67960 | georg.brandl | 2008-12-27 13:04:44 -0600 (Sat, 27 Dec 2008) | 2 lines #4695: fix backslashery. ........ r67961 | georg.brandl | 2008-12-27 13:06:04 -0600 (Sat, 27 Dec 2008) | 2 lines Use :samp: role. ........ r67963 | georg.brandl | 2008-12-27 13:11:15 -0600 (Sat, 27 Dec 2008) | 2 lines #4671: document that pydoc imports modules. ........ r67973 | alexandre.vassalotti | 2008-12-27 20:58:22 -0600 (Sat, 27 Dec 2008) | 2 lines Document Py_VaBuildValue. ........ r67978 | georg.brandl | 2008-12-28 05:58:49 -0600 (Sun, 28 Dec 2008) | 2 lines #4731: clarify message about missing module prerequisites. ........ r67995 | benjamin.peterson | 2008-12-28 15:16:07 -0600 (Sun, 28 Dec 2008) | 1 line #4763 PyErr_ExceptionMatches won't blow up with NULL arguments ........ r68030 | benjamin.peterson | 2008-12-29 15:38:14 -0600 (Mon, 29 Dec 2008) | 1 line fix French ........ r68057 | vinay.sajip | 2008-12-30 01:01:25 -0600 (Tue, 30 Dec 2008) | 1 line Minor documentation change relating to NullHandler. ........ r68061 | georg.brandl | 2008-12-30 04:15:49 -0600 (Tue, 30 Dec 2008) | 2 lines #4778: attributes can't be called. ........
1 parent de342c4 commit da10d3b

7 files changed

Lines changed: 32 additions & 14 deletions

File tree

Doc/c-api/arg.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,9 @@ variable(s) whose address should be passed.
164164
them. Instead, the implementation assumes that the string object uses the
165165
encoding passed in as parameter.
166166

167-
``b`` (integer) [char]
168-
Convert a Python integer to a tiny int, stored in a C :ctype:`char`.
167+
``b`` (integer) [unsigned char]
168+
Convert a nonnegative Python integer to an unsigned tiny int, stored in a C
169+
:ctype:`unsigned char`.
169170

170171
``B`` (integer) [unsigned char]
171172
Convert a Python integer to a tiny int without overflow checking, stored in a C
@@ -552,3 +553,8 @@ and the following format units are left untouched.
552553

553554
If there is an error in the format string, the :exc:`SystemError` exception is
554555
set and *NULL* returned.
556+
557+
.. cfunction:: PyObject* Py_VaBuildValue(const char *format, va_list vargs)
558+
559+
Identical to :cfunc:`Py_BuildValue`, except that it accepts a va_list
560+
rather than a variable number of arguments.

Doc/c-api/exceptions.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,10 @@ in various ways. There is a separate error indicator for each thread.
6767

6868
.. cfunction:: int PyErr_GivenExceptionMatches(PyObject *given, PyObject *exc)
6969

70-
Return true if the *given* exception matches the exception in *exc*. If *exc*
71-
is a class object, this also returns true when *given* is an instance of a
72-
subclass. If *exc* is a tuple, all exceptions in the tuple (and recursively in
73-
subtuples) are searched for a match. If *given* is *NULL*, a memory access
74-
violation will occur.
70+
Return true if the *given* exception matches the exception in *exc*. If
71+
*exc* is a class object, this also returns true when *given* is an instance
72+
of a subclass. If *exc* is a tuple, all exceptions in the tuple (and
73+
recursively in subtuples) are searched for a match.
7574

7675

7776
.. cfunction:: void PyErr_NormalizeException(PyObject**exc, PyObject**val, PyObject**tb)

Doc/howto/unicode.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ For a while people just wrote programs that didn't display accents. I remember
3232
looking at Apple ][ BASIC programs, published in French-language publications in
3333
the mid-1980s, that had lines like these::
3434

35-
PRINT "FICHER EST COMPLETE."
35+
PRINT "FICHIER EST COMPLETE."
3636
PRINT "CARACTERE NON ACCEPTE."
3737

3838
Those messages should contain accents, and they just look wrong to someone who

Doc/library/multiprocessing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ The :mod:`multiprocessing` package mostly replicates the API of the
356356

357357
.. attribute:: daemon
358358

359-
The process's daemon flag, a Boolean value. This must be called before
359+
The process's daemon flag, a Boolean value. This must be set before
360360
:meth:`start` is called.
361361

362362
The initial value is inherited from the creating process.
@@ -1808,9 +1808,9 @@ Address Formats
18081808
filesystem.
18091809

18101810
* An ``'AF_PIPE'`` address is a string of the form
1811-
``r'\\\\.\\pipe\\PipeName'``. To use :func:`Client` to connect to a named
1811+
:samp:`r'\\\\.\\pipe\\{PipeName}'`. To use :func:`Client` to connect to a named
18121812
pipe on a remote computer called ServerName* one should use an address of the
1813-
form ``r'\\\\ServerName\\pipe\\PipeName'`` instead.
1813+
form :samp:`r'\\\\{ServerName}\\pipe\\{PipeName}'`` instead.
18141814

18151815
Note that any string beginning with two backslashes is assumed by default to be
18161816
an ``'AF_PIPE'`` address rather than an ``'AF_UNIX'`` address.

Doc/library/pydoc.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ it contains the path separator for your operating system, such as a slash in
3434
Unix), and refers to an existing Python source file, then documentation is
3535
produced for that file.
3636

37+
.. note::
38+
39+
In order to find objects and their documentation, :mod:`pydoc` imports the
40+
module(s) to be documented. Therefore, any code on module level will be
41+
executed on that occasion. Use an ``if __name__ == '__main__':`` guard to
42+
only execute code when a file is invoked as a script and not just imported.
43+
3744
Specifying a :option:`-w` flag before the argument will cause HTML documentation
3845
to be written out to a file in the current directory, instead of displaying text
3946
on the console.

Doc/library/winsound.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ provided by Windows platforms. It includes functions and several constants.
2626
Call the underlying :cfunc:`PlaySound` function from the Platform API. The
2727
*sound* parameter may be a filename, audio data as a string, or ``None``. Its
2828
interpretation depends on the value of *flags*, which can be a bitwise ORed
29-
combination of the constants described below. If the system indicates an error,
30-
:exc:`RuntimeError` is raised.
29+
combination of the constants described below. If the *sound* parameter is
30+
``None``, any currently playing waveform sound is stopped. If the system
31+
indicates an error, :exc:`RuntimeError` is raised.
3132

3233

3334
.. function:: MessageBeep([type=MB_OK])
@@ -102,6 +103,10 @@ provided by Windows platforms. It includes functions and several constants.
102103

103104
Stop playing all instances of the specified sound.
104105

106+
.. note::
107+
108+
This flag is not supported on modern Windows platforms.
109+
105110

106111
.. data:: SND_ASYNC
107112

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ def print_three_column(lst):
208208

209209
if missing:
210210
print()
211-
print("Failed to find the necessary bits to build these modules:")
211+
print("Python build finished, but the necessary bits to build "
212+
"these modules were not found:")
212213
print_three_column(missing)
213214
print("To find the necessary bits, look in setup.py in"
214215
" detect_modules() for the module's name.")

0 commit comments

Comments
 (0)