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

Skip to content

Commit b186d00

Browse files
committed
Merged revisions 61431,61433-61436,61439,61444,61449-61450,61453,61458,61465,61468,61471-61474,61480,61483-61484,61488,61495-61496,61498,61503-61504,61507,61509-61510,61515-61518 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r61431 | vinay.sajip | 2008-03-16 22:35:58 +0100 (So, 16 Mär 2008) | 1 line Clarified documentation on use of shutdown(). ........ r61433 | mark.summerfield | 2008-03-17 09:28:15 +0100 (Mo, 17 Mär 2008) | 5 lines Added a footnote to each pointing out that for XML output if an encoding string is given it should conform to the appropriate XML standards---for example, "UTF-8" is okay, but "UTF8" is not. ........ r61434 | eric.smith | 2008-03-17 12:01:01 +0100 (Mo, 17 Mär 2008) | 7 lines Issue 2264: empty float presentation type needs to have at least one digit past the decimal point. Added "Z" format_char to PyOS_ascii_formatd to support empty float presentation type. Renamed buf_size in PyOS_ascii_formatd to more accurately reflect it's meaning. Modified format.__float__ to use the new "Z" format as the default. Added test cases. ........ r61435 | eric.smith | 2008-03-17 13:14:29 +0100 (Mo, 17 Mär 2008) | 2 lines Reformated lines > 79 chars. Deleted unused macro ISXDIGIT. ........ r61436 | jeffrey.yasskin | 2008-03-17 15:40:53 +0100 (Mo, 17 Mär 2008) | 13 lines Allow Gnu gcc's to build python on OSX by removing -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd from configure. * r22183 added -no-cpp-precomp, which http://gcc.gnu.org/ml/gcc/2005-12/msg00368.html claims hasn't been needed since gcc-3.1. * r25607 added -Wno-long-double to avoid a warning in Include/objimpl.h (issue 525481). The long double is still there, but OSX 10.4's gcc no longer warns about it. * r33666 fixed issue 775892 on OSX 10.3 by adding -mno-fused-madd, which changed the sign of some float 0s. Tim Peters said it wasn't a real issue anyway, and it no longer causes test failures. Fixes issue #1779871. ........ r61439 | martin.v.loewis | 2008-03-17 17:31:57 +0100 (Mo, 17 Mär 2008) | 2 lines Add Trent Nelson. ........ r61444 | travis.oliphant | 2008-03-17 18:36:12 +0100 (Mo, 17 Mär 2008) | 1 line Add necessary headers to back-port new buffer protocol to Python 2.6 ........ r61449 | gregory.p.smith | 2008-03-17 19:48:05 +0100 (Mo, 17 Mär 2008) | 8 lines Force zlib.crc32 and zlib.adler32 to return a signed integer on all platforms regardless of the native sizeof(long) used in the integer object. This somewhat odd behavior of returning a signed is maintained in 2.x for compatibility reasons of always returning an integer rather than a long object. Fixes Issue1202 for Python 2.6 ........ r61450 | neal.norwitz | 2008-03-17 20:02:45 +0100 (Mo, 17 Mär 2008) | 3 lines Use a buffer large enough to ensure we don't overrun, even if the value is outside the range we expect. ........ r61453 | steven.bethard | 2008-03-17 20:33:11 +0100 (Mo, 17 Mär 2008) | 1 line Document unicode.isnumeric() and unicode.isdecimal() (issue2326) ........ r61458 | neal.norwitz | 2008-03-17 21:22:43 +0100 (Mo, 17 Mär 2008) | 5 lines Issue 2321: reduce memory usage (increase the memory that is returned to the system) by using pymalloc for the data of unicode objects. Will backport. ........ r61465 | martin.v.loewis | 2008-03-17 22:55:30 +0100 (Mo, 17 Mär 2008) | 2 lines Add David Wolever. ........ r61468 | gregory.p.smith | 2008-03-18 01:20:01 +0100 (Di, 18 Mär 2008) | 3 lines Fix the IOError message text when opening a file with an invalid filename. Error reported by Ilan Schnell. ........ r61471 | brett.cannon | 2008-03-18 02:00:07 +0100 (Di, 18 Mär 2008) | 2 lines Convert test_strftime, test_getargs, and test_pep247 to use unittest. ........ r61472 | jeffrey.yasskin | 2008-03-18 02:09:59 +0100 (Di, 18 Mär 2008) | 2 lines Fix build on platforms that don't have intptr_t. Patch by Joseph Armbruster. ........ r61473 | brett.cannon | 2008-03-18 02:50:25 +0100 (Di, 18 Mär 2008) | 2 lines Convert test_dummy_threading and test_dbm to unittest. ........ r61474 | brett.cannon | 2008-03-18 02:58:56 +0100 (Di, 18 Mär 2008) | 2 lines Move test_extcall to doctest. ........ r61480 | brett.cannon | 2008-03-18 04:46:22 +0100 (Di, 18 Mär 2008) | 2 lines test_errno was a no-op test; now it actually tests things and uses unittest. ........ r61483 | brett.cannon | 2008-03-18 05:09:00 +0100 (Di, 18 Mär 2008) | 3 lines Remove our implementation of memmove() and strerror(); both are in the C89 standard library. ........ r61484 | brett.cannon | 2008-03-18 05:16:06 +0100 (Di, 18 Mär 2008) | 2 lines The output directory for tests that compare against stdout is now gone! ........ r61488 | jeffrey.yasskin | 2008-03-18 05:29:35 +0100 (Di, 18 Mär 2008) | 2 lines Block the "socket.ssl() is deprecated" warning from test_socket_ssl. ........ r61495 | jeffrey.yasskin | 2008-03-18 05:56:06 +0100 (Di, 18 Mär 2008) | 4 lines Speed test_thread up from 51.328s to 0.081s by reducing its sleep times. We still sleep at all to make it likely that all threads are active at the same time. ........ r61496 | jeffrey.yasskin | 2008-03-18 06:12:41 +0100 (Di, 18 Mär 2008) | 4 lines Speed up test_dict by about 10x by only checking selected dict literal sizes, instead of every integer from 0 to 400. Exhaustive testing wastes time without providing enough more assurance that the code is correct. ........ r61498 | neal.norwitz | 2008-03-18 06:20:29 +0100 (Di, 18 Mär 2008) | 1 line Try increasing the timeout to reduce the flakiness of this test. ........ r61503 | brett.cannon | 2008-03-18 06:43:04 +0100 (Di, 18 Mär 2008) | 2 lines Improve the error message for a test that failed on the S-390 Debian buildbot. ........ r61504 | jeffrey.yasskin | 2008-03-18 06:45:40 +0100 (Di, 18 Mär 2008) | 3 lines Add a -S/--slow flag to regrtest to have it print the 10 slowest tests with their times. ........ r61507 | neal.norwitz | 2008-03-18 07:03:46 +0100 (Di, 18 Mär 2008) | 1 line Add some info to the failure messages ........ r61509 | trent.nelson | 2008-03-18 08:02:12 +0100 (Di, 18 Mär 2008) | 1 line Issue 2286: bump up the stack size of the 64-bit debug python_d.exe to 2100000. The default value of 200000 causes a stack overflow at 1965 iterations of r_object() in marshal.c, 35 iterations before the 2000 limit enforced by MAX_MARSHAL_STACK_DEPTH. ........ r61510 | trent.nelson | 2008-03-18 08:32:47 +0100 (Di, 18 Mär 2008) | 5 lines The behaviour of winsound.Beep() seems to differ between different versions of Windows when there's either: a) no sound card entirely b) legacy beep driver has been disabled c) the legacy beep driver has been uninstalled Sometimes RuntimeErrors are raised, sometimes they're not. If _have_soundcard() returns False, don't expect winsound.Beep() to raise a RuntimeError, as this clearly isn't the case, as demonstrated by the various Win32 XP buildbots. ........ r61515 | martin.v.loewis | 2008-03-18 13:20:15 +0100 (Di, 18 Mär 2008) | 2 lines norwitz-amd64 (gentoo) has EREMOTEIO. ........ r61516 | martin.v.loewis | 2008-03-18 13:45:37 +0100 (Di, 18 Mär 2008) | 2 lines Add more Linux error codes. ........ r61517 | martin.v.loewis | 2008-03-18 14:05:03 +0100 (Di, 18 Mär 2008) | 2 lines Add WSA errors. ........ r61518 | martin.v.loewis | 2008-03-18 14:16:05 +0100 (Di, 18 Mär 2008) | 2 lines Note that the stderr output of the test is intentional. ........
1 parent d1bb60e commit b186d00

