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

Skip to content

Commit 23b4f92

Browse files
committed
Merged revisions 84142 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k ........ r84142 | georg.brandl | 2010-08-17 17:07:14 +0200 (Di, 17 Aug 2010) | 1 line Consistency check for versionadded/changed directives. ........
1 parent 13f959b commit 23b4f92

18 files changed

Lines changed: 52 additions & 45 deletions

Doc/c-api/arg.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -320,13 +320,14 @@ Other objects
320320
the conversion has failed. When the conversion fails, the *converter* function
321321
should raise an exception and leave the content of *address* unmodified.
322322

323-
If the *converter* returns Py_CLEANUP_SUPPORTED, it may get called a second time
324-
if the argument parsing eventually fails, giving the converter a chance to release
325-
any memory that it had already allocated. In this second call, the *object* parameter
326-
will be NULL; *address* will have the same value as in the original call.
323+
If the *converter* returns ``Py_CLEANUP_SUPPORTED``, it may get called a
324+
second time if the argument parsing eventually fails, giving the converter a
325+
chance to release any memory that it had already allocated. In this second
326+
call, the *object* parameter will be NULL; *address* will have the same value
327+
as in the original call.
327328

328329
.. versionchanged:: 3.1
329-
Py_CLEANUP_SUPPORTED was added.
330+
``Py_CLEANUP_SUPPORTED`` was added.
330331

331332
``(items)`` (:class:`tuple`) [*matching-items*]
332333
The object must be a Python sequence whose length is the number of format units

Doc/c-api/long.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ All integers are implemented as "long" integer objects of arbitrary size.
165165
cannot be represented as a :ctype:`long long`, an
166166
:exc:`OverflowError` is raised and ``-1`` is returned.
167167

168+
168169
.. cfunction:: unsigned PY_LONG_LONG PyLong_AsUnsignedLongLong(PyObject *pylong)
169170

170171
.. index::
@@ -176,8 +177,8 @@ All integers are implemented as "long" integer objects of arbitrary size.
176177
returned.
177178

178179
.. versionchanged:: 3.1
179-
A negative *pylong* now raises :exc:`OverflowError`, not
180-
:exc:`TypeError`.
180+
A negative *pylong* now raises :exc:`OverflowError`, not :exc:`TypeError`.
181+
181182

182183
.. cfunction:: unsigned long PyLong_AsUnsignedLongMask(PyObject *io)
183184

Doc/c-api/unicode.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ used, passsing :func:`PyUnicode_FSConverter` as the conversion function:
369369

370370
.. versionadded:: 3.1
371371

372+
372373
.. cfunction:: PyObject* PyUnicode_DecodeFSDefaultAndSize(const char *s, Py_ssize_t size)
373374

374375
Decode a null-terminated string using :cdata:`Py_FileSystemDefaultEncoding`

Doc/distutils/sourcedist.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,6 @@ distribution::
206206
:option:`-o` is a shortcut for :option:`--manifest-only`.
207207

208208
.. versionchanged:: 3.1
209-
An existing generated :file:`MANIFEST` will be regenerated without
210-
:command:`sdist` comparing its modification time to the one of
211-
:file:`MANIFEST.in` or :file:`setup.py`.
209+
An existing generated :file:`MANIFEST` will be regenerated without
210+
:command:`sdist` comparing its modification time to the one of
211+
:file:`MANIFEST.in` or :file:`setup.py`.

Doc/library/collections.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ they add the ability to access fields by name instead of position index.
552552
lightweight and require no more memory than regular tuples.
553553

554554
.. versionchanged:: 3.1
555-
added support for *rename*.
555+
Added support for *rename*.
556556

557557
Example:
558558

@@ -843,7 +843,6 @@ attribute.
843843
class.
844844

845845

846-
847846
:class:`UserList` objects
848847
-------------------------
849848

Doc/library/dis.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ The :mod:`dis` module defines the following functions and constants:
3838

3939
.. function:: dis(x=None)
4040

41-
Disassemble the *x* object. *x* can denote either a module, a
42-
class, a method, a function, a code object, a string of source code or a
43-
byte sequence of raw bytecode. For a module, it disassembles all
44-
functions. For a class, it disassembles all methods. For a code object
45-
or sequence of raw bytecode, it prints one line per bytecode instruction.
46-
Strings are first compiled to code objects with the :func:`compile`
47-
built-in function before being disassembled. If no object is provided,
48-
this function disassembles the last traceback.
41+
Disassemble the *x* object. *x* can denote either a module, a class, a
42+
method, a function, a code object, a string of source code or a byte sequence
43+
of raw bytecode. For a module, it disassembles all functions. For a class,
44+
it disassembles all methods. For a code object or sequence of raw bytecode,
45+
it prints one line per bytecode instruction. Strings are first compiled to
46+
code objects with the :func:`compile` built-in function before being
47+
disassembled. If no object is provided, this function disassembles the last
48+
traceback.
4949

5050

5151
.. function:: distb(tb=None)

Doc/library/hashlib.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,9 @@ A hash object has the following methods:
105105
equivalent to ``m.update(a+b)``.
106106

107107
.. versionchanged:: 3.1
108-
109-
The Python GIL is released to allow other threads to run while
110-
hash updates on data larger than 2048 bytes is taking place when
111-
using hash algorithms supplied by OpenSSL.
108+
The Python GIL is released to allow other threads to run while hash
109+
updates on data larger than 2048 bytes is taking place when using hash
110+
algorithms supplied by OpenSSL.
112111

113112

114113
.. method:: hash.digest()

Doc/library/io.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ I/O Base Classes
299299
Return the new absolute position.
300300

301301
.. versionadded:: 3.1
302-
The ``SEEK_*`` constants
302+
The ``SEEK_*`` constants.
303303

304304
.. method:: seekable()
305305

Doc/library/itertools.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ loops that truncate the stream.
207207

208208
.. versionadded:: 3.1
209209

210+
210211
.. function:: compress(data, selectors)
211212

212213
Make an iterator that filters elements from *data* returning only those that
@@ -240,7 +241,7 @@ loops that truncate the stream.
240241
for i in count())``.
241242

242243
.. versionchanged:: 3.1
243-
added *step* argument and allowed non-integer arguments.
244+
Added *step* argument and allowed non-integer arguments.
244245

245246
.. function:: cycle(iterable)
246247

Doc/library/logging.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,7 @@ instantiated directly, but always through the module-level function
895895
:const:`NOTSET` is found, and that value is returned.
896896

897897

898+
898899
.. method:: Logger.debug(msg, *args, **kwargs)
899900

900901
Logs a message with level :const:`DEBUG` on this logger. The *msg* is the
@@ -2638,6 +2639,9 @@ methods of :class:`Logger`, i.e. :meth:`debug`, :meth:`info`, :meth:`warning`,
26382639
methods have the same signatures as their counterparts in :class:`Logger`, so
26392640
you can use the two types of instances interchangeably.
26402641

2642+
The :meth:`isEnabledFor` method was added to :class:`LoggerAdapter`. This
2643+
method delegates to the underlying logger.
2644+
26412645

26422646
Thread Safety
26432647
-------------

0 commit comments

Comments
 (0)