]> granicus.if.org Git - python/log
python
12 years agoIn the _hashlib module, only initialize the static data for OpenSSL's
Gregory P. Smith [Sat, 2 Feb 2013 01:00:14 +0000 (17:00 -0800)]
In the _hashlib module, only initialize the static data for OpenSSL's
constructors once, to avoid memory leaks when finalizing and re-initializing
the Python interpreter.

12 years agoSilence a -Wformat-extra-argument warning when compiling.
Gregory P. Smith [Sat, 2 Feb 2013 00:13:27 +0000 (16:13 -0800)]
Silence a -Wformat-extra-argument warning when compiling.

12 years agoIssue #16256: OS X installer now sets correct permissions for doc directory.
Ned Deily [Fri, 1 Feb 2013 21:58:00 +0000 (13:58 -0800)]
Issue #16256: OS X installer now sets correct permissions for doc directory.

12 years agobetter news entry
Gregory P. Smith [Fri, 1 Feb 2013 21:07:27 +0000 (13:07 -0800)]
better news entry

12 years agoAdditional fix for Issue #12268: The io module file object writelines() methods
Gregory P. Smith [Fri, 1 Feb 2013 21:02:59 +0000 (13:02 -0800)]
Additional fix for Issue #12268: The io module file object writelines() methods
no longer abort early when one of its write system calls is interrupted (EINTR).

12 years agoFixes Issue #6972: The zipfile module no longer overwrites files outside of
Gregory P. Smith [Fri, 1 Feb 2013 19:40:18 +0000 (11:40 -0800)]
Fixes Issue #6972: The zipfile module no longer overwrites files outside of
its destination path when extracting malicious zip files.

12 years agoIssue #1783: Remove declarations of nonexistent private variables.
Serhiy Storchaka [Fri, 1 Feb 2013 11:13:32 +0000 (13:13 +0200)]
Issue #1783: Remove declarations of nonexistent private variables.

12 years ago#16128: clarify that instances of user-defined classes compare equal with themselves.
Ezio Melotti [Fri, 1 Feb 2013 03:18:44 +0000 (05:18 +0200)]
#16128: clarify that instances of user-defined classes compare equal with themselves.

12 years ago- Issue #17086: Backport the patches from the 3.3 branch to cross-build
doko@python.org [Thu, 31 Jan 2013 22:52:03 +0000 (23:52 +0100)]
- Issue #17086: Backport the patches from the 3.3 branch to cross-build
  the package.

12 years agoIssue #17041: Fix doctesting when Python is configured with the
Serhiy Storchaka [Thu, 31 Jan 2013 14:10:15 +0000 (16:10 +0200)]
Issue #17041: Fix doctesting when Python is configured with the
--without-doc-strings.

12 years agoIssue #17049: Localized calendar methods now return unicode if a locale
Serhiy Storchaka [Thu, 31 Jan 2013 13:57:51 +0000 (15:57 +0200)]
Issue #17049: Localized calendar methods now return unicode if a locale
includes an encoding and the result string contains month or weekday (was
regression from Python 2.6).

12 years agoIssue #4844: ZipFile now raises BadZipfile when opens a ZIP file with an
Serhiy Storchaka [Thu, 31 Jan 2013 13:26:55 +0000 (15:26 +0200)]
Issue #4844: ZipFile now raises BadZipfile when opens a ZIP file with an
incomplete "End of Central Directory" record.  Original patch by Guilherme
Polo and Alan McIntyre.

12 years agoIssue #13590: OS X Xcode 4 - improve support for universal extension modules
Ned Deily [Thu, 31 Jan 2013 09:24:55 +0000 (01:24 -0800)]
Issue #13590: OS X Xcode 4 - improve support for universal extension modules
    In particular, fix extension module build failures when trying to use
    32-bit-only installer Pythons on systems with Xcode 4 (currently
    OS X 10.8, 10.7, and optionally 10.6).
    * Backport 3.3.0 fixes to 2.7 branch (for release in 2.7.4)
    * Since Xcode 4 removes ppc support, extension module builds now
      check for ppc compiler support and by default remove ppc and
      ppc64 archs when they are not available.
    * Extension module builds now revert to using system installed
      headers and libs (/usr and /System/Library) if the SDK used
      to build the interpreter is not installed or has moved.
    * Try to avoid building extension modules with deprecated
      and problematic Apple llvm-gcc compiler.  If original compiler
      is not available, use clang instead by default.

12 years agoIssue 15505. unittest.installHandler and non callable signal handlers
Michael Foord [Tue, 29 Jan 2013 22:59:02 +0000 (22:59 +0000)]
Issue 15505. unittest.installHandler and non callable signal handlers

12 years agoAdded clarification to logging HOWTO.
Vinay Sajip [Tue, 29 Jan 2013 22:36:39 +0000 (22:36 +0000)]
Added clarification to logging HOWTO.

12 years agoMove NEWS entity from library to core section.
Serhiy Storchaka [Tue, 29 Jan 2013 10:04:55 +0000 (12:04 +0200)]
Move NEWS entity from library to core section.

12 years agoAdd tests for raw-unicode-escape codec.
Serhiy Storchaka [Tue, 29 Jan 2013 09:39:44 +0000 (11:39 +0200)]
Add tests for raw-unicode-escape codec.

12 years agoClean up escape-decode decoder tests.
Serhiy Storchaka [Tue, 29 Jan 2013 09:06:28 +0000 (11:06 +0200)]
Clean up escape-decode decoder tests.

12 years agoMerge heads
Serhiy Storchaka [Tue, 29 Jan 2013 08:39:19 +0000 (10:39 +0200)]
Merge heads

12 years agoIssue #16979: Fix error handling bugs in the unicode-escape-decode decoder.
Serhiy Storchaka [Tue, 29 Jan 2013 08:20:34 +0000 (10:20 +0200)]
Issue #16979: Fix error handling bugs in the unicode-escape-decode decoder.

12 years agoIssue #14018: Backport OS X installer updates from 3.3.
Ned Deily [Tue, 29 Jan 2013 08:07:46 +0000 (00:07 -0800)]
Issue #14018: Backport OS X installer updates from 3.3.

12 years agofix long fixer docs (#4590)
Benjamin Peterson [Mon, 28 Jan 2013 23:28:38 +0000 (18:28 -0500)]
fix long fixer docs (#4590)

12 years agoAdd Robert Xiao to Misc/ACKS for issue17051.
Serhiy Storchaka [Mon, 28 Jan 2013 18:27:28 +0000 (20:27 +0200)]
Add Robert Xiao to Misc/ACKS for issue17051.

12 years agoIssue #17051: Fix a memory leak in os.path.isdir() on Windows. Patch by Robert Xiao.
Serhiy Storchaka [Mon, 28 Jan 2013 18:19:50 +0000 (20:19 +0200)]
Issue #17051: Fix a memory leak in os.path.isdir() on Windows. Patch by Robert Xiao.

12 years agoFix skip conditions in some docstings tests.
Serhiy Storchaka [Mon, 28 Jan 2013 11:24:01 +0000 (13:24 +0200)]
Fix skip conditions in some docstings tests.

12 years agoRemove trailing whitespaces in cStringIO.h.
Serhiy Storchaka [Mon, 28 Jan 2013 09:00:58 +0000 (11:00 +0200)]
Remove trailing whitespaces in cStringIO.h.

12 years ago- Issue #17041: Fix testing when Python is configured with the
Serhiy Storchaka [Sun, 27 Jan 2013 17:45:49 +0000 (19:45 +0200)]
- Issue #17041: Fix testing when Python is configured with the
  --without-doc-strings option.

12 years agoIssue #11729: Backport commit bff052d9 from libffi upstream in order to fix
Stefan Krah [Sun, 27 Jan 2013 17:00:24 +0000 (18:00 +0100)]
Issue #11729: Backport commit bff052d9 from libffi upstream in order to fix
a ctypes build failure with clang.

12 years agoIssue #13886: Fix input() to not strip out supposedly-invalid input bytes.
Nadeem Vawda [Sun, 27 Jan 2013 13:21:26 +0000 (14:21 +0100)]
Issue #13886: Fix input() to not strip out supposedly-invalid input bytes.

12 years agoIssue #14018: fix merge error
Ned Deily [Sun, 27 Jan 2013 02:08:22 +0000 (18:08 -0800)]
Issue #14018: fix merge error

12 years agofix typo; thanks to Dmitry Northerner from docs@
Sandro Tosi [Sat, 26 Jan 2013 23:22:33 +0000 (00:22 +0100)]
fix typo; thanks to Dmitry Northerner from docs@

12 years agoAdapt test for build --without-doc-strings.
Stefan Krah [Sat, 26 Jan 2013 12:31:44 +0000 (13:31 +0100)]
Adapt test for build --without-doc-strings.

12 years agoIssue #10156: In the interpreter's initialization phase, unicode globals
Serhiy Storchaka [Sat, 26 Jan 2013 10:13:40 +0000 (12:13 +0200)]
Issue #10156: In the interpreter's initialization phase, unicode globals
are now initialized dynamically as needed.

12 years agoOptimize the test for issue #13454.
Serhiy Storchaka [Sat, 26 Jan 2013 09:51:42 +0000 (11:51 +0200)]
Optimize the test for issue #13454.
Now it requires almost 4x less memory and is almost 2x faster.

12 years agoIssue #16975: Fix error handling bug in the escape-decode decoder.
Serhiy Storchaka [Fri, 25 Jan 2013 21:30:50 +0000 (23:30 +0200)]
Issue #16975: Fix error handling bug in the escape-decode decoder.

12 years agoIssue #1602133: 'environ' is not really available with shared libraries on OSX
Ronald Oussoren [Fri, 25 Jan 2013 16:55:39 +0000 (17:55 +0100)]
Issue #1602133: 'environ' is not really available with shared libraries on OSX

There already was a workaround for this for framework builds on OSX,
this changeset enables the same workaround for shared libraries.

Closes #1602133

12 years ago- Issue #3754: fix typo in pthread AC_CACHE_VAL.
doko@python.org [Fri, 25 Jan 2013 14:32:31 +0000 (15:32 +0100)]
- Issue #3754: fix typo in pthread AC_CACHE_VAL.

12 years agoIssue #9290: In IDLE the sys.std* streams now implement io.TextIOBase
Serhiy Storchaka [Fri, 25 Jan 2013 13:30:35 +0000 (15:30 +0200)]
Issue #9290: In IDLE the sys.std* streams now implement io.TextIOBase
interface and support all mandatory methods and properties.

12 years ago- Issue #17029: Let h2py search the multiarch system include directory.
doko@python.org [Fri, 25 Jan 2013 12:08:27 +0000 (13:08 +0100)]
- Issue #17029: Let h2py search the multiarch system include directory.

12 years agoIssue #13454: Fix a crash when deleting an iterator created by itertools.tee()
Serhiy Storchaka [Fri, 25 Jan 2013 11:31:05 +0000 (13:31 +0200)]
Issue #13454: Fix a crash when deleting an iterator created by itertools.tee()
if all other iterators were very advanced before.

12 years agoDon't run the test for issue #16335 when -M is not specified.
Serhiy Storchaka [Fri, 25 Jan 2013 08:03:12 +0000 (10:03 +0200)]
Don't run the test for issue #16335 when -M is not specified.
Increase memory limit in this test.

12 years agoIssue #9708: clarify doc of iterparse - cElementTree doesn't support the parser argument
Eli Bendersky [Thu, 24 Jan 2013 15:28:33 +0000 (07:28 -0800)]
Issue #9708: clarify doc of iterparse - cElementTree doesn't support the parser argument

12 years agoCorrected typo, added comment in cookbook recipe.
Vinay Sajip [Wed, 23 Jan 2013 09:30:34 +0000 (09:30 +0000)]
Corrected typo, added comment in cookbook recipe.

12 years ago#11379: rephrase minidom documentation to use the term "minimal" instead of "lightwei...
Ezio Melotti [Tue, 22 Jan 2013 20:47:57 +0000 (22:47 +0200)]
#11379: rephrase minidom documentation to use the term "minimal" instead of "lightweight".  Patch by Éric Araujo.

12 years agoAdded cookbook recipe for structured logging.
Vinay Sajip [Tue, 22 Jan 2013 15:57:12 +0000 (15:57 +0000)]
Added cookbook recipe for structured logging.

12 years agoIssue #1159051: GzipFile now raises EOFError when reading a corrupted file
Serhiy Storchaka [Tue, 22 Jan 2013 15:13:26 +0000 (17:13 +0200)]
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.

12 years agoUpdated logging HOWTO with a diagram.
Vinay Sajip [Tue, 22 Jan 2013 13:10:58 +0000 (13:10 +0000)]
Updated logging HOWTO with a diagram.

12 years agoIssue #17007: Made minor changes to documentation wording.
Vinay Sajip [Mon, 21 Jan 2013 21:56:35 +0000 (21:56 +0000)]
Issue #17007: Made minor changes to documentation wording.

12 years agoIssue #17007: Improved logging documentation based on suggestions in the issue.
Vinay Sajip [Mon, 21 Jan 2013 19:43:51 +0000 (19:43 +0000)]
Issue #17007: Improved logging documentation based on suggestions in the issue.

12 years agoAdd bigmemtest decorator to test of issue #16335.
Serhiy Storchaka [Mon, 21 Jan 2013 18:23:01 +0000 (20:23 +0200)]
Add bigmemtest decorator to test of issue #16335.

12 years agoFix memory error in test_ucn.
Serhiy Storchaka [Mon, 21 Jan 2013 11:03:58 +0000 (13:03 +0200)]
Fix memory error in test_ucn.
unicode-escape decoder requires memory for result corresponding to input size.
Fixes test for issue #16335.

12 years agofix for f4d30d1a529e
Christian Heimes [Mon, 21 Jan 2013 10:25:27 +0000 (11:25 +0100)]
fix for f4d30d1a529e
Python 2.7 has only assertRaisesRegexp, not assertRaisesRegex

12 years agoIssue #16335: Fix integer overflow in unicode-escape decoder.
Serhiy Storchaka [Mon, 21 Jan 2013 09:48:24 +0000 (11:48 +0200)]
Issue #16335: Fix integer overflow in unicode-escape decoder.

12 years agoBackport 6df456f8fc6d.
Stefan Krah [Sun, 20 Jan 2013 22:29:28 +0000 (23:29 +0100)]
Backport 6df456f8fc6d.

12 years agoIssue #15989: Fix possible integer overflow in str formatting as in unicode formatting.
Serhiy Storchaka [Sat, 19 Jan 2013 21:35:46 +0000 (23:35 +0200)]
Issue #15989: Fix possible integer overflow in str formatting as in unicode formatting.

12 years agoremove unnecessary clearing of list
Benjamin Peterson [Sat, 19 Jan 2013 19:58:38 +0000 (14:58 -0500)]
remove unnecessary clearing of list

12 years agoEnsure that width and precision in string formatting test have type int, not long.
Serhiy Storchaka [Sat, 19 Jan 2013 19:06:35 +0000 (21:06 +0200)]
Ensure that width and precision in string formatting test have type int, not long.
Fix a regression from changeset d544873d62e9 (issue #15989).

12 years agoFix a few typos in Misc/NEWS.
Ezio Melotti [Sat, 19 Jan 2013 17:44:58 +0000 (19:44 +0200)]
Fix a few typos in Misc/NEWS.

12 years agoIssue #16953: Fix socket module compilation on platforms with HAVE_BROKEN_POLL.
Charles-François Natali [Sat, 19 Jan 2013 11:15:56 +0000 (12:15 +0100)]
Issue #16953: Fix socket module compilation on platforms with HAVE_BROKEN_POLL.
Patch by Jeffrey Armstrong.

12 years agoIssue #15989: Fix several occurrences of integer overflow
Serhiy Storchaka [Sat, 19 Jan 2013 10:55:39 +0000 (12:55 +0200)]
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.

12 years agoImprove tooltips by listing the most common argument pattern first.
Raymond Hettinger [Sat, 19 Jan 2013 07:23:11 +0000 (23:23 -0800)]
Improve tooltips by listing the most common argument pattern first.

12 years agoIgnore Mac's Data Services Store
Raymond Hettinger [Sat, 19 Jan 2013 02:07:58 +0000 (18:07 -0800)]
Ignore Mac's Data Services Store

12 years agoShow the function signature in the docstring
Raymond Hettinger [Sat, 19 Jan 2013 01:35:25 +0000 (17:35 -0800)]
Show the function signature in the docstring

12 years ago#16985: Remove incorrect phrase indication presence of non-present concrete UTC tzinf...
Jason R. Coombs [Fri, 18 Jan 2013 20:33:39 +0000 (15:33 -0500)]
#16985: Remove incorrect phrase indication presence of non-present concrete UTC tzinfo instance.

12 years ago#16978: rephrase sentence and fix typo. Initial patch by Tshepang Lekhonkhobe.
Ezio Melotti [Fri, 18 Jan 2013 17:55:46 +0000 (19:55 +0200)]
#16978: rephrase sentence and fix typo.  Initial patch by Tshepang Lekhonkhobe.

12 years agomath.fsum docs did not show up because of a misplaced testsetup directive
Łukasz Langa [Fri, 18 Jan 2013 12:31:53 +0000 (13:31 +0100)]
math.fsum docs did not show up because of a misplaced testsetup directive

12 years agosupport -> test_support
Benjamin Peterson [Fri, 18 Jan 2013 05:44:49 +0000 (00:44 -0500)]
support -> test_support

12 years agocheck windows fd validity (closes #16992)
Benjamin Peterson [Fri, 18 Jan 2013 05:10:24 +0000 (00:10 -0500)]
check windows fd validity (closes #16992)

12 years agoRemove pointless discussion of the lack of a ternary operator
Antoine Pitrou [Thu, 17 Jan 2013 22:10:12 +0000 (23:10 +0100)]
Remove pointless discussion of the lack of a ternary operator

12 years agoClosed #16886: test_dictcomps no longer depends on dict order
Frank Wierzbicki [Wed, 16 Jan 2013 21:52:22 +0000 (13:52 -0800)]
Closed #16886: test_dictcomps no longer depends on dict order

12 years agoIssue #9501: Improved shutdown handling to deal with module attributes correctly.
Vinay Sajip [Tue, 15 Jan 2013 17:55:13 +0000 (17:55 +0000)]
Issue #9501: Improved shutdown handling to deal with module attributes correctly.

12 years agoIssue #15861: tkinter now correctly works with lists and tuples containing
Serhiy Storchaka [Tue, 15 Jan 2013 16:01:21 +0000 (18:01 +0200)]
Issue #15861: tkinter now correctly works with lists and tuples containing
strings with whitespaces, backslashes or unbalanced braces.

12 years agoMerge heads
Serhiy Storchaka [Tue, 15 Jan 2013 13:32:49 +0000 (15:32 +0200)]
Merge heads

12 years agoIssue #10527: Remove dead code
Richard Oudkerk [Tue, 15 Jan 2013 13:13:35 +0000 (13:13 +0000)]
Issue #10527: Remove dead code

12 years agoIssue #14850: Now a chamap decoder treates U+FFFE as "undefined mapping"
Serhiy Storchaka [Tue, 15 Jan 2013 12:42:59 +0000 (14:42 +0200)]
Issue #14850: Now a chamap decoder treates U+FFFE as "undefined mapping"
in any mapping, not only in an unicode string.

12 years agoIssue #10527: Use poll() instead of select() for multiprocessing pipes
Richard Oudkerk [Mon, 14 Jan 2013 23:09:14 +0000 (23:09 +0000)]
Issue #10527: Use poll() instead of select() for multiprocessing pipes

12 years agoIssue #9720: zipfile now writes correct local headers for files larger than 4 GiB.
Serhiy Storchaka [Mon, 14 Jan 2013 22:29:51 +0000 (00:29 +0200)]
Issue #9720: zipfile now writes correct local headers for files larger than 4 GiB.

12 years agoDescribe the default_namespace parameter of ElemetTree.write.
Serhiy Storchaka [Sun, 13 Jan 2013 19:57:14 +0000 (21:57 +0200)]
Describe the default_namespace parameter of ElemetTree.write.

12 years agotest_asyncore: wait explicitly for a thread termination (this dangling thread
Charles-François Natali [Sun, 13 Jan 2013 12:55:13 +0000 (13:55 +0100)]
test_asyncore: wait explicitly for a thread termination (this dangling thread
could be the cause of a random failure).

12 years agomake deque_clear void, since it's infallible
Benjamin Peterson [Sun, 13 Jan 2013 02:22:18 +0000 (21:22 -0500)]
make deque_clear void, since it's infallible

12 years agoIssue #16829: IDLE printing no longer fails if there are spaces or other
Serhiy Storchaka [Sat, 12 Jan 2013 16:12:27 +0000 (18:12 +0200)]
Issue #16829: IDLE printing no longer fails if there are spaces or other
special characters in the file path.

12 years agoIssue #16762: Fix some test_subprocess failures on NetBSD and OpenBSD: kill()
Charles-François Natali [Sat, 12 Jan 2013 15:52:20 +0000 (16:52 +0100)]
Issue #16762: Fix some test_subprocess failures on NetBSD and OpenBSD: kill()
returns ESRCH for a zombie process, which is not POSIX-compliant.

12 years ago#16940: fix indentation in example.
Ezio Melotti [Sat, 12 Jan 2013 08:39:45 +0000 (10:39 +0200)]
#16940: fix indentation in example.

12 years agoIssue #16398: Optimize deque.rotate()
Raymond Hettinger [Sat, 12 Jan 2013 08:05:00 +0000 (00:05 -0800)]
Issue #16398: Optimize deque.rotate()

12 years agoIssue #16933: Improve choices examples in argparse documentation.
Chris Jerdonek [Sat, 12 Jan 2013 03:25:28 +0000 (19:25 -0800)]
Issue #16933: Improve choices examples in argparse documentation.

12 years agoIssue #15539: Fix backup file creation in pindent.py on Windows
Serhiy Storchaka [Fri, 11 Jan 2013 20:16:15 +0000 (22:16 +0200)]
Issue #15539: Fix backup file creation in pindent.py on Windows

12 years agoCloses #16936: fix duplicate/ambiguous description of stat.S_IFMT in the docs.
Georg Brandl [Fri, 11 Jan 2013 19:25:54 +0000 (20:25 +0100)]
Closes #16936: fix duplicate/ambiguous description of stat.S_IFMT in the docs.

12 years agoAdd a note about checking refleaks to patchcheck.
Ezio Melotti [Fri, 11 Jan 2013 12:07:47 +0000 (14:07 +0200)]
Add a note about checking refleaks to patchcheck.

12 years agoMerge heads
Serhiy Storchaka [Fri, 11 Jan 2013 10:27:43 +0000 (12:27 +0200)]
Merge heads

12 years agoIssue #15539: Fix a number of bugs in Tools/scripts/pindent.py.
Serhiy Storchaka [Fri, 11 Jan 2013 09:59:59 +0000 (11:59 +0200)]
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.

12 years agogrammatical fix; thanks to Alex Rudnick from docs@
Sandro Tosi [Fri, 11 Jan 2013 09:48:34 +0000 (10:48 +0100)]
grammatical fix; thanks to Alex Rudnick from docs@

12 years agoMerge heads.
Ezio Melotti [Fri, 11 Jan 2013 07:06:12 +0000 (09:06 +0200)]
Merge heads.

12 years ago#16154: fix some doctests in Doc/library. Patch by Ravi Sinha.
Ezio Melotti [Fri, 11 Jan 2013 06:53:10 +0000 (08:53 +0200)]
#16154: fix some doctests in Doc/library.  Patch by Ravi Sinha.

12 years agoIssue #16874: fix formatting of setup.py upload options in documentation.
Chris Jerdonek [Fri, 11 Jan 2013 06:50:40 +0000 (22:50 -0800)]
Issue #16874: fix formatting of setup.py upload options in documentation.

12 years ago#13899: \A, \Z, and \B now correctly match the A, Z, and B literals when used inside...
Ezio Melotti [Fri, 11 Jan 2013 06:32:01 +0000 (08:32 +0200)]
#13899: \A, \Z, and \B now correctly match the A, Z, and B literals when used inside character classes (e.g. [A]).  Patch by Matthew Barnett.

12 years ago#15109: revert '%'->'format' changes in 4b105d328fe7 to fix regression.
R David Murray [Fri, 11 Jan 2013 02:10:40 +0000 (21:10 -0500)]
#15109: revert '%'->'format' changes in 4b105d328fe7 to fix regression.

With '%', non-ascii worked because the '%' automatically got promoted to
unicode.  With format that doesn't happen, which led to encoding errors.  This
fix goes back to using %, and adds a test to make sure non-ascii string values
work in iterdump.

12 years ago#13934: document sqlite version strings.
R David Murray [Fri, 11 Jan 2013 01:22:57 +0000 (20:22 -0500)]
#13934: document sqlite version strings.

12 years agouse PyInt_FromSsize_t instead of PyLong_FromSsize_t (#10182)
Benjamin Peterson [Thu, 10 Jan 2013 16:37:47 +0000 (10:37 -0600)]
use PyInt_FromSsize_t instead of PyLong_FromSsize_t (#10182)

12 years ago#15545: sort iterdump via SQL instead of in python code
R David Murray [Thu, 10 Jan 2013 16:30:51 +0000 (11:30 -0500)]
#15545: sort iterdump via SQL instead of in python code

Although there is not a regression in Python2, we make the same update here to
keep the code bases in sync.

(The fix for issue 9750 introduced a regression in Python 3 by sorting the row
objects returned by fetchall.  But if a row_factory such as sqlite3.Row is
used, the rows may not be sortable (in Python3), which leads to an exception.
The sorting is still a nice idea, so the patch moves the sort into the sql.)

Fix and test by Peter Otten.

12 years agoIssue #15782: Prevent compile errors of OS X Carbon modules _Fm, _Qd, and
Ned Deily [Thu, 10 Jan 2013 06:04:35 +0000 (22:04 -0800)]
Issue #15782: Prevent compile errors of OS X Carbon modules _Fm, _Qd, and
_Qdoffs when compiling with an SDK of 10.7 or later.  The OS X APIs they
wrap have long been deprecated and have now been removed with 10.7.
These modules were already empty for 64-bit builds and have been removed
in Python 3.  (Original patch by Ronald Oussoren.)