33 files changed

Lines changed: 980 additions & 962 deletions

Doc/library/logging.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,8 @@ functions.
724724
.. function:: shutdown()
725725

726726
Informs the logging system to perform an orderly shutdown by flushing and
727-
closing all handlers.
727+
closing all handlers. This should be called at application exit and no
728+
further use of the logging system should be made after this call.
728729

729730

730731
.. function:: setLoggerClass(klass)

Doc/library/pyexpat.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ The :mod:`xml.parsers.expat` module contains two functions:
6262
must be a string naming the encoding used by the XML data. Expat doesn't
6363
support as many encodings as Python does, and its repertoire of encodings can't
6464
be extended; it supports UTF-8, UTF-16, ISO-8859-1 (Latin1), and ASCII. If
65-
*encoding* is given it will override the implicit or explicit encoding of the
65+
*encoding* [1]_ is given it will override the implicit or explicit encoding of the
6666
document.
6767

6868
Expat can optionally do XML namespace processing for you, enabled by providing a
@@ -848,3 +848,11 @@ The ``errors`` object has the following attributes:
848848
.. data:: XML_ERROR_SUSPEND_PE
849849
:noindex:
850850

851+
852+
.. rubric:: Footnotes
853+
854+
.. [#] The encoding string included in XML output should conform to the
855+
appropriate standards. For example, "UTF-8" is valid, but "UTF8" is
856+
not. See http://www.w3.org/TR/2006/REC-xml11-20060816/#NT-EncodingDecl
857+
and http://www.iana.org/assignments/character-sets .
858+

Doc/library/stdtypes.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,22 @@ functions based on regular expressions.
10001000
Return the numeric string left filled with zeros in a string of length
10011001
*width*. A sign prefix is handled correctly. The original string is
10021002
returned if *width* is less than ``len(s)``.
1003+
1004+
1005+
.. method:: str.isnumeric()
1006+
1007+
Return ``True`` if there are only numeric characters in S, ``False``
1008+
otherwise. Numeric characters include digit characters, and all characters
1009+
that have the Unicode numeric value property, e.g. U+2155,
1010+
VULGAR FRACTION ONE FIFTH.
1011+
1012+
1013+
.. method:: str.isdecimal()
1014+
1015+
Return ``True`` if there are only decimal characters in S, ``False``
1016+
otherwise. Decimal characters include digit characters, and all characters
1017+
that that can be used to form decimal-radix numbers, e.g. U+0660,
1018+
ARABIC-INDIC DIGIT ZERO.
10031019

10041020

10051021

Doc/library/xml.dom.minidom.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ module documentation. This section lists the differences between the API and
147147
document. Encoding this string in an encoding other than UTF-8 is likely
148148
incorrect, since UTF-8 is the default encoding of XML.
149149

150-
With an explicit *encoding* argument, the result is a :class:`bytes` object
151-
in the specified encoding. It is recommended that this argument is always
152-
specified. To avoid :exc:`UnicodeError` exceptions in case of unrepresentable
153-
text data, the encoding argument should be specified as "utf-8".
150+
With an explicit *encoding* [1]_ argument, the result is a byte string in the
151+
specified encoding. It is recommended that this argument is always specified. To
152+
avoid :exc:`UnicodeError` exceptions in case of unrepresentable text data, the
153+
encoding argument should be specified as "utf-8".
154154

155155

156156
.. method:: Node.toprettyxml([indent[, newl[, encoding]]])
@@ -252,3 +252,9 @@ The following interfaces have no implementation in :mod:`xml.dom.minidom`:
252252
Most of these reflect information in the XML document that is not of general
253253
utility to most DOM users.
254254

255+
.. rubric:: Footnotes
256+
257+
.. [#] The encoding string included in XML output should conform to the
258+
appropriate standards. For example, "UTF-8" is valid, but "UTF8" is
259+
not. See http://www.w3.org/TR/2006/REC-xml11-20060816/#NT-EncodingDecl
260+
and http://www.iana.org/assignments/character-sets .

Doc/library/xml.etree.elementtree.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ ElementTree Objects
357357
.. method:: ElementTree.write(file[, encoding])
358358

359359
Writes the element tree to a file, as XML. *file* is a file name, or a file
360-
object opened for writing. *encoding* is the output encoding (default is
360+
object opened for writing. *encoding* [1]_ is the output encoding (default is
361361
US-ASCII).
362362

363363
This is the XML file that is going to be manipulated::
@@ -510,3 +510,12 @@ This is an example of counting the maximum depth of an XML file::
510510
>>> parser.feed(exampleXml)
511511
>>> parser.close()
512512
4
513+
514+
515+
.. rubric:: Footnotes
516+
517+
.. [#] The encoding string included in XML output should conform to the
518+
appropriate standards. For example, "UTF-8" is valid, but "UTF8" is
519+
not. See http://www.w3.org/TR/2006/REC-xml11-20060816/#NT-EncodingDecl
520+
and http://www.iana.org/assignments/character-sets .
521+

Include/pyerrors.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ PyAPI_DATA(PyObject *) PyExc_WindowsError;
152152
PyAPI_DATA(PyObject *) PyExc_VMSError;
153153
#endif
154154

155+
PyAPI_DATA(PyObject *) PyExc_BufferError;
156+
155157
PyAPI_DATA(PyObject *) PyExc_MemoryErrorInst;
156158
PyAPI_DATA(PyObject *) PyExc_RecursionErrorInst;
157159

Lib/test/output/test_cProfile

Lines changed: 0 additions & 92 deletions
This file was deleted.

Lib/test/output/test_extcall

Lines changed: 0 additions & 117 deletions
This file was deleted.

0 commit comments

Comments
 (0)