Berker Peksag [Sun, 6 Mar 2016 14:16:40 +0000 (16:16 +0200)]
Issue #2202: Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls
Raise ValueError if algorithm is not MD5 or SHA.
Initial patch by Mathieu Dupuy.
Serhiy Storchaka [Sun, 6 Mar 2016 13:03:07 +0000 (15:03 +0200)]
Issue #26167: Backported copy tests.
Serhiy Storchaka [Sun, 6 Mar 2016 12:10:24 +0000 (14:10 +0200)]
Issue #26015: Added new tests for pickling iterators of mutable sequences.
Serhiy Storchaka [Sun, 6 Mar 2016 12:00:45 +0000 (14:00 +0200)]
Issue #25718: Fixed pickling and copying the accumulate() iterator with total is None.
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.
Serhiy Storchaka [Fri, 4 Mar 2016 07:39:47 +0000 (09:39 +0200)]
Fixed typo in pickle tests.
Benjamin Peterson [Fri, 4 Mar 2016 06:08:01 +0000 (22:08 -0800)]
merge 3.4 (closes #26478)
Benjamin Peterson [Fri, 4 Mar 2016 06:05:36 +0000 (22:05 -0800)]
properly use the ObjArgs variant of CallMethod in dictview binary operations (closes #26478)
Berker Peksag [Wed, 2 Mar 2016 17:40:30 +0000 (19:40 +0200)]
Issue #26246: Set initial value of the hidden attr when creating copy button.
Patch by Liang-Bo Wang.
Berker Peksag [Wed, 2 Mar 2016 17:40:08 +0000 (19:40 +0200)]
Issue #26246: Set initial value of the hidden attr when creating copy button.
Patch by Liang-Bo Wang.
Yury Selivanov [Wed, 2 Mar 2016 16:30:46 +0000 (11:30 -0500)]
coroutines: Error when awaiting on coroutine that's being awaited
Issue #25888
Yury Selivanov [Wed, 2 Mar 2016 16:17:01 +0000 (11:17 -0500)]
asyncio: Remove duplicate bind addresses in create_server.
Patch by Sebastien Bourdeauducq (issue #26338)
Yury Selivanov [Wed, 2 Mar 2016 16:07:47 +0000 (11:07 -0500)]
inspect: Fix BoundArguments.apply_defaults to handle empty arguments
Patch by Frederick Wagner (issue #26347)
Yury Selivanov [Wed, 2 Mar 2016 16:03:28 +0000 (11:03 -0500)]
asyncio: Prevent StopIteration from being thrown into a Future
Patch by Chris Angelico (issue #26221)
Yury Selivanov [Wed, 2 Mar 2016 15:49:16 +0000 (10:49 -0500)]
asyncio: Fix @coroutine to recognize CoroWrapper (issue #25647)
Patch by Vladimir Rutsky.
Yury Selivanov [Wed, 2 Mar 2016 15:37:59 +0000 (10:37 -0500)]
asyncio, selectors: Update to the upstream version
Yury Selivanov [Wed, 2 Mar 2016 15:33:47 +0000 (10:33 -0500)]
Merge 3.4
Yury Selivanov [Wed, 2 Mar 2016 15:33:22 +0000 (10:33 -0500)]
asyncio: Update 3.4 asyncio/test_tasks to upstream version
Victor Stinner [Tue, 1 Mar 2016 20:59:58 +0000 (21:59 +0100)]
Issue #26464: Fix unicode_fast_translate() again
Initialize i variable if the string is non-ASCII.
Victor Stinner [Tue, 1 Mar 2016 20:30:30 +0000 (21:30 +0100)]
Fix str.translate()
Issue #26464: Fix str.translate() when string is ASCII and first replacements
removes character, but next replacement uses a non-ASCII character or a string
longer than 1 character. Regression introduced in Python 3.5.0.
Serhiy Storchaka [Tue, 1 Mar 2016 08:25:45 +0000 (10:25 +0200)]
Issue #26457: Fixed the subnets() methods in IP network classes for the case
when resulting prefix length is equal to maximal prefix length.
Based on patch by Xiang Zhang.
Terry Jan Reedy [Tue, 1 Mar 2016 06:18:47 +0000 (01:18 -0500)]
Whitespace
Terry Jan Reedy [Tue, 1 Mar 2016 06:13:07 +0000 (01:13 -0500)]
Document maintenance of idlelib/help.html in idlelib.
Terry Jan Reedy [Tue, 1 Mar 2016 05:29:57 +0000 (00:29 -0500)]
Rebase the 3.x version of idlelib/help.html on the 3.5 version of
Doc/build/html/library/idle.html, which is built from Doc/library/idle.rst.
Help.html is an rstrip()ed copy of idle.html that can be pushed.
The displayed content is unchanged because a) the version number is not
displayed, being inherent in the version displaying the file and b) the tt
tag was ignored by the custom parser in idlelib/help.py. The wrapped
<span class="pre"> tags remain as they were.
This will be merged in 3.6 (without conflict) because the 3.6 help.html is
a copy of the 3.5 file (which was a copy of the 3.4 file). The two files will
remain the same until either a) there is a content change that only applies
to one of them or b) 3.5 maintenance ends and the 3.6 file is itself rebased.
Martin Panter [Sun, 28 Feb 2016 05:22:20 +0000 (05:22 +0000)]
Issue #26385: Cleanup NamedTemporaryFile if open() fails, by SilentGhost
Georg Brandl [Sun, 28 Feb 2016 20:13:23 +0000 (21:13 +0100)]
Update susp-ignore file (#25910).
Georg Brandl [Sun, 28 Feb 2016 20:09:36 +0000 (21:09 +0100)]
Fix typo.
Martin Panter [Sun, 28 Feb 2016 03:16:11 +0000 (03:16 +0000)]
Issue #22836: Keep exception reports sensible despite errors
Ezio Melotti [Sat, 27 Feb 2016 06:41:16 +0000 (08:41 +0200)]
#26246: merge with 3.4.
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.
Georg Brandl [Fri, 26 Feb 2016 18:37:12 +0000 (19:37 +0100)]
Closes #25910: fix dead and permanently redirected links in the docs. Thanks to SilentGhost for the patch.
Georg Brandl [Fri, 26 Feb 2016 18:17:39 +0000 (19:17 +0100)]
Fix version.
Georg Brandl [Fri, 26 Feb 2016 18:16:40 +0000 (19:16 +0100)]
Closes #26442: fix copy-paste.
Georg Brandl [Fri, 26 Feb 2016 18:13:47 +0000 (19:13 +0100)]
Closes #26444: typo fixes.
Benjamin Peterson [Thu, 18 Feb 2016 06:13:19 +0000 (22:13 -0800)]
open the cert store readonly
Patch from Chi Hsuan Yen.
Martin Panter [Wed, 3 Feb 2016 05:19:44 +0000 (05:19 +0000)]
Issue #24421: Compile _math.c separately to avoid race condition
Martin Panter [Mon, 22 Feb 2016 09:21:49 +0000 (09:21 +0000)]
Issue #26390: Fix and test pbkdf2_hmac() parameter names
Based on patch by Daan Bakker.
Georg Brandl [Thu, 25 Feb 2016 19:17:45 +0000 (20:17 +0100)]
Closes #26435: fix syntax in directives. Thanks to Jakub Stasiak.
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.
Martin Panter [Thu, 25 Feb 2016 11:53:40 +0000 (11:53 +0000)]
Issue #26402: Fix XML-RPC client retrying after server disconnection
This is a regression introduced in 3.5 by revision
eba80326ba53. Fix by Jelte
Fennema, test case by me.
Serhiy Storchaka [Thu, 25 Feb 2016 10:55:19 +0000 (12:55 +0200)]
Issue #25801: Fixed resource warnings in test_zipfile64.
Patch by SilentGhost.
Ned Deily [Wed, 24 Feb 2016 14:34:34 +0000 (01:34 +1100)]
Issue #25136: Add reference to 'xcode-select --install' to Mac README.
Ned Deily [Wed, 24 Feb 2016 14:01:48 +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.
Ned Deily [Wed, 24 Feb 2016 13:56:38 +0000 (00:56 +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.
Anish Shah [Sun, 7 Feb 2016 00:36:00 +0000 (05:36 +0500)]
Issue #26302: Correctly identify comma as an invalid character for a cookie (correcting regression in Python 3.5).
Serhiy Storchaka [Wed, 24 Feb 2016 11:03:54 +0000 (13:03 +0200)]
Fixed a bug in os.walk() with bytes path on Windows caused by merging fixes
for issues #25995 and #25911.
Serhiy Storchaka [Wed, 24 Feb 2016 10:05:50 +0000 (12:05 +0200)]
Issue #25913: Leading <~ is optional now in base64.a85decode() with adobe=True.
Patch by Swati Jaiswal.
Martin Panter [Wed, 24 Feb 2016 05:12:59 +0000 (05:12 +0000)]
Issue #5824: Fix DatagramRequestHandler tests by binding the client socket
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
Also update the doc strings to clarify data types, based on revision
92760d2edc9e, correct the exception raised by b16decode(), and correct the
parameter name for the base-85 functions.
Ned Deily [Tue, 23 Feb 2016 11:05:29 +0000 (22:05 +1100)]
Issue #26406: Avoid unnecessary serialization of getaddrinfo(3) calls on
current versions of OpenBSD and NetBSD. Patch by A. Jesse Jiryu Davis.
Georg Brandl [Mon, 22 Feb 2016 13:52:55 +0000 (14:52 +0100)]
Update example; str(float) changed so there is difference now.
Zachary Ware [Mon, 22 Feb 2016 10:08:51 +0000 (04:08 -0600)]
Issue #26268: Update Windows builds to use OpenSSL 1.0.2f
Zachary Ware [Mon, 22 Feb 2016 10:02:30 +0000 (04:02 -0600)]
Issue #26268: Update the prepare_ssl.py script
It can now handle OpenSSL versions 1.0.2e and greater, which don't
include include files in include/.
Note that sources prepared by this script no longer support the old
project files for 2.7; you now have to have Perl available to use
the old build_ssl.py script with sources from svn.python.org.
Martin Panter [Mon, 22 Feb 2016 10:10:00 +0000 (10:10 +0000)]
Issue #26261: Clarify NamedTemporaryFile name attribute vs file.name
Martin Panter [Mon, 22 Feb 2016 09:04:22 +0000 (09:04 +0000)]
Fix errors in XML-RPC client example code
* http.client.HTTP (does not exist in Python 3) → HTTPConnection
* Server (deprecated) → ServerProxy
* Transport.send_request() grew a new “debug” parameter in Python 3 (revision
a528f7f8f97a)
Berker Peksag [Sun, 21 Feb 2016 20:00:12 +0000 (22:00 +0200)]
Issue #26401: Fix compile() documentation
After
25032ec29315, compile() will raise a ValueError
if source contains null bytes.
Patch by SilentGhost.
Brett Cannon [Sun, 21 Feb 2016 17:20:51 +0000 (09:20 -0800)]
Fix some typos in the NEWS file
Brett Cannon [Sun, 21 Feb 2016 02:40:02 +0000 (18:40 -0800)]
List what classes from importlib.machinery don't work with importlib.util.LazyLoader
Brett Cannon [Sun, 21 Feb 2016 02:35:41 +0000 (18:35 -0800)]
Issue #26186: Remove an invalid type check in
importlib.util.LazyLoader.
The class was checking its argument as to whether its implementation
of create_module() came directly from importlib.abc.Loader. The
problem is that the classes coming from imoprtlib.machinery do not
directly inherit from the ABC as they come from _frozen_importlib.
Because the documentation has always said that create_module() was
ignored, the check has simply been removed.
Brett Cannon [Sat, 20 Feb 2016 20:52:06 +0000 (12:52 -0800)]
Issue #26367: Have importlib.__init__() raise RuntimeError when
'level' is specified but no __package__.
This brings the function inline with builtins.__import__(). Thanks to
Manuel Jacob for the patch.
Vinay Sajip [Sat, 20 Feb 2016 19:02:46 +0000 (19:02 +0000)]
Added simple threading example to logging cookbook.
Martin Panter [Fri, 19 Feb 2016 23:34:56 +0000 (23:34 +0000)]
Issues #22468, #21996, #22208: Clarify gettarinfo() and TarInfo usage
* The Windows-specific binary notice was probably a Python 2 thing
* Make it more obvious gettarinfo() is based on stat(), and that non-ordinary
files may need special care
* The file name must be text; suggest dummy arcname as a workaround
* Indicate TarInfo may be used directly, not just via gettarinfo()
Georg Brandl [Fri, 19 Feb 2016 07:57:38 +0000 (08:57 +0100)]
Closes #20169: fix inner links random doc.
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
* Remove version 2.6 not relevant for Python 3 documentation
Martin Panter [Fri, 19 Feb 2016 02:16:42 +0000 (02:16 +0000)]
Issue #26309: Rewrite test in main thread and avoid race condition
Berker Peksag [Thu, 18 Feb 2016 15:34:00 +0000 (17:34 +0200)]
Issue #16915: Clarify that mode parameter of socket.makefile() does not accept
the same values as open().
Martin Panter [Thu, 18 Feb 2016 10:43:55 +0000 (10:43 +0000)]
Issue #26309: Shut down socketserver request if verify_request() is false
Patch by Aviv Palivoda.
Benjamin Peterson [Thu, 18 Feb 2016 07:42:46 +0000 (23:42 -0800)]
fix typo (closes #26378)
Benjamin Peterson [Thu, 18 Feb 2016 06:18:20 +0000 (22:18 -0800)]
merge 3.4 (closes #25939)
Ned Deily [Tue, 16 Feb 2016 02:27:04 +0000 (13:27 +1100)]
Issue #26368: fix typo in asynchio stream doc, reported by Ryan Stuart.
Ned Deily [Mon, 15 Feb 2016 05:54:08 +0000 (16:54 +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.
Ned Deily [Mon, 15 Feb 2016 05:44:38 +0000 (16:44 +1100)]
Issue #26268: Update OS X 10.5+ installer build to use OpenSSL 1.0.2f.
Martin Panter [Sun, 14 Feb 2016 03:23:13 +0000 (03:23 +0000)]
Issue #26316: Fix variable name typo in Argument Clinic
Yury Selivanov [Sat, 13 Feb 2016 22:59:05 +0000 (17:59 -0500)]
Issue #25887: Raise a RuntimeError when a coroutine is awaited more than once.
Vinay Sajip [Sat, 13 Feb 2016 16:26:35 +0000 (16:26 +0000)]
Fixes #26348: Corrected typos in activate.fish script.
Serhiy Storchaka [Thu, 11 Feb 2016 11:29:28 +0000 (13:29 +0200)]
Issue #25995: os.walk() no longer uses FDs proportional to the tree depth.
Serhiy Storchaka [Thu, 11 Feb 2016 11:11:44 +0000 (13:11 +0200)]
Issue #26325: Added test.support.check_no_resource_warning() to check that
no ResourceWarning is emitted.
Guido van Rossum [Wed, 10 Feb 2016 17:48:58 +0000 (09:48 -0800)]
Hopefully clarify the difference between Optional[t] and an optional argument.
Serhiy Storchaka [Wed, 10 Feb 2016 08:31:20 +0000 (10:31 +0200)]
Issue #25698: Prevent possible replacing imported module with the empty one
if the stack is too deep.
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.
Martin Panter [Wed, 10 Feb 2016 01:17:51 +0000 (01:17 +0000)]
Issues #26310, #26311: Fix typos in the documentation and code comments
Serhiy Storchaka [Mon, 8 Feb 2016 18:28:03 +0000 (20:28 +0200)]
Issue #25983: Added tests for multi-argument type().
Gregory P. Smith [Mon, 8 Feb 2016 17:58:40 +0000 (09:58 -0800)]
Clarify "cardinality of" as "number of elements in" as many readers do
not have a math vocabulary.
Steve Dower [Mon, 8 Feb 2016 17:24:46 +0000 (09:24 -0800)]
Updates build to use SHA256 hash when signing files.
Serhiy Storchaka [Mon, 8 Feb 2016 15:56:36 +0000 (17:56 +0200)]
Issue #26117: The os.scandir() iterator now closes file descriptor not only
when the iteration is finished, but when it was failed with error.
Serhiy Storchaka [Mon, 8 Feb 2016 14:23:28 +0000 (16:23 +0200)]
Issue #25911: Restored support of bytes paths in os.walk() on Windows.
Martin Panter [Tue, 9 Feb 2016 10:20:52 +0000 (10:20 +0000)]
Issue #26045: Add UTF-8 suggestion to error in http.client
Based on patch by Guido van Rossum.
Serhiy Storchaka [Mon, 8 Feb 2016 07:25:53 +0000 (09:25 +0200)]
Issue #26198: Make datetime error tests more lenient.
Serhiy Storchaka [Sun, 7 Feb 2016 23:06:11 +0000 (01:06 +0200)]
Issue #26198: Fixed error messages for some argument parsing errors.
Fixed the documented about buffer overflow error for "es#" and "et#" format
units.
Martin Panter [Mon, 8 Feb 2016 01:34:09 +0000 (01:34 +0000)]
Issue #25179: Preparatory cleanup of existing docs on string formatting
* Various sections were pointing to the section on the string.Formatter
class, 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; see Issue #19729 for instance
Senthil Kumaran [Sat, 6 Feb 2016 03:37:23 +0000 (19:37 -0800)]
Fix userinfo example presented in urllib2 howto.
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.
Yury Selivanov [Thu, 4 Feb 2016 19:00:26 +0000 (14:00 -0500)]
Issue #25660: Fix a unittest and rlcompleter when readline isn't available
Yury Selivanov [Thu, 4 Feb 2016 06:23:05 +0000 (01:23 -0500)]
Issue #25660: Fix TAB key behaviour in REPL.
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@
Zachary Ware [Tue, 2 Feb 2016 23:04:41 +0000 (17:04 -0600)]
Fix typo.
Reported by Jon Tetlak on docs@
Serhiy Storchaka [Tue, 2 Feb 2016 16:45:17 +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.
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.
Raymond Hettinger [Tue, 2 Feb 2016 05:19:22 +0000 (21:19 -0800)]
Issue #26194: Inserting into a full deque to raise an IndexError
Victor Stinner [Mon, 1 Feb 2016 11:46:38 +0000 (12:46 +0100)]
Fix error message in asyncio.selector_events.
Patch written by Carlo Beccarini <hackdiablo.cb@gmail.com>.