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

Skip to content

Commit 6d3dfc3

Browse files
committed
Merged revisions 74074,74077,74111,74188,74192-74193,74200,74252-74253,74258-74261 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r74074 | georg.brandl | 2009-07-18 05:03:10 -0400 (Sat, 18 Jul 2009) | 1 line #6513: fix example code: warning categories are classes, not instances. ........ r74077 | georg.brandl | 2009-07-18 05:43:40 -0400 (Sat, 18 Jul 2009) | 1 line #6489: fix an ambiguity in getiterator() documentation. ........ r74111 | benjamin.peterson | 2009-07-20 09:30:10 -0400 (Mon, 20 Jul 2009) | 1 line remove docs for deprecated -p option ........ r74188 | benjamin.peterson | 2009-07-23 10:25:31 -0400 (Thu, 23 Jul 2009) | 1 line use bools ........ r74192 | georg.brandl | 2009-07-24 12:28:38 -0400 (Fri, 24 Jul 2009) | 1 line Fix arg types of et#. ........ r74193 | georg.brandl | 2009-07-24 12:46:38 -0400 (Fri, 24 Jul 2009) | 1 line Dont put "void" in signature for nullary functions. ........ r74200 | georg.brandl | 2009-07-25 09:02:15 -0400 (Sat, 25 Jul 2009) | 1 line #6571: add index entries for more operators. ........ r74252 | georg.brandl | 2009-07-29 12:06:31 -0400 (Wed, 29 Jul 2009) | 1 line #6593: fix link targets. ........ r74253 | georg.brandl | 2009-07-29 12:09:17 -0400 (Wed, 29 Jul 2009) | 1 line #6591: add reference to ioctl in fcntl module for platforms other than Windows. ........ r74258 | georg.brandl | 2009-07-29 12:57:05 -0400 (Wed, 29 Jul 2009) | 1 line Add a link to readline, and mention IPython and bpython. ........ r74259 | georg.brandl | 2009-07-29 13:07:21 -0400 (Wed, 29 Jul 2009) | 1 line Fix some markup and small factual glitches found by M. Markert. ........ r74260 | georg.brandl | 2009-07-29 13:15:20 -0400 (Wed, 29 Jul 2009) | 1 line Fix a few markup glitches. ........ r74261 | georg.brandl | 2009-07-29 13:50:25 -0400 (Wed, 29 Jul 2009) | 1 line Rewrite the section about classes a bit; mostly tidbits, and a larger update to the section about "private" variables to reflect the Pythonic consensus better. ........
1 parent fc230e8 commit 6d3dfc3

19 files changed

Lines changed: 165 additions & 147 deletions

Doc/c-api/arg.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ variable(s) whose address should be passed.
160160
In both cases, *\*buffer_length* is set to the length of the encoded data
161161
without the trailing NUL byte.
162162

163-
``et#`` (string, Unicode object or character buffer compatible object) [const char \*encoding, char \*\*buffer]
163+
``et#`` (string, Unicode object or character buffer compatible object) [const char \*encoding, char \*\*buffer, int \*buffer_length]
164164
Same as ``es#`` except that string objects are passed through without recoding
165165
them. Instead, the implementation assumes that the string object uses the
166166
encoding passed in as parameter.

Doc/c-api/float.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,16 @@ Floating Point Objects
6464
around the header file :file:`float.h`.
6565

6666

67-
.. cfunction:: double PyFloat_GetMax(void)
67+
.. cfunction:: double PyFloat_GetMax()
6868

6969
Return the maximum representable finite float *DBL_MAX* as C :ctype:`double`.
7070

7171

72-
.. cfunction:: double PyFloat_GetMin(void)
72+
.. cfunction:: double PyFloat_GetMin()
7373

7474
Return the minimum normalized positive float *DBL_MIN* as C :ctype:`double`.
7575

76-
.. cfunction:: int PyFloat_ClearFreeList(void)
76+
.. cfunction:: int PyFloat_ClearFreeList()
7777

7878
Clear the float free list. Return the number of items that could not
7979
be freed.

Doc/c-api/method.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ no longer available.
9494
Macro version of :cfunc:`PyMethod_Self` which avoids error checking.
9595

9696

97-
.. cfunction:: int PyMethod_ClearFreeList(void)
97+
.. cfunction:: int PyMethod_ClearFreeList()
9898

9999
Clear the free list. Return the total number of freed items.
100100

Doc/c-api/sys.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ accessible to C code. They all work with the current interpreter thread's
7373
case *name* is deleted from the sys module. Returns ``0`` on success, ``-1``
7474
on error.
7575

76-
.. cfunction:: void PySys_ResetWarnOptions(void)
76+
.. cfunction:: void PySys_ResetWarnOptions()
7777

7878
Reset :data:`sys.warnoptions` to an empty list.
7979

Doc/c-api/tuple.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,6 @@ Tuple Objects
107107
raises :exc:`MemoryError` or :exc:`SystemError`.
108108

109109

110-
.. cfunction:: int PyTuple_ClearFreeList(void)
110+
.. cfunction:: int PyTuple_ClearFreeList()
111111

112112
Clear the free list. Return the total number of freed items.

Doc/c-api/type.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Type Objects
3333
standard type object. Return false in all other cases.
3434

3535

36-
.. cfunction:: unsigned int PyType_ClearCache(void)
36+
.. cfunction:: unsigned int PyType_ClearCache()
3737

3838
Clear the internal lookup cache. Return the current version tag.
3939

Doc/c-api/unicode.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,11 @@ access internal read-only data of Unicode objects:
8484
:ctype:`PyUnicodeObject` (not checked).
8585

8686

87-
.. cfunction:: int PyUnicode_ClearFreeList(void)
87+
.. cfunction:: int PyUnicode_ClearFreeList()
8888

8989
Clear the free list. Return the total number of freed items.
9090

91+
9192
Unicode provides many different character properties. The most often needed ones
9293
are available through these macros which are mapped to C functions depending on
9394
the Python configuration.

Doc/library/2to3.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,6 @@ document could also be refactored with this option.
8686
The :option:`-v` option enables output of more information on the translation
8787
process.
8888

89-
When the :option:`-p` is passed, the :2to3fixer:`print` fixer ``print`` as a
90-
function instead of a statement. This is useful when ``from __future__ import
91-
print_function`` is being used. If this option is not given, the print fixer
92-
will surround print calls in an extra set of parentheses because it cannot
93-
differentiate between the print statement with parentheses (such as ``print
94-
("a" + "b" + "c")``) and a true function call.
95-
9689

9790
.. _2to3-fixers:
9891

Doc/library/gettext.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class can also install themselves in the built-in namespace as the function
194194
:func:`translation`.
195195

196196
For the *names* parameter, please see the description of the translation
197-
object's :meth:`install` method.
197+
object's :meth:`~NullTranslations.install` method.
198198

199199
As seen below, you usually mark the strings in your application that are
200200
candidates for translation, by wrapping them in a call to the :func:`_`

Doc/library/socket.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,8 @@ correspond to Unix system calls applicable to sockets.
555555
The :meth:`ioctl` method is a limited interface to the WSAIoctl system
556556
interface. Please refer to the MSDN documentation for more information.
557557

558+
On other platforms, the generic :func:`fcntl.fcntl` and :func:`fcntl.ioctl`
559+
functions may be used; they accept a socket object as their first argument.
558560

559561
.. method:: socket.listen(backlog)
560562

0 commit comments

Comments
 (0)