Commit Graph

65830 Commits

Author SHA1 Message Date
Vinay Sajip a0c9a4ed75 Added cookbook recipe for structured logging. 2013-01-22 15:57:12 +00:00
Serhiy Storchaka 353e54edc4 Issue #1159051: GzipFile now raises EOFError when reading a corrupted file
with truncated header or footer.
Added tests for reading truncated gzip and bzip2 files.
2013-01-22 17:13:26 +02:00
Vinay Sajip 0f2bd027a8 Updated logging HOWTO with a diagram. 2013-01-22 13:10:58 +00:00
Vinay Sajip 8a459d977d Issue #17007: Made minor changes to documentation wording. 2013-01-21 21:56:35 +00:00
Vinay Sajip cb309c5fae Issue #17007: Improved logging documentation based on suggestions in the issue. 2013-01-21 19:43:51 +00:00
Serhiy Storchaka e3adb43b4b Add bigmemtest decorator to test of issue #16335. 2013-01-21 20:23:01 +02:00
Serhiy Storchaka b1ecf80e04 Fix memory error in test_ucn.
unicode-escape decoder requires memory for result corresponding to input size.
Fixes test for issue #16335.
2013-01-21 13:03:58 +02:00
Christian Heimes 4d70e583ab fix for f4d30d1a529e
Python 2.7 has only assertRaisesRegexp, not assertRaisesRegex
2013-01-21 11:25:27 +01:00
Serhiy Storchaka 1d3acd4b59 Issue #16335: Fix integer overflow in unicode-escape decoder. 2013-01-21 11:48:24 +02:00
Stefan Krah b357db885c Backport 6df456f8fc6d. 2013-01-20 23:29:28 +01:00
Serhiy Storchaka 926f3a37de Issue #15989: Fix possible integer overflow in str formatting as in unicode formatting. 2013-01-19 23:35:46 +02:00
Benjamin Peterson 6b78bffa20 remove unnecessary clearing of list 2013-01-19 14:58:38 -05:00
Serhiy Storchaka 18a13933f9 Ensure that width and precision in string formatting test have type int, not long.
Fix a regression from changeset d544873d62e9 (issue #15989).
2013-01-19 21:06:35 +02:00
Ezio Melotti 302ad8d126 Fix a few typos in Misc/NEWS. 2013-01-19 19:44:58 +02:00
Charles-François Natali a41cf29c0b Issue #16953: Fix socket module compilation on platforms with HAVE_BROKEN_POLL.
Patch by Jeffrey Armstrong.
2013-01-19 12:15:56 +01:00
Serhiy Storchaka 74f49ab28b Issue #15989: Fix several occurrences of integer overflow
when result of PyInt_AsLong() or PyLong_AsLong() narrowed
to int without checks.

This is a backport of changesets 13e2e44db99d and 525407d89277.
2013-01-19 12:55:39 +02:00
Raymond Hettinger ac7b49f407 Improve tooltips by listing the most common argument pattern first. 2013-01-18 23:23:11 -08:00
Raymond Hettinger b077f9ce9f Ignore Mac's Data Services Store 2013-01-18 18:07:58 -08:00
Raymond Hettinger bca22096a1 Show the function signature in the docstring 2013-01-18 17:35:25 -08:00
Jason R. Coombs 86af58156b #16985: Remove incorrect phrase indication presence of non-present concrete UTC tzinfo instance. 2013-01-18 15:33:39 -05:00
Ezio Melotti 9e0f462cb2 #16978: rephrase sentence and fix typo. Initial patch by Tshepang Lekhonkhobe. 2013-01-18 19:55:46 +02:00
Łukasz Langa a670fcc692 math.fsum docs did not show up because of a misplaced testsetup directive 2013-01-18 13:31:53 +01:00
Benjamin Peterson 2f78f0e1f9 support -> test_support 2013-01-18 00:44:49 -05:00
Benjamin Peterson 08e153ae37 check windows fd validity (closes #16992) 2013-01-18 00:10:24 -05:00
Antoine Pitrou d0c665e062 Remove pointless discussion of the lack of a ternary operator 2013-01-17 23:10:12 +01:00
Frank Wierzbicki 65a9f36981 Closed #16886: test_dictcomps no longer depends on dict order 2013-01-16 13:52:22 -08:00
Vinay Sajip 51b55517a1 Issue #9501: Improved shutdown handling to deal with module attributes correctly. 2013-01-15 17:55:13 +00:00
Serhiy Storchaka e39ba04e22 Issue #15861: tkinter now correctly works with lists and tuples containing
strings with whitespaces, backslashes or unbalanced braces.
2013-01-15 18:01:21 +02:00
Serhiy Storchaka bdea5ec574 Merge heads 2013-01-15 15:32:49 +02:00
Richard Oudkerk 7796b08664 Issue #10527: Remove dead code 2013-01-15 13:13:35 +00:00
Serhiy Storchaka 9599745e2c Issue #14850: Now a chamap decoder treates U+FFFE as "undefined mapping"
in any mapping, not only in an unicode string.
2013-01-15 14:42:59 +02:00
Richard Oudkerk 90b5d9288d Issue #10527: Use poll() instead of select() for multiprocessing pipes 2013-01-14 23:09:14 +00:00
Serhiy Storchaka 80a9fd77a0 Issue #9720: zipfile now writes correct local headers for files larger than 4 GiB. 2013-01-15 00:29:51 +02:00
Serhiy Storchaka 3d4a02ab8c Describe the default_namespace parameter of ElemetTree.write. 2013-01-13 21:57:14 +02:00
Charles-François Natali 8c9047149b test_asyncore: wait explicitly for a thread termination (this dangling thread
could be the cause of a random failure).
2013-01-13 13:55:13 +01:00
Benjamin Peterson 40056de9f5 make deque_clear void, since it's infallible 2013-01-12 21:22:18 -05:00
Serhiy Storchaka eebcb5f790 Issue #16829: IDLE printing no longer fails if there are spaces or other
special characters in the file path.
2013-01-12 18:12:27 +02:00
Charles-François Natali ef2bd67e23 Issue #16762: Fix some test_subprocess failures on NetBSD and OpenBSD: kill()
returns ESRCH for a zombie process, which is not POSIX-compliant.
2013-01-12 16:52:20 +01:00
Ezio Melotti dc157fcbd3 #16940: fix indentation in example. 2013-01-12 10:39:45 +02:00
Raymond Hettinger 2cdb6435d6 Issue #16398: Optimize deque.rotate() 2013-01-12 00:05:00 -08:00
Chris Jerdonek 92e2fc8360 Issue #16933: Improve choices examples in argparse documentation. 2013-01-11 19:25:28 -08:00
Serhiy Storchaka dfae912d80 Issue #15539: Fix backup file creation in pindent.py on Windows 2013-01-11 22:16:15 +02:00
Georg Brandl 8b41c2e259 Closes #16936: fix duplicate/ambiguous description of stat.S_IFMT in the docs. 2013-01-11 20:25:54 +01:00
Ezio Melotti 9e9cb2810e Add a note about checking refleaks to patchcheck. 2013-01-11 14:07:47 +02:00
Serhiy Storchaka 4b263663fc Merge heads 2013-01-11 12:27:43 +02:00
Serhiy Storchaka 8cd7f82024 Issue #15539: Fix a number of bugs in Tools/scripts/pindent.py.
Now pindent.py works with a "with" statement.  pindent.py no longer produces
improper indentation.  pindent.py now works with continued lines broken after
"class" or "def" keywords and with continuations at the start of line.  Added
regression tests for pindent.py.  Modernized pindent.py.
2013-01-11 11:59:59 +02:00
Sandro Tosi 2534f9aa39 grammatical fix; thanks to Alex Rudnick from docs@ 2013-01-11 10:48:34 +01:00
Ezio Melotti 14091a6bca Merge heads. 2013-01-11 09:06:12 +02:00
Ezio Melotti 57dfb227a3 #16154: fix some doctests in Doc/library. Patch by Ravi Sinha. 2013-01-11 08:53:10 +02:00
Chris Jerdonek d3003cb0b2 Issue #16874: fix formatting of setup.py upload options in documentation. 2013-01-10 22:50:40 -08:00