]> granicus.if.org Git - python/log
python
9 years agoUpgrade ensurepip._bundled pip to 8.1.1 and setuptools to 20.3
Donald Stufft [Thu, 17 Mar 2016 15:05:35 +0000 (11:05 -0400)]
Upgrade ensurepip._bundled pip to 8.1.1 and setuptools to 20.3

9 years agoIssue #17603: Check for st_blocks field without requiring fileblocks.o
Martin Panter [Fri, 18 Mar 2016 02:36:41 +0000 (02:36 +0000)]
Issue #17603: Check for st_blocks field without requiring fileblocks.o

9 years agoSkip test_site if USER_SITE cannot be created
Victor Stinner [Mon, 14 Mar 2016 16:49:46 +0000 (17:49 +0100)]
Skip test_site if USER_SITE cannot be created

Issue #17758: Skip test_site if site.USER_SITE directory doesn't exist and
cannot be created.

9 years agoIssue #20556: Used specific assert methods in threading tests.
Serhiy Storchaka [Mon, 14 Mar 2016 08:28:59 +0000 (10:28 +0200)]
Issue #20556: Used specific assert methods in threading tests.

9 years ago#24918: fix CSS for code blocks when a side box is present. Patch by Manvi B.
Ezio Melotti [Sun, 13 Mar 2016 09:42:05 +0000 (11:42 +0200)]
#24918: fix CSS for code blocks when a side box is present.  Patch by Manvi B.

9 years ago#25687: clarify that errors in tearDown increase the total number of reported errors...
Ezio Melotti [Sun, 13 Mar 2016 07:40:09 +0000 (09:40 +0200)]
#25687: clarify that errors in tearDown increase the total number of reported errors.  Initial patch by HyeSoo Park.

9 years agoIssue #26513: Fixes platform module detection of Windows Server
Steve Dower [Sat, 12 Mar 2016 16:07:04 +0000 (08:07 -0800)]
Issue #26513: Fixes platform module detection of Windows Server

9 years agoIssue #23718: Fixed parsing time in week 0 before Jan 1. Original patch by
Serhiy Storchaka [Sat, 12 Mar 2016 08:51:16 +0000 (10:51 +0200)]
Issue #23718: Fixed parsing time in week 0 before Jan 1.  Original patch by
Tamás Bence Gedai.

9 years agoIssue 25959: Explain in docstring that PhotoImage.zoom arguments are
Terry Jan Reedy [Fri, 11 Mar 2016 20:30:27 +0000 (15:30 -0500)]
Issue 25959: Explain in docstring that PhotoImage.zoom arguments are
multipliers, not final sizes.  Explain y default for .zoom and .subsample.
Initial patch by Serhiy Storchaka.

9 years ago#26247: document Chrome/Chromium addition to webbrowser. Patch by Manvi B.
Ezio Melotti [Fri, 11 Mar 2016 19:32:12 +0000 (21:32 +0200)]
#26247: document Chrome/Chromium addition to webbrowser.  Patch by Manvi B.

9 years agoIssue #16851: Add Anna Koroliuk to Misc/ACKS
Victor Stinner [Fri, 11 Mar 2016 10:28:41 +0000 (11:28 +0100)]
Issue #16851: Add Anna Koroliuk to Misc/ACKS

9 years agoFix inspect.ismethod() doc
Victor Stinner [Fri, 11 Mar 2016 10:27:46 +0000 (11:27 +0100)]
Fix inspect.ismethod() doc

Closes #16851: Fix inspect.ismethod() doc, return also True if object is an
unbound method.

Patch written by Anna Koroliuk.

9 years agoIssue #26177: Fixed the keys() method for Canvas and Scrollbar widgets.
Serhiy Storchaka [Wed, 9 Mar 2016 08:51:41 +0000 (10:51 +0200)]
Issue #26177: Fixed the keys() method for Canvas and Scrollbar widgets.

9 years agoIssue #15068: Avoid creating a reference loop in fileinput.
Serhiy Storchaka [Tue, 8 Mar 2016 21:34:28 +0000 (23:34 +0200)]
Issue #15068: Avoid creating a reference loop in fileinput.

9 years agoBacked out changeset: e7065fc4a6c2
Steve Dower [Tue, 8 Mar 2016 21:09:32 +0000 (13:09 -0800)]
Backed out changeset: e7065fc4a6c2

9 years agoForce clean externals on buildbots.
Steve Dower [Tue, 8 Mar 2016 20:51:59 +0000 (12:51 -0800)]
Force clean externals on buildbots.

9 years agoIssue #26465: Update Windows builds to use OpenSSL 1.0.2g.
Steve Dower [Tue, 8 Mar 2016 18:26:39 +0000 (10:26 -0800)]
Issue #26465: Update Windows builds to use OpenSSL 1.0.2g.

9 years agoIssue #15068: Got rid of excessive buffering in the fileinput module.
Serhiy Storchaka [Tue, 8 Mar 2016 16:35:45 +0000 (18:35 +0200)]
Issue #15068: Got rid of excessive buffering in the fileinput module.
The bufsize parameter is no longer used.

9 years agoIssue #26486: Removed pickle test that doesn't work in 2.7 on 64-bit platform.
Serhiy Storchaka [Tue, 8 Mar 2016 09:04:22 +0000 (11:04 +0200)]
Issue #26486: Removed pickle test that doesn't work in 2.7 on 64-bit platform.

9 years agoIssue #26456: Force all child threads to terminate in TestForkInThread
Martin Panter [Tue, 8 Mar 2016 07:07:28 +0000 (07:07 +0000)]
Issue #26456: Force all child threads to terminate in TestForkInThread

9 years agoIssue #26465: Update OS X installer build to use OpenSSL 1.0.2g.
Ned Deily [Tue, 8 Mar 2016 06:07:44 +0000 (01:07 -0500)]
Issue #26465: Update OS X installer build to use OpenSSL 1.0.2g.

9 years agoproperly use PyObject_CallMethod in dictview binary operations (closes #26478)
Benjamin Peterson [Fri, 4 Mar 2016 06:05:36 +0000 (22:05 -0800)]
properly use PyObject_CallMethod in dictview binary operations (closes #26478)

9 years agoIssue #26505: Fix typos in getaddrinfo license text.
Ned Deily [Mon, 7 Mar 2016 19:51:19 +0000 (14:51 -0500)]
Issue #26505: Fix typos in getaddrinfo license text.
Patch by Alex Willmer.

9 years agoDocument another recipe for itertools: all_equal(). Inspired by David Beazley.
Raymond Hettinger [Mon, 7 Mar 2016 02:06:29 +0000 (18:06 -0800)]
Document another recipe for itertools:  all_equal().  Inspired by David Beazley.

9 years agoIssue #2202: Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls
Berker Peksag [Sun, 6 Mar 2016 14:27:23 +0000 (16:27 +0200)]
Issue #2202: Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls

Raise ValueError if algorithm is not MD5 or SHA.

Initial patch by Mathieu Dupuy.

9 years agoIssue #26167: Backported copy tests.
Serhiy Storchaka [Sun, 6 Mar 2016 13:03:16 +0000 (15:03 +0200)]
Issue #26167: Backported copy tests.

9 years agoIssue #26475: Fixed debugging output for regular expressions with the (?x) flag.
Serhiy Storchaka [Sun, 6 Mar 2016 07:15:47 +0000 (09:15 +0200)]
Issue #26475: Fixed debugging output for regular expressions with the (?x) flag.

9 years agoIssue #26486: Backported some pickle tests from 3.x.
Serhiy Storchaka [Sun, 6 Mar 2016 07:05:47 +0000 (09:05 +0200)]
Issue #26486: Backported some pickle tests from 3.x.

9 years agoIssue #26485: Fix Sphinx warning in Doc/license.rst
Berker Peksag [Sat, 5 Mar 2016 11:55:04 +0000 (13:55 +0200)]
Issue #26485: Fix Sphinx warning in Doc/license.rst

Patch by Julien.

9 years agoissue26484 - fix the broken table in the doc about len().
Gregory P. Smith [Sat, 5 Mar 2016 00:32:36 +0000 (16:32 -0800)]
issue26484 - fix the broken table in the doc about len().

9 years agoIssue #26476: Fixed compilation error when use PyErr_BadInternalCall() in C++.
Serhiy Storchaka [Thu, 3 Mar 2016 16:16:27 +0000 (18:16 +0200)]
Issue #26476: Fixed compilation error when use PyErr_BadInternalCall() in C++.
Patch by Jeroen Demeyer.

9 years agoIssue #26246: Set initial value of the hidden attr when creating copy button.
Berker Peksag [Wed, 2 Mar 2016 17:44:24 +0000 (19:44 +0200)]
Issue #26246: Set initial value of the hidden attr when creating copy button.

Patch by Liang-Bo Wang.

9 years agoIssue #26385: Cleanup NamedTemporaryFile if fdopen() fails, by SilentGhost
Martin Panter [Mon, 29 Feb 2016 00:31:38 +0000 (00:31 +0000)]
Issue #26385: Cleanup NamedTemporaryFile if fdopen() fails, by SilentGhost

9 years agoFix typo.
Georg Brandl [Sun, 28 Feb 2016 20:09:36 +0000 (21:09 +0100)]
Fix typo.

9 years agoIssue 13573: Document that csv.writer uses str() for floats instead of repr().
Raymond Hettinger [Sun, 28 Feb 2016 07:34:54 +0000 (23:34 -0800)]
Issue 13573: Document that csv.writer uses str() for floats instead of repr().

9 years agoIssue #22836: Keep exception reports sensible despite errors
Martin Panter [Sun, 28 Feb 2016 00:18:43 +0000 (00:18 +0000)]
Issue #22836: Keep exception reports sensible despite errors

9 years ago#26246: update copybutton.js after JQuery update. Patch by Liang-Bo Wang.
Ezio Melotti [Sat, 27 Feb 2016 06:39:36 +0000 (08:39 +0200)]
#26246: update copybutton.js after JQuery update.  Patch by Liang-Bo Wang.

9 years agoIssue #24421: Compile _math.c separately to avoid race condition
Martin Panter [Wed, 3 Feb 2016 05:19:44 +0000 (05:19 +0000)]
Issue #24421: Compile _math.c separately to avoid race condition

9 years agoFix rstlint to also look for indented comments that should be directives.
Georg Brandl [Thu, 25 Feb 2016 19:14:10 +0000 (20:14 +0100)]
Fix rstlint to also look for indented comments that should be directives.

9 years agoIssue #25801: Fixed resource warnings in test_zipfile64.
Serhiy Storchaka [Thu, 25 Feb 2016 10:55:19 +0000 (12:55 +0200)]
Issue #25801: Fixed resource warnings in test_zipfile64.
Patch by SilentGhost.

9 years agoIssue #25136: Add reference to 'xcode-select --install' to Mac README.
Ned Deily [Wed, 24 Feb 2016 14:33:51 +0000 (01:33 +1100)]
Issue #25136: Add reference to 'xcode-select --install' to Mac README.

9 years agoChange OS X installer builds targeted for 10.10 and above to build
Ned Deily [Wed, 24 Feb 2016 14:01:02 +0000 (01:01 +1100)]
Change OS X installer builds targeted for 10.10 and above to build
and link with a private copy of OpenSSL, like installers targeted
for 10.5 already do, since Apple has deprecated use of the system
OpenSSL and removed its header files from the Xcode 7 SDK.  Note
that this configuration is not currently used to build any
python.org-supplied installers and that the private copy of
OpenSSL requires its own root certificates.

9 years agoIssue #25136: Support Apple Xcode 7's new textual SDK stub libraries.
Ned Deily [Wed, 24 Feb 2016 13:55:24 +0000 (00:55 +1100)]
Issue #25136: Support Apple Xcode 7's new textual SDK stub libraries.

As of Xcode 7, SDKs for Apple platforms now include textual-format stub
libraries whose file names have a .tbd extension rather than the
standard OS X .dylib extension.  The Apple compiler tool chain handles
these stub libraries transparently and the installed system shared libraries
are still .dylibs.  However, the new stub libraries cause problems for
third-party programs that support building with Apple SDKs and make
build-time decisions based on the presence or paths of system-supplied
shared libraries in the SDK.  In particular, building Python itself with
an SDK fails to find system-supplied libraries during setup.py's build of
standard library extension modules.  The solution is to have
find_library_file() in Distutils search for .tbd files, along with
the existing types (.a, .so, and .dylib).  Patch by Tim Smith.

9 years agoIssue #5824: Fix DatagramRequestHandler tests by binding the client socket
Martin Panter [Wed, 24 Feb 2016 04:45:33 +0000 (04:45 +0000)]
Issue #5824: Fix DatagramRequestHandler tests by binding the client socket

9 years agoIssue #22088: Clarify base-64 alphabets and which characters are discarded
Martin Panter [Tue, 23 Feb 2016 22:30:50 +0000 (22:30 +0000)]
Issue #22088: Clarify base-64 alphabets and which characters are discarded

* There are only two base-64 alphabets defined by the RFCs, not three
* Due to the internal translation, plus (+) and slash (/) are never discarded
* standard_ and urlsafe_b64decode() discard characters as well

9 years agoIssue #26406: Avoid unnecessary serialization of getaddrinfo(3) calls on
Ned Deily [Tue, 23 Feb 2016 11:03:39 +0000 (22:03 +1100)]
Issue #26406: Avoid unnecessary serialization of getaddrinfo(3) calls on
current versions of OpenBSD and NetBSD.  Patch by A. Jesse Jiryu Davis.

9 years agoIssue #26417: Prevent spurious errors and incorrect defaults when
Ned Deily [Tue, 23 Feb 2016 09:45:57 +0000 (20:45 +1100)]
Issue #26417: Prevent spurious errors and incorrect defaults when
installing IDLE 2.7 on OS X: default configuration settings are
no longer installed from OS X specific copies.

9 years agoIssue #26268: Update Windows builds to use OpenSSL 1.0.2f
Zachary Ware [Mon, 22 Feb 2016 10:08:30 +0000 (04:08 -0600)]
Issue #26268: Update Windows builds to use OpenSSL 1.0.2f

9 years agoIssue #26261: Clarify NamedTemporaryFile name attribute vs file.name
Martin Panter [Mon, 22 Feb 2016 10:10:00 +0000 (10:10 +0000)]
Issue #26261: Clarify NamedTemporaryFile name attribute vs file.name

9 years agoFix errors in XML-RPC client example code
Martin Panter [Mon, 22 Feb 2016 09:10:54 +0000 (09:10 +0000)]
Fix errors in XML-RPC client example code

* httplib.HTTP (deprecated and does not work) → HTTPConnection
* Server (deprecated) → ServerProxy

9 years agoAdded simple threading example to logging cookbook.
Vinay Sajip [Sat, 20 Feb 2016 19:02:04 +0000 (19:02 +0000)]
Added simple threading example to logging cookbook.

9 years agoIssues #22468, #21996, #22208: Clarify gettarinfo() and TarInfo usage
Martin Panter [Fri, 19 Feb 2016 23:34:56 +0000 (23:34 +0000)]
Issues #22468, #21996, #22208: Clarify gettarinfo() and TarInfo usage

* Make it more obvious gettarinfo() is based on stat(), and that non-ordinary
  files may need special care
* Filename taken from fileobj.name; suggest dummy arcname as a workaround
* Indicate TarInfo may be used directly, not just via gettarinfo()

9 years agoCloses #20169: fix inner links random doc.
Georg Brandl [Fri, 19 Feb 2016 07:57:23 +0000 (08:57 +0100)]
Closes #20169: fix inner links random doc.

9 years agoIssue #15608: Improve socketserver module documentation
Martin Panter [Fri, 19 Feb 2016 03:27:46 +0000 (03:27 +0000)]
Issue #15608: Improve socketserver module documentation

* Add headings for each concrete and mix-in class and list methods and
  attributes under them
* Fix class and method cross references
* Changed RequestHandler to BaseRequestHandler and added class heading
* Pull out Stream/DatagramRequestHandler definitions
* Reordered the request handler setup(), handle(), finish() methods
* Document constructor parameters for the server classes

9 years agoIssue #26309: Rewrite test in main thread and avoid race condition
Martin Panter [Fri, 19 Feb 2016 02:16:42 +0000 (02:16 +0000)]
Issue #26309: Rewrite test in main thread and avoid race condition

9 years agoIssue #26309: Shut down SocketServer request if verify_request() is false
Martin Panter [Thu, 18 Feb 2016 10:43:55 +0000 (10:43 +0000)]
Issue #26309: Shut down SocketServer request if verify_request() is false

Based on patch by Aviv Palivoda.

9 years agofix typo (closes #26378)
Benjamin Peterson [Thu, 18 Feb 2016 07:42:46 +0000 (23:42 -0800)]
fix typo (closes #26378)

9 years agoopen the cert store readonly
Benjamin Peterson [Thu, 18 Feb 2016 06:13:19 +0000 (22:13 -0800)]
open the cert store readonly

Patch from Chi Hsuan Yen.

9 years agoIssue #25924: Avoid unnecessary serialization of getaddrinfo(3) calls on OS X
Ned Deily [Mon, 15 Feb 2016 05:51:24 +0000 (16:51 +1100)]
Issue #25924: Avoid unnecessary serialization of getaddrinfo(3) calls on OS X
versions 10.5 or higher.  Original patch by A. Jesse Jiryu Davis.

9 years agoIssue #26268: Update OS X 10.5+ installer build to use OpenSSL 1.0.2f.
Ned Deily [Mon, 15 Feb 2016 05:42:36 +0000 (16:42 +1100)]
Issue #26268: Update OS X 10.5+ installer build to use OpenSSL 1.0.2f.

9 years agoIssue #24303: Fix random EEXIST upon multiprocessing semaphores creation with
Charles-François Natali [Fri, 12 Feb 2016 22:39:21 +0000 (22:39 +0000)]
Issue #24303: Fix random EEXIST upon multiprocessing semaphores creation with
Linux PID namespaces enabled.

9 years agoCloses #26320: fix stylesheet after Sphinx update.
Georg Brandl [Wed, 10 Feb 2016 12:44:29 +0000 (13:44 +0100)]
Closes #26320: fix stylesheet after Sphinx update.

9 years agoIssue #25698: Importing module if the stack is too deep no longer replaces
Serhiy Storchaka [Wed, 10 Feb 2016 08:28:06 +0000 (10:28 +0200)]
Issue #25698: Importing module if the stack is too deep no longer replaces
imported module with the empty one.

9 years agoIssue #26304: Change "allows to <verb>" to "allows <verb>ing" or similar
Martin Panter [Wed, 10 Feb 2016 05:44:01 +0000 (05:44 +0000)]
Issue #26304: Change "allows to <verb>" to "allows <verb>ing" or similar

The original form is incorrect grammar and feels awkward, even though the
meaning is clear.

9 years agoIssues #26310, #26311: Fix typos in the documentation
Martin Panter [Wed, 10 Feb 2016 01:17:51 +0000 (01:17 +0000)]
Issues #26310, #26311: Fix typos in the documentation

9 years agoIssue #25983: Added tests for multi-argument type().
Serhiy Storchaka [Mon, 8 Feb 2016 18:27:52 +0000 (20:27 +0200)]
Issue #25983: Added tests for multi-argument type().

9 years agoClarify "cardinality of" as "number of elements in" as many readers do
Gregory P. Smith [Mon, 8 Feb 2016 17:59:14 +0000 (09:59 -0800)]
Clarify "cardinality of" as "number of elements in" as many readers do
not have a math vocabulary.

9 years agoUpdates build to use SHA256 hash when signing files
Steve Dower [Mon, 8 Feb 2016 17:26:25 +0000 (09:26 -0800)]
Updates build to use SHA256 hash when signing files

9 years agoIssue #26198: Fixed error messages for some argument parsing errors.
Serhiy Storchaka [Sun, 7 Feb 2016 23:05:48 +0000 (01:05 +0200)]
Issue #26198: Fixed error messages for some argument parsing errors.
Fixed the documented about buffer overflow error for "es#" and "et#" format
units.

9 years agofix hash member name (closes #22847)
Benjamin Peterson [Sun, 7 Feb 2016 06:36:06 +0000 (22:36 -0800)]
fix hash member name (closes #22847)

9 years agoIssue #25179: Preparatory cleanup of existing docs on string formatting
Martin Panter [Mon, 8 Feb 2016 01:34:09 +0000 (01:34 +0000)]
Issue #25179: Preparatory cleanup of existing docs on string formatting

* There was a link pointing to the section on the string.Formatter class (and
  multiple links in Python 3), when the section on the common format string
  syntax is probably more appropriate
* Fix references to various format() functions and methods
* Nested replacement fields may contain conversions and format specifiers,
  and this is tested in Python 3; see Issue #19729 for instance

9 years agoFix userinfo example presented in urllib2 howto.
Senthil Kumaran [Sat, 6 Feb 2016 03:35:57 +0000 (19:35 -0800)]
Fix userinfo example presented in urllib2 howto.

9 years agofix debug assertion
Benjamin Peterson [Fri, 5 Feb 2016 06:26:10 +0000 (22:26 -0800)]
fix debug assertion

10 years agoIssue #22847: Improve method cache efficiency.
Antoine Pitrou [Fri, 14 Nov 2014 23:56:27 +0000 (00:56 +0100)]
Issue #22847: Improve method cache efficiency.

9 years agoIssue #12923: Reset FancyURLopener's redirect counter even on exception
Martin Panter [Thu, 4 Feb 2016 06:01:35 +0000 (06:01 +0000)]
Issue #12923: Reset FancyURLopener's redirect counter even on exception

Based on patches by Brian Brazil and Daniel Rocco.

9 years agoPython for .NET has moved to Github.
Zachary Ware [Thu, 4 Feb 2016 04:05:46 +0000 (22:05 -0600)]
Python for .NET has moved to Github.

Reported by Denis Akhiyarov on docs@

9 years agoIssue #25945: Fixed bugs in functools.partial.
Serhiy Storchaka [Tue, 2 Feb 2016 16:45:59 +0000 (18:45 +0200)]
Issue #25945: Fixed bugs in functools.partial.
Fixed a crash when unpickle the functools.partial object with wrong state.
Fixed a leak in failed functools.partial constructor.
"args" and "keywords" attributes of functools.partial have now always types
tuple and dict correspondingly.

9 years agoIssue #26244: Clarify default zlib compression level in documentation
Martin Panter [Wed, 3 Feb 2016 07:06:33 +0000 (07:06 +0000)]
Issue #26244: Clarify default zlib compression level in documentation

Based on patch by Aviv Palivoda.

9 years agoIssue #26173: Separate bad cert file tests and client rejection test
Martin Panter [Mon, 1 Feb 2016 21:58:11 +0000 (21:58 +0000)]
Issue #26173: Separate bad cert file tests and client rejection test

Test test_wrong_cert() runs a server that rejects the client's certificate,
so ECONNRESET is reasonable in addition to SSLError. On the other hand, the
other three tests don't even need to run a server because they are just
testing the parsing of invalid certificate files.

This should fix intermittent failures on Windows where ECONNRESET was not
being caught.

9 years agoIssue #25934: Default to /fp:strict for ICC builds
Zachary Ware [Sat, 30 Jan 2016 01:06:00 +0000 (19:06 -0600)]
Issue #25934: Default to /fp:strict for ICC builds

9 years agoIssue #26173: Fix test_ssl confusion with non-existing cert and wrongcert.pem
Martin Panter [Sat, 30 Jan 2016 02:36:00 +0000 (02:36 +0000)]
Issue #26173: Fix test_ssl confusion with non-existing cert and wrongcert.pem

Testing for a non-existing certificate file is already done in test_errors().
The wrongcert.pem test was originally testing behaviour with a mismatched
certificate.

9 years agoIssue #19023: Document ctypes array and pointer classes
Martin Panter [Fri, 29 Jan 2016 10:12:19 +0000 (10:12 +0000)]
Issue #19023: Document ctypes array and pointer classes

Also add some more tests. Based on patch by Sye van der Veen.

9 years agoFixed a crash in new tests in test_getargs2 added in 60a2d67dacb3 (issue #26198).
Serhiy Storchaka [Thu, 28 Jan 2016 22:55:37 +0000 (00:55 +0200)]
Fixed a crash in new tests in test_getargs2 added in 60a2d67dacb3 (issue #26198).

9 years agoFixed an infinite loop in zipimport caused by cebcd2fd3e1f (issue #19883).
Serhiy Storchaka [Thu, 28 Jan 2016 22:37:28 +0000 (00:37 +0200)]
Fixed an infinite loop in zipimport caused by cebcd2fd3e1f (issue #19883).

9 years agoIssue #19883: Fixed possible integer overflows in zipimport.
Serhiy Storchaka [Thu, 28 Jan 2016 19:32:53 +0000 (21:32 +0200)]
Issue #19883: Fixed possible integer overflows in zipimport.

9 years agoIssue #26198: Added tests for string-related format units of PyArg_Parse*()
Serhiy Storchaka [Thu, 28 Jan 2016 17:56:04 +0000 (19:56 +0200)]
Issue #26198: Added tests for string-related format units of PyArg_Parse*()
functions: "s", "s*", "s#", "t#", "z", "z*", "z#", "w", "w*", "w#", "u",
"u#", "es", "et", "es#", "et#" and "c".

9 years agoIssue #25507: revert incorrect movement of idleConf import in a37ea1d56e98.
Terry Jan Reedy [Wed, 27 Jan 2016 16:51:45 +0000 (11:51 -0500)]
Issue #25507: revert incorrect movement of idleConf import in a37ea1d56e98.
Augment htest to include all major IOBinding functions.

9 years agoFix typo in test.rst
Berker Peksag [Mon, 25 Jan 2016 06:24:57 +0000 (08:24 +0200)]
Fix typo in test.rst

Reported by Mike Scalora on docs@p.o.

9 years agodoc: i18n HTML templates
Victor Stinner [Sat, 23 Jan 2016 11:55:11 +0000 (12:55 +0100)]
doc: i18n HTML templates

Issue #25907: Use {% trans %} tags in HTML templates to ease the translation of
the documentation. The tag comes from Jinja templating system, used by Sphinx.

Patch written by Julien Palard.

9 years agoPer issue21949 and issue1629: Document the Py_SIZE, Py_TYPE, Py_REFCNT macros.
Gregory P. Smith [Fri, 22 Jan 2016 21:17:41 +0000 (13:17 -0800)]
Per issue21949 and issue1629: Document the Py_SIZE, Py_TYPE, Py_REFCNT macros.
This was already done in the 3.5 branch; this just does the same in the 2.7
branch.

9 years agocode_richcompare() now uses the constants types
Victor Stinner [Fri, 22 Jan 2016 11:33:12 +0000 (12:33 +0100)]
code_richcompare() now uses the constants types

Issue #25843: When compiling code, don't merge constants if they are equal but
have a different types. For example, "f1, f2 = lambda: 1, lambda: 1.0" is now
correctly compiled to two different functions: f1() returns 1 (int) and f2()
returns 1.0 (int), even if 1 and 1.0 are equal.

Add a new _PyCode_ConstantKey() private function.

9 years agoreject negative data_size
Benjamin Peterson [Fri, 22 Jan 2016 06:02:46 +0000 (22:02 -0800)]
reject negative data_size

9 years agoUpgrade pip to 8.0.2
Donald Stufft [Fri, 22 Jan 2016 02:57:17 +0000 (21:57 -0500)]
Upgrade pip to 8.0.2

9 years agoIssue #18620: Improve Pool examples in multiprocessing documentation
Berker Peksag [Thu, 21 Jan 2016 22:07:00 +0000 (00:07 +0200)]
Issue #18620: Improve Pool examples in multiprocessing documentation

A single call to Pool.apply_async() will create only one process. To use all
of the pool's processes, it should be invoked multiple times:

    with Pool(processes=4) as pool:
        results = [pool.apply_async(func, ()) for i in range(4)]

Patch by Davin Potts.

9 years agoIssue #26106: doc: Move text of licenses to parsed literal block
Victor Stinner [Thu, 21 Jan 2016 07:56:00 +0000 (08:56 +0100)]
Issue #26106: doc: Move text of licenses to parsed literal block

This change helps to ignore text of PSF, BEOPEN.com and CNRI licenses when
translating the documentation. Patch written by Julien Palard who is
translating Python 3.5 doc to french. Text of other licenses already used
preformatted format.

9 years agoprevent buffer overflow in get_data (closes #26171)
Benjamin Peterson [Thu, 21 Jan 2016 06:23:44 +0000 (22:23 -0800)]
prevent buffer overflow in get_data (closes #26171)

9 years agofix refleak in error condition
Benjamin Peterson [Thu, 21 Jan 2016 06:06:43 +0000 (22:06 -0800)]
fix refleak in error condition

9 years agoReplace fpgetmask() with fedisableexcept()
Victor Stinner [Wed, 20 Jan 2016 21:30:58 +0000 (22:30 +0100)]
Replace fpgetmask() with fedisableexcept()

Issue #24520: On FreeBSD, fpgetmask() was deprecated long time ago.
fedisableexcept() is now preferred.

9 years agoissue25982 - Add a class definition for managers.Namespace in the multiprocessing...
Senthil Kumaran [Wed, 20 Jan 2016 11:18:48 +0000 (03:18 -0800)]
issue25982 - Add a class definition for managers.Namespace in the multiprocessing docs.

9 years agoIssue #26147: xmlrpclib now works with unicode not encodable with used
Serhiy Storchaka [Wed, 20 Jan 2016 08:33:51 +0000 (10:33 +0200)]
Issue #26147: xmlrpclib now works with unicode not encodable with used
non-UTF-8 encoding.