]> granicus.if.org Git - python/log
python
12 years agoMerge heads
Serhiy Storchaka [Tue, 29 Jan 2013 08:40:16 +0000 (10:40 +0200)]
Merge heads

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

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

12 years agoIssue #14018: merge to 3.3
Ned Deily [Tue, 29 Jan 2013 08:17:19 +0000 (00:17 -0800)]
Issue #14018: merge to 3.3

12 years agoIssue #14018: Backport OS X installer updates from 3.3.
Ned Deily [Tue, 29 Jan 2013 08:08:32 +0000 (00:08 -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 agoFix skip conditions in some docstings tests.
Serhiy Storchaka [Mon, 28 Jan 2013 11:26:25 +0000 (13:26 +0200)]
Fix skip conditions in some docstings tests.

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

12 years agoIssue #17041: Fix testing when Python is configured with the
Serhiy Storchaka [Sun, 27 Jan 2013 18:03:39 +0000 (20:03 +0200)]
Issue #17041: Fix testing when Python is configured with the
--without-doc-strings.

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

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

Also fix sporadic failures in test_builtin due to dependence on whether the
readline module has previously been imported.

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

Also fix sporadic failures in test_builtin due to dependence on whether the
readline module has previously been imported.

12 years agoFix a few typos and a double semicolon. Patch by Eitan Adler.
Ezio Melotti [Sun, 27 Jan 2013 04:20:14 +0000 (06:20 +0200)]
Fix a few typos and a double semicolon.  Patch by Eitan Adler.

12 years agonull merge
Ned Deily [Sun, 27 Jan 2013 02:11:06 +0000 (18:11 -0800)]
null merge

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

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

12 years ago- Issue #3718: Use AC_ARG_VAR to set MACHDEP in configure.ac.
doko@python.org [Sat, 26 Jan 2013 17:57:19 +0000 (18:57 +0100)]
- Issue #3718: Use AC_ARG_VAR to set MACHDEP in configure.ac.

12 years agoFix test_pydoc for build --without-doc-strings.
Stefan Krah [Sat, 26 Jan 2013 12:57:15 +0000 (13:57 +0100)]
Fix test_pydoc for build --without-doc-strings.

12 years agoAdapt test_bytes for a build --without-doc-strings.
Stefan Krah [Sat, 26 Jan 2013 12:06:36 +0000 (13:06 +0100)]
Adapt test_bytes for a build --without-doc-strings.

12 years ago- Follow-up for issue #15484: In PYTHON_FOR_BUILD, use $(PLATDIR) instead
doko@python.org [Sat, 26 Jan 2013 11:08:25 +0000 (12:08 +0100)]
- Follow-up for issue #15484: In PYTHON_FOR_BUILD, use $(PLATDIR) instead
  of plat-$(MACHDEP).

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

12 years agoIssue #10156: In the interpreter's initialization phase, unicode globals
Serhiy Storchaka [Sat, 26 Jan 2013 10:14:02 +0000 (12:14 +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:53:17 +0000 (11:53 +0200)]
Optimize the test for issue #13454.
Now it requires almost 4x less memory and is almost 2x faster.

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

12 years agoIssue #16980: Fix processing of escaped non-ascii bytes in the
Serhiy Storchaka [Fri, 25 Jan 2013 21:52:21 +0000 (23:52 +0200)]
Issue #16980: Fix processing of escaped non-ascii bytes in the
unicode-escape-decode decoder.

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

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

12 years ago- Issue #17031: Fix running regen in cross builds.
doko@python.org [Fri, 25 Jan 2013 17:45:12 +0000 (18:45 +0100)]
- Issue #17031: Fix running regen in cross builds.

12 years agoIssue #1602133: 'environ' is not really available with shared libraries on OSX (merge...
Ronald Oussoren [Fri, 25 Jan 2013 17:01:05 +0000 (18:01 +0100)]
Issue #1602133: 'environ' is not really available with shared libraries on OSX (merge from 3.2)

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 agoIssue #1602133: 'environ' is not really available with shared libraries on OSX
Ronald Oussoren [Fri, 25 Jan 2013 16:57:13 +0000 (17:57 +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:34:34 +0000 (15:34 +0100)]
- Issue #3754: fix typo in pthread AC_CACHE_VAL.

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

12 years agoMerge heads
Serhiy Storchaka [Fri, 25 Jan 2013 14:08:46 +0000 (16:08 +0200)]
Merge heads

12 years ago- Issue #16292: Improve a comment for cross building in configure.ac
doko@python.org [Fri, 25 Jan 2013 13:44:00 +0000 (14:44 +0100)]
- Issue #16292: Improve a comment for cross building in configure.ac

12 years agoIssue #9290: In IDLE the sys.std* streams now implement io.TextIOBase
Serhiy Storchaka [Fri, 25 Jan 2013 13:34:21 +0000 (15:34 +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 #15484: Fix _PYTHON_PROJECT_BASE for srcdir != builddir builds;
doko@python.org [Fri, 25 Jan 2013 13:33:33 +0000 (14:33 +0100)]
- Issue #15484: Fix _PYTHON_PROJECT_BASE for srcdir != builddir builds;
  use _PYTHON_PROJECT_BASE in distutils/sysconfig.py.

12 years agoIssue #9290: In IDLE the sys.std* streams now implement io.TextIOBase
Serhiy Storchaka [Fri, 25 Jan 2013 13:30:58 +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:19:35 +0000 (13:19 +0100)]
- Issue #17029: Let h2py search the multiarch system include directory.

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

12 years agoClean trailing whitespace in itertoolsmodule.c.
Serhiy Storchaka [Fri, 25 Jan 2013 11:38:56 +0000 (13:38 +0200)]
Clean trailing whitespace in itertoolsmodule.c.

12 years agoClean trailing whitespace in itertoolsmodule.c.
Serhiy Storchaka [Fri, 25 Jan 2013 11:37:39 +0000 (13:37 +0200)]
Clean trailing whitespace in itertoolsmodule.c.

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

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

12 years agoIncrease the memory limit in the test for issue #16335.
Serhiy Storchaka [Fri, 25 Jan 2013 08:13:37 +0000 (10:13 +0200)]
Increase the memory limit in the test for issue #16335.

12 years agoIncrease the memory limit in the test for issue #16335.
Serhiy Storchaka [Fri, 25 Jan 2013 08:12:30 +0000 (10:12 +0200)]
Increase the memory limit in the test for issue #16335.

12 years agoNull merge
Serhiy Storchaka [Fri, 25 Jan 2013 08:09:25 +0000 (10:09 +0200)]
Null merge

12 years agoFix pathext test for shutil.which() which was
Serhiy Storchaka [Thu, 24 Jan 2013 18:03:49 +0000 (20:03 +0200)]
Fix pathext test for shutil.which() which was
broken after applying the patch for issue #16957.

12 years agoClarify ET.iterparse documentation - this function is not supported by the
Eli Bendersky [Thu, 24 Jan 2013 15:23:34 +0000 (07:23 -0800)]
Clarify ET.iterparse documentation - this function is not supported by the
C implementation.

12 years agomerge heads
Eli Bendersky [Thu, 24 Jan 2013 15:17:05 +0000 (07:17 -0800)]
merge heads

12 years agoIssue #9708: Fix support for iterparse(parser=...) argument per documentation.
Eli Bendersky [Thu, 24 Jan 2013 15:15:19 +0000 (07:15 -0800)]
Issue #9708: Fix support for iterparse(parser=...) argument per documentation.

When _elementtree is imported, iterparse is redefined as a class and the parser
argument was ommitted. Fix this, and add a docstring to the class.

12 years agoSince the return type of format() is not a Decimal, raise ValueError instead of
Stefan Krah [Thu, 24 Jan 2013 14:22:33 +0000 (15:22 +0100)]
Since the return type of format() is not a Decimal, raise ValueError instead of
InvalidOperation if the format specification (width, prec) exceeds the internal
limits of libmpdec.

12 years agoFix generating of sre_constants.h on Python 3.
Serhiy Storchaka [Thu, 24 Jan 2013 11:43:46 +0000 (13:43 +0200)]
Fix generating of sre_constants.h on Python 3.

12 years agoFix generating of sre_constants.h on Python 3.
Serhiy Storchaka [Thu, 24 Jan 2013 11:43:02 +0000 (13:43 +0200)]
Fix generating of sre_constants.h on Python 3.

12 years agomerge from 3.2
Senthil Kumaran [Wed, 23 Jan 2013 11:00:26 +0000 (03:00 -0800)]
merge from 3.2

Issue #12411: Fix to cgi.parse_multipart to correctly use bytes boundaries and
bytes data. Patch by Jonas Wagner.

12 years agoIssue #12411: Fix to cgi.parse_multipart to correctly use bytes boundaries and
Senthil Kumaran [Wed, 23 Jan 2013 10:50:15 +0000 (02:50 -0800)]
Issue #12411: Fix to cgi.parse_multipart to correctly use bytes boundaries and
bytes data. Patch by Jonas Wagner.

12 years agoMerged doc update from 3.2.
Vinay Sajip [Wed, 23 Jan 2013 09:32:10 +0000 (09:32 +0000)]
Merged doc update from 3.2.

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

12 years agoIssue #16957: shutil.which() no longer searches a bare file name in the
Serhiy Storchaka [Wed, 23 Jan 2013 08:44:21 +0000 (10:44 +0200)]
Issue #16957: shutil.which() no longer searches a bare file name in the
current directory on Unix and no longer searches a relative file path with
a directory part in PATH directories.  Patch by Thomas Kluyver.

12 years ago#11379: merge with 3.2.
Ezio Melotti [Tue, 22 Jan 2013 20:49:46 +0000 (22:49 +0200)]
#11379: merge with 3.2.

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 agoMerged doc update from 3.2.
Vinay Sajip [Tue, 22 Jan 2013 15:58:14 +0000 (15:58 +0000)]
Merged doc update from 3.2.

12 years agoAdded cookbook recipe for structured logging.
Vinay Sajip [Tue, 22 Jan 2013 15:57:39 +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:07:49 +0000 (17:07 +0200)]
Issue #1159051: GzipFile now raises EOFError when reading a corrupted file
with truncated header or footer.
Added tests for reading truncated gzip, bzip2, and lzma files.

12 years agoIssue #1159051: GzipFile now raises EOFError when reading a corrupted file
Serhiy Storchaka [Tue, 22 Jan 2013 15:01:59 +0000 (17:01 +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 agoAdd some tests for XPath numeric indexing
Eli Bendersky [Tue, 22 Jan 2013 14:12:54 +0000 (06:12 -0800)]
Add some tests for XPath numeric indexing

12 years agoNull merge
Serhiy Storchaka [Tue, 22 Jan 2013 13:56:29 +0000 (15:56 +0200)]
Null merge

12 years ago#15546: Fix GzipFile.peek()'s handling of pathological input data.
Serhiy Storchaka [Tue, 22 Jan 2013 13:54:48 +0000 (15:54 +0200)]
#15546: Fix GzipFile.peek()'s handling of pathological input data.
This is a backport of changeset 8c07ff7f882f.

12 years agoMerged documentation update from 3.2.
Vinay Sajip [Tue, 22 Jan 2013 13:13:16 +0000 (13:13 +0000)]
Merged documentation update from 3.2.

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

12 years agoFix shutil.which() test for issue #16993.
Serhiy Storchaka [Tue, 22 Jan 2013 08:31:36 +0000 (10:31 +0200)]
Fix shutil.which() test for issue #16993.

12 years agoIssue #17007: Merged minor changes from 3.2.
Vinay Sajip [Mon, 21 Jan 2013 21:58:05 +0000 (21:58 +0000)]
Issue #17007: Merged minor changes from 3.2.

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

12 years agoIssue #17007: Merged doc update from 3.2.
Vinay Sajip [Mon, 21 Jan 2013 19:45:27 +0000 (19:45 +0000)]
Issue #17007: Merged doc update from 3.2.

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

12 years agoUse bigmemtest decorator for test of issue #16335.
Serhiy Storchaka [Mon, 21 Jan 2013 18:27:17 +0000 (20:27 +0200)]
Use bigmemtest decorator for test of issue #16335.

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

12 years agoIssue #16993: shutil.which() now preserves the case of the path and extension
Serhiy Storchaka [Mon, 21 Jan 2013 13:00:27 +0000 (15:00 +0200)]
Issue #16993: shutil.which() now preserves the case of the path and extension
on Windows.

12 years agoFix memory error in test_ucn.
Serhiy Storchaka [Mon, 21 Jan 2013 11:00:11 +0000 (13:00 +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 memory error in test_ucn.
Serhiy Storchaka [Mon, 21 Jan 2013 10:59:13 +0000 (12:59 +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 agoIssue #16335: Fix integer overflow in unicode-escape decoder.
Serhiy Storchaka [Mon, 21 Jan 2013 09:42:57 +0000 (11:42 +0200)]
Issue #16335: Fix integer overflow in unicode-escape decoder.

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

12 years agoIssue #7353: Remove references to Include/intobject.h in the C-porting howto.
Stefan Krah [Sun, 20 Jan 2013 22:18:00 +0000 (23:18 +0100)]
Issue #7353: Remove references to Include/intobject.h in the C-porting howto.

12 years agoend is a keyword argument
Benjamin Peterson [Sun, 20 Jan 2013 15:09:44 +0000 (10:09 -0500)]
end is a keyword argument

12 years agoexpressions -> arguments
Benjamin Peterson [Sun, 20 Jan 2013 15:05:13 +0000 (10:05 -0500)]
expressions -> arguments

12 years ago#16557: update functional howto -- "return value" is valid after PEP 380. Initial...
Ezio Melotti [Sun, 20 Jan 2013 14:34:21 +0000 (16:34 +0200)]
#16557: update functional howto -- "return value" is valid after PEP 380.  Initial patch by Ramchandra Apte.

12 years ago#4153: merge with 3.2.
Ezio Melotti [Sun, 20 Jan 2013 10:18:17 +0000 (12:18 +0200)]
#4153: merge with 3.2.

12 years ago#4153: update the Unicode howto.
Ezio Melotti [Sun, 20 Jan 2013 10:16:03 +0000 (12:16 +0200)]
#4153: update the Unicode howto.

12 years agoTouch correct file in 'make touch'
Nick Coghlan [Sun, 20 Jan 2013 07:22:07 +0000 (17:22 +1000)]
Touch correct file in 'make touch'

12 years agoRemove cruft and circumvolutions from the unittest docs.
Antoine Pitrou [Sun, 20 Jan 2013 00:29:39 +0000 (01:29 +0100)]
Remove cruft and circumvolutions from the unittest docs.
(I would have preferred to post this for review but the bug tracker is pretty much dead at the moment)

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 agoFix a few typos in Misc/NEWS.
Ezio Melotti [Sat, 19 Jan 2013 17:50:34 +0000 (19:50 +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:19:10 +0000 (12:19 +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:26:26 +0000 (12:26 +0200)]
Issue #15989: Fix several occurrences of integer overflow
when result of PyLong_AsLong() narrowed to int without checks.

This is a backport of changesets 13e2e44db99d and 525407d89277.

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:40:43 +0000 (13:40 +0100)]
math.fsum docs did not show up because of a misplaced testsetup directive

12 years agoRemove outdated statement
Antoine Pitrou [Thu, 17 Jan 2013 22:08:03 +0000 (23:08 +0100)]
Remove outdated statement

12 years agoFix docstring typo in concurrent.futures.Future
Eli Bendersky [Thu, 17 Jan 2013 14:36:30 +0000 (06:36 -0800)]
Fix docstring typo in concurrent.futures.Future

12 years agoMerge Misc/NEWS fixes from 3.2.
Ezio Melotti [Sat, 19 Jan 2013 17:54:33 +0000 (19:54 +0200)]
Merge Misc/NEWS fixes from 3.2.

12 years agoIssue #16953: Fix socket module compilation on platforms with HAVE_BROKEN_POLL.
Charles-François Natali [Sat, 19 Jan 2013 11:21:26 +0000 (12:21 +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:41:45 +0000 (12:41 +0200)]
Issue #15989: Fix several occurrences of integer overflow
when result of PyLong_AsLong() narrowed to int without checks.

This is a backport of changesets 13e2e44db99d and 525407d89277.