Commit Graph

49615 Commits

Author SHA1 Message Date
Antoine Pitrou ee46a7bf9c Issue #12062: In the `io` module, fix a flushing bug when doing a certain
type of I/O sequence on a file opened in read+write mode (namely: reading,
seeking a bit forward, writing, then seeking before the previous write but
still within buffered data, and writing again).
2011-05-13 00:31:52 +02:00
Georg Brandl 073070629b #12061: remove duplicate glossary entry. 2011-05-12 07:47:06 +02:00
Ezio Melotti c1ec7b5d44 #12051: Fix segfault in json.dumps() while encoding highly-nested objects using the C accelerations. 2011-05-11 00:55:35 +03:00
Antoine Pitrou 47d1d0dc30 Issue #8498: In socket.accept(), allow to specify 0 as a backlog value in
order to accept exactly one connection.  Patch by Daniel Evers.
2011-05-10 19:16:03 +02:00
Raymond Hettinger 351761236a Issue 12047: Expand the style guide. 2011-05-10 00:39:02 -07:00
Victor Stinner b1241f9619 (Merge 3.1) Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional
OpenSSL is now compiled with OPENSSL_NO_SSL2 defined (without the SSLv2
protocol) on Debian: fix the ssl module on Debian Testing and Debian Sid.

Optimize also ssl.get_protocol_name(): speed does matter!
2011-05-10 01:52:03 +02:00
Victor Stinner 2c585f607e (Merge 3.1) Issue #1195: Fix input() if it is interrupted by CTRL+d and then
CTRL+c, clear the end-of-file indicator after CTRL+d.
2011-05-10 00:22:59 +02:00
Ezio Melotti b47553a19b Some more tests were incorrectly marked as C specific. 2011-05-09 18:32:18 +03:00
Martin v. Löwis 591c2dfa42 Issue 11164: Remove obsolete allnodes test from minidom test.
Patch by Arfrever Frehtes Taifersar Arahesis.
2011-05-09 08:19:13 +02:00
Ezio Melotti 5c5d7e2511 #11910: Fix test_heapq to skip the C tests when _heapq is missing. 2011-05-09 06:54:53 +03:00
Ezio Melotti 193c34ba86 #11910: change import_fresh_module to return None when one of the "fresh" modules can not be imported. 2011-05-09 06:28:42 +03:00
Ezio Melotti 7055064bbb Fix deprecation warnings in test_unittest. 2011-05-09 05:58:17 +03:00
Ezio Melotti 87b86c84ef Add a note to the str.find doc to suggest the use of the "in" operator. 2011-05-09 03:54:30 +03:00
Benjamin Peterson 01c9a16031 import_fresh_module ought to be in __all__ 2011-05-08 15:32:04 -05:00
Raymond Hettinger 1bd816e58e Fix cut and paste error. 2011-05-07 15:19:34 -07:00
Raymond Hettinger 8dd0624660 Some tests were incorrectly marked as C specific. 2011-05-07 14:16:42 -07:00
Antoine Pitrou 21ce8f0d66 Issue #11927: SMTP_SSL now uses port 465 by default as documented. Patch by Kasun Herath. 2011-05-07 19:59:33 +02:00
Ezio Melotti 0639be6505 #10169: Fix argument parsing in socket.sendto() to avoid error masking. 2011-05-07 19:21:22 +03:00
Ezio Melotti cec464951e #12017: Fix segfault in json.loads() while decoding highly-nested objects using the C accelerations. 2011-05-07 17:40:23 +03:00
Nadeem Vawda 5ae6c42f52 Fix potential resource leak in test_mmap. 2011-05-07 14:34:22 +02:00
Nadeem Vawda d0a8f16031 Issue #11277: Fix tests - crash will not trigger if the file is closed and reopened. 2011-05-07 14:12:12 +02:00
Nadeem Vawda 0d837ef2a5 Issue #11277: Add tests for mmap crash when using large sparse files on OS X.
Also, reduce code duplication in LargeMmapTests.

Original patch by Steffen Daode Nurpmeso.
2011-05-07 13:17:16 +02:00
Nadeem Vawda 3b066a7e82 Issue #11277: Remove useless test from test_zlib. 2011-05-07 11:28:03 +02:00
R David Murray 8b26c4b8ea #11999: sync based on comparing mtimes, not mtime to system clock 2011-05-06 21:56:22 -04:00
Ronald Oussoren 58d6b1b7a4 Backport fix for issue #10684 from 3.x 2011-05-06 11:31:33 +02:00
Ezio Melotti fe12aa67fc #11997: fix typo in init.rst. 2011-05-05 14:19:48 +03:00
R David Murray a436e713b6 #8158: add missing 'description' description to optparse docstring. 2011-05-04 21:05:52 -04:00
Victor Stinner 28a8e96378 Issue #11277: oops, fix checksum values of test_zlib on 32 bits 2011-05-04 21:40:36 +02:00
Victor Stinner 7fd90c403d Issue #11277: test_zlib tests a buffer of 1 GB on 32 bits
(instead of a buffer of 2 GB)
2011-05-04 21:27:39 +02:00
Ezio Melotti 6fa0947285 #11985: update docstring of platform.python_implementation. 2011-05-04 18:37:50 +03:00
Ezio Melotti f5164f6e93 #11982: remove now unused function. 2011-05-04 15:28:31 +03:00
Victor Stinner fb5d3e75bb Issue #11277: fix issue number in a test_zlib comment 2011-05-04 14:02:11 +02:00
Ezio Melotti df8a8f768d #11982: fix json.loads('""') to return u'' rather than ''. 2011-05-04 14:40:53 +03:00
Brian Curtin 1602ec109b Fix #11834. Correct site-packages paths.
Patch by Bryce Verdier.
2011-05-03 22:01:53 -05:00
Brian Curtin 611cfd2cba Denote 3.3.0 as the last supported Windows 2000 release.
This corresponds with change b9390aa12855 to PEP-11.
2011-05-03 13:36:34 -05:00
Ezio Melotti 001cc954bb #11985: document the return value of platform.python_implementation for PyPy. 2011-05-03 20:41:48 +03:00
Victor Stinner e4163e2c8d Issue #10276: Fix test_zlib, m may be undefined in the finally block 2011-05-03 17:25:28 +02:00
Victor Stinner f9fb43492c Issue #10276: test_zlib checks that inputs of 2 GB are handled correctly by
crc32() and adler32(). Patch written by Steffen Daode Nurpmeso.
2011-05-03 15:19:23 +02:00
Victor Stinner 0a92d1849e Issue #8651: PyArg_Parse*() functions raise an OverflowError if the file
doesn't have PY_SSIZE_T_CLEAN define and the size doesn't fit in an int (length
bigger than 2^31-1 bytes).
2011-05-03 15:09:24 +02:00
Victor Stinner 645b9f67ae Issue #8651: Fix "z#" format of PyArg_Parse*() function: the size was not
written if PY_SSIZE_T_CLEAN is defined.
2011-05-03 15:06:11 +02:00
Victor Stinner 112d48ac17 (Merge 3.1) Issue #11277: mmap.mmap() calls fcntl(fd, F_FULLFSYNC) on Mac OS X
to get around a mmap bug with sparse files. Patch written by Steffen Daode
Nurpmeso.
2011-05-03 14:36:36 +02:00
Éric Araujo cfa8483051 Branch merge 2011-05-02 13:36:18 +02:00
Éric Araujo 941592aa19 Fix grammar to include both integer types in 2.x 2011-05-02 13:09:36 +02:00
Raymond Hettinger ec0ecb1afc Fix spelling. 2011-05-01 18:14:49 -07:00
Benjamin Peterson 17ebbdb73e note abcs of int and float (closes #11977) 2011-05-01 17:38:17 -05:00
Victor Stinner 97cf585f4b (Merge 3.1) Issue #9756: credit the author, Andreas Stührk (Trundle) 2011-05-01 23:51:11 +02:00
Victor Stinner e363ec1057 (Merge 3.1) Issue #9756: When calling a method descriptor or a slot wrapper
descriptor, the check of the object type doesn't read the __class__ attribute
anymore.  Fix a crash if a class override its __class__ attribute (e.g. a proxy
of the str type).
2011-05-01 23:43:37 +02:00
Georg Brandl 12b8fcfc45 Split combined code/doctest code blocks in two blocks, to enable proper highlighting. 2011-05-01 22:36:31 +02:00
R David Murray f9860c8298 #11971: fix man page; it's -OO not -O0
Patch by Lars Michelsen.
2011-05-01 11:12:35 -04:00
Éric Araujo 2a53d33dc6 Fix wording 2011-05-01 02:15:03 +02:00