]> granicus.if.org Git - python/log
python
8 years agoSkip unused value in tokenizer code
Christian Heimes [Thu, 8 Sep 2016 22:09:45 +0000 (00:09 +0200)]
Skip unused value in tokenizer code

In the case of an escape character, c is never read. tok_next() is
used to advance the pointer.

CID 1225097

8 years agoCheck return value of PyList_Append() in Py_Main(). CID 1353200
Christian Heimes [Thu, 8 Sep 2016 22:08:35 +0000 (00:08 +0200)]
Check return value of PyList_Append() in Py_Main(). CID 1353200

8 years agoAdd policy keyword to email.generator.DecodedGenerator.
R David Murray [Thu, 8 Sep 2016 21:57:06 +0000 (17:57 -0400)]
Add policy keyword to email.generator.DecodedGenerator.

8 years agoMerge
Raymond Hettinger [Thu, 8 Sep 2016 21:45:40 +0000 (14:45 -0700)]
Merge

8 years agoMore lenient skipping of console tests.
Steve Dower [Thu, 8 Sep 2016 21:36:18 +0000 (14:36 -0700)]
More lenient skipping of console tests.

8 years agoSkips console open_fd tests when we don't have real consoles.
Steve Dower [Thu, 8 Sep 2016 21:34:24 +0000 (14:34 -0700)]
Skips console open_fd tests when we don't have real consoles.

8 years ago[merge from 3.5] - Issue28010 - Make http.client.HTTPConnection.putrequest
Senthil Kumaran [Thu, 8 Sep 2016 21:29:23 +0000 (14:29 -0700)]
[merge from 3.5] - Issue28010 - Make http.client.HTTPConnection.putrequest
                   documentation consistent with the code.

8 years agoIssue28010 - Make http.client.HTTPConnection.putrequest documentation consistent...
Senthil Kumaran [Thu, 8 Sep 2016 21:28:01 +0000 (14:28 -0700)]
Issue28010 - Make http.client.HTTPConnection.putrequest documentation consistent with the code.

8 years agoIssue #21201: Improves readability of multiprocessing error message from server to...
Davin Potts [Thu, 8 Sep 2016 19:40:36 +0000 (14:40 -0500)]
Issue #21201: Improves readability of multiprocessing error message from server to client for certain exceptions

8 years agodocument --with-optimizations in the README for issue26359.
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) [Thu, 8 Sep 2016 18:33:00 +0000 (18:33 +0000)]
document --with-optimizations in the README for issue26359.

8 years agoIssue #27445: Don't pass str(_charset) to MIMEText.set_payload()
Berker Peksag [Thu, 8 Sep 2016 16:40:30 +0000 (19:40 +0300)]
Issue #27445: Don't pass str(_charset) to MIMEText.set_payload()

Patch by Claude Paroz.

8 years agoIssue11551 - Increase the test coverage of _dummy_thread module to 100%.
Senthil Kumaran [Thu, 8 Sep 2016 09:46:22 +0000 (02:46 -0700)]
Issue11551 - Increase the test coverage of _dummy_thread module to 100%.

Initial patch contributed by Denver Coneybeare.

8 years agoMove my news entries to the build section.
Gregory P. Smith [Thu, 8 Sep 2016 07:14:01 +0000 (00:14 -0700)]
Move my news entries to the build section.

8 years agoFix indentation (reindent.py).
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) [Thu, 8 Sep 2016 00:48:07 +0000 (00:48 +0000)]
Fix indentation (reindent.py).

8 years agolib2to3.pgen3.driver.load_grammar() now creates a stable cache file
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) [Thu, 8 Sep 2016 00:40:07 +0000 (00:40 +0000)]
lib2to3.pgen3.driver.load_grammar() now creates a stable cache file
between runs given the same Grammar.txt input regardless of the hash
randomization setting.

8 years agoFixes #27930: improved QueueListener behaviour.
Vinay Sajip [Thu, 8 Sep 2016 00:13:39 +0000 (01:13 +0100)]
Fixes #27930: improved QueueListener behaviour.

8 years agoIssue #27993: Fix problems with plural objects in docs and comments
Martin Panter [Wed, 7 Sep 2016 11:04:41 +0000 (11:04 +0000)]
Issue #27993: Fix problems with plural objects in docs and comments

8 years agoIssue #27895: Spelling fixes (Contributed by Ville Skyttä).
Martin Panter [Wed, 7 Sep 2016 12:03:06 +0000 (12:03 +0000)]
Issue #27895:  Spelling fixes (Contributed by Ville Skyttä).

8 years agoIssue #27570: Avoid zero-length memcpy() calls with null source pointers
Martin Panter [Wed, 7 Sep 2016 11:04:41 +0000 (11:04 +0000)]
Issue #27570: Avoid zero-length memcpy() calls with null source pointers

8 years agoFixes issue# 27983: Cause lack of llvm-profdata tool when using clang -
Gregory P. Smith [Wed, 7 Sep 2016 23:10:00 +0000 (16:10 -0700)]
Fixes issue# 27983: Cause lack of llvm-profdata tool when using clang -
required for PGO linking - to be a configure time error rather than
make time when --with-optimizations is enabled.  Also improve our
ability to find the llvm-profdata tool on MacOS and some Linuxes.

8 years ago#22233: Only split headers on \r and/or \n, per email RFCs.
R David Murray [Wed, 7 Sep 2016 21:44:34 +0000 (17:44 -0400)]
#22233: Only split headers on \r and/or \n, per email RFCs.

Original patch by Martin Panter, new policy fixes by me.

8 years ago#26209: Clarify type of *localaddr*/*remoteadr* in smtpd docs.
R David Murray [Wed, 7 Sep 2016 18:01:23 +0000 (14:01 -0400)]
#26209: Clarify type of *localaddr*/*remoteadr* in smtpd docs.

8 years ago27988: Make sure iter_attachments does not mutate the payload list.
R David Murray [Wed, 7 Sep 2016 17:39:36 +0000 (13:39 -0400)]
27988: Make sure iter_attachments does not mutate the payload list.

8 years agocapture stderr to silence output during test_coroutines (closes #27968)
Benjamin Peterson [Wed, 7 Sep 2016 16:00:48 +0000 (09:00 -0700)]
capture stderr to silence output during test_coroutines (closes #27968)

8 years agosupress coroutine warning when an exception is pending (#27968)
Benjamin Peterson [Wed, 7 Sep 2016 15:46:59 +0000 (08:46 -0700)]
supress coroutine warning when an exception is pending (#27968)

8 years ago[backport to 3.5] - issue26896 - Disambiguate uses of "importer" with "finder".
Senthil Kumaran [Wed, 7 Sep 2016 07:52:20 +0000 (00:52 -0700)]
[backport to 3.5] - issue26896 - Disambiguate uses of "importer" with "finder".

8 years agoIssue #27905: Docs for typing.Type[C], by Michael Lee.
Guido van Rossum [Wed, 7 Sep 2016 04:12:44 +0000 (21:12 -0700)]
Issue #27905: Docs for typing.Type[C], by Michael Lee.

8 years agopromote some shifts to unsigned, so as not to invoke undefined behavior
Benjamin Peterson [Wed, 7 Sep 2016 03:40:04 +0000 (20:40 -0700)]
promote some shifts to unsigned, so as not to invoke undefined behavior

8 years agodo not memcpy from NULL
Benjamin Peterson [Wed, 7 Sep 2016 02:03:40 +0000 (19:03 -0700)]
do not memcpy from NULL

8 years agoUse shorter version of Connection.isolation_level in sqlite3.rst
Berker Peksag [Wed, 7 Sep 2016 01:02:41 +0000 (04:02 +0300)]
Use shorter version of Connection.isolation_level in sqlite3.rst

8 years agomake sure to not call memcpy with a NULL second argument
Benjamin Peterson [Wed, 7 Sep 2016 00:58:25 +0000 (17:58 -0700)]
make sure to not call memcpy with a NULL second argument

8 years agoIssue #26359: Add the --with-optimizations flag.
Brett Cannon [Wed, 7 Sep 2016 00:15:21 +0000 (17:15 -0700)]
Issue #26359: Add the --with-optimizations flag.

8 years agoFixes issue26307: The profile-opt build now applys PGO to the built-in
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) [Tue, 6 Sep 2016 23:56:54 +0000 (23:56 +0000)]
Fixes issue26307: The profile-opt build now applys PGO to the built-in
modules.

8 years agoIssue #21250: Add tests for SQLite's ON CONFLICT clause
Berker Peksag [Tue, 6 Sep 2016 23:04:34 +0000 (02:04 +0300)]
Issue #21250: Add tests for SQLite's ON CONFLICT clause

Initial patch by Alex LordThorsen.

8 years agodo not leak addrinfo in configure test
Benjamin Peterson [Tue, 6 Sep 2016 22:54:24 +0000 (15:54 -0700)]
do not leak addrinfo in configure test

8 years agoIssue #27691: Fix ssl module's parsing of GEN_RID subject alternative name fields...
Christian Heimes [Tue, 6 Sep 2016 21:25:35 +0000 (23:25 +0200)]
Issue #27691: Fix ssl module's parsing of GEN_RID subject alternative name fields in X.509 certs.

8 years agoIssues #27850 and #27766: Remove 3DES from ssl default cipher list and add ChaCha20...
Christian Heimes [Tue, 6 Sep 2016 18:06:47 +0000 (20:06 +0200)]
Issues #27850 and #27766: Remove 3DES from ssl default cipher list and add ChaCha20 Poly1305.

8 years agosuppress stderr output when checking gdb (closes #27969)
Benjamin Peterson [Tue, 6 Sep 2016 17:06:31 +0000 (10:06 -0700)]
suppress stderr output when checking gdb (closes #27969)

8 years agoIssue #27960: Merge with 3.4
Jason R. Coombs [Tue, 6 Sep 2016 02:26:19 +0000 (22:26 -0400)]
Issue #27960: Merge with 3.4

8 years agoIssue #27960: Revert state to 675e20c38fdac6, backing out all changes by developed...
Jason R. Coombs [Tue, 6 Sep 2016 02:24:01 +0000 (22:24 -0400)]
Issue #27960: Revert state to 675e20c38fdac6, backing out all changes by developed for Issue #12885.

8 years agoexplicitly cast away constness to silence compiler warning
Benjamin Peterson [Tue, 6 Sep 2016 01:26:19 +0000 (18:26 -0700)]
explicitly cast away constness to silence compiler warning

8 years agoBacked out changeset 8b6be1341770
Benjamin Peterson [Tue, 6 Sep 2016 00:22:09 +0000 (17:22 -0700)]
Backed out changeset 8b6be1341770

8 years agoUpdate pkgutil docs to reference appropriate finder and loader object documentation.
Senthil Kumaran [Tue, 6 Sep 2016 00:11:51 +0000 (17:11 -0700)]
Update pkgutil docs to reference appropriate finder and loader object documentation.

Initial patch contributed by Jaysinh shukla.

8 years agoremove long double from ctypes value union
Benjamin Peterson [Mon, 5 Sep 2016 23:24:52 +0000 (16:24 -0700)]
remove long double from ctypes value union

It is unused. It also forces a 16-byte alignment, which creates problems because
Python's allocator only uses 8-byte alignment.

8 years agoIssue #26470: Use short name rather than name for compression name to fix #27958.
Christian Heimes [Mon, 5 Sep 2016 23:10:39 +0000 (01:10 +0200)]
Issue #26470: Use short name rather than name for compression name to fix #27958.

8 years agoIssue #27748: Backed out changeset f845e24d794e
Zachary Ware [Mon, 5 Sep 2016 23:08:27 +0000 (18:08 -0500)]
Issue #27748: Backed out changeset f845e24d794e

Apparently the test succeeds on XP.

8 years agodo not pretend to support passing a fd to access()
Benjamin Peterson [Mon, 5 Sep 2016 22:29:33 +0000 (15:29 -0700)]
do not pretend to support passing a fd to access()

8 years agoIssue #27748: strengthen test_alias_nofallback
Zachary Ware [Mon, 5 Sep 2016 22:19:35 +0000 (17:19 -0500)]
Issue #27748: strengthen test_alias_nofallback

This test should always raise RuntimeError.

8 years agoIssue #26470: Port ssl and hashlib module to OpenSSL 1.1.0.
Christian Heimes [Mon, 5 Sep 2016 21:19:05 +0000 (23:19 +0200)]
Issue #26470: Port ssl and hashlib module to OpenSSL 1.1.0.

8 years agoIssue #27748: Simplify test_winsound.
Zachary Ware [Mon, 5 Sep 2016 21:06:56 +0000 (16:06 -0500)]
Issue #27748: Simplify test_winsound.

The tests no longer attempt to figure out if a soundcard or particular
system sounds are available.  Instead, it just tries everything and
accepts RuntimeError as a flavor of success.

8 years agoremove ungrammarical apostrophe (closes #27957)
Benjamin Peterson [Mon, 5 Sep 2016 21:02:59 +0000 (14:02 -0700)]
remove ungrammarical apostrophe (closes #27957)

8 years agoImprove recipe by showing results of intermediate steps
Raymond Hettinger [Mon, 5 Sep 2016 20:15:02 +0000 (13:15 -0700)]
Improve recipe by showing results of intermediate steps

8 years agoIssue #27407: Make PCbuild/prepare_ssl.py Python 2 compatible
Zachary Ware [Mon, 5 Sep 2016 17:54:08 +0000 (12:54 -0500)]
Issue #27407: Make PCbuild/prepare_ssl.py Python 2 compatible

8 years agoclear out f_gen during generator finalization (closes #27812)
Benjamin Peterson [Mon, 5 Sep 2016 17:39:57 +0000 (10:39 -0700)]
clear out f_gen during generator finalization (closes #27812)

Patch from Armin Rigo.

8 years agomerge heads
Benjamin Peterson [Mon, 5 Sep 2016 17:17:22 +0000 (10:17 -0700)]
merge heads

8 years agodo not allow _PyGen_Finalize to fail (closes #27811)
Benjamin Peterson [Mon, 5 Sep 2016 17:14:54 +0000 (10:14 -0700)]
do not allow _PyGen_Finalize to fail (closes #27811)

Patch from Armin Rigo.

8 years agoMinor improvements to the vcs ignore files
Steve Dower [Mon, 5 Sep 2016 17:12:03 +0000 (10:12 -0700)]
Minor improvements to the vcs ignore files

8 years agoIssue #27918# test.resource.is_gui_available no longer flashes tk window.
Terry Jan Reedy [Mon, 5 Sep 2016 04:01:34 +0000 (00:01 -0400)]
Issue #27918# test.resource.is_gui_available no longer flashes tk window.
Also, don't run it if 'gui' is not requested.  Patch by Xiang Zhang.

8 years agoIssue 27936: Update doc for round() to indicate that None is an allowable argument.
Raymond Hettinger [Sun, 4 Sep 2016 18:28:56 +0000 (11:28 -0700)]
Issue 27936: Update doc for round() to indicate that None is an allowable argument.

8 years agoImprove docs for random.seed()
Raymond Hettinger [Sun, 4 Sep 2016 18:17:28 +0000 (11:17 -0700)]
Improve docs for random.seed()

8 years agoFixes #27937: optimise code used in all logging calls.
Vinay Sajip [Sat, 3 Sep 2016 15:50:09 +0000 (16:50 +0100)]
Fixes #27937: optimise code used in all logging calls.

8 years agoIssue 27936: Fix inconsistent round() behavior between float and int
Raymond Hettinger [Sat, 3 Sep 2016 08:55:11 +0000 (01:55 -0700)]
Issue 27936: Fix inconsistent round() behavior between float and int

8 years agoIssue #12885: Merge with 3.4, retaining commits reverted there.
Jason R. Coombs [Fri, 2 Sep 2016 03:29:04 +0000 (23:29 -0400)]
Issue #12885: Merge with 3.4, retaining commits reverted there.

8 years agoIssue #12885: Revert commits in 3.4 branch which is security-only fixes.
Jason R. Coombs [Fri, 2 Sep 2016 03:27:45 +0000 (23:27 -0400)]
Issue #12885: Revert commits in 3.4 branch which is security-only fixes.

8 years agoIssue #12885: Merge 3.4
Jason R. Coombs [Fri, 2 Sep 2016 02:09:06 +0000 (22:09 -0400)]
Issue #12885: Merge 3.4

8 years agoIssue #12885: Correct issue reference in NEWS
Jason R. Coombs [Fri, 2 Sep 2016 02:08:25 +0000 (22:08 -0400)]
Issue #12885: Correct issue reference in NEWS

8 years agoMerge backout for test suite fix
Jason R. Coombs [Fri, 2 Sep 2016 01:59:46 +0000 (21:59 -0400)]
Merge backout for test suite fix

8 years agoBacked out changeset cc86e9e102e8
Jason R. Coombs [Fri, 2 Sep 2016 01:55:22 +0000 (21:55 -0400)]
Backed out changeset cc86e9e102e8

8 years agoIssue #12285: Merge with 3.4
Jason R. Coombs [Fri, 2 Sep 2016 01:15:04 +0000 (21:15 -0400)]
Issue #12285: Merge with 3.4

8 years agoIssue #12285: Update NEWS
Jason R. Coombs [Fri, 2 Sep 2016 01:12:17 +0000 (21:12 -0400)]
Issue #12285: Update NEWS

8 years agoIssue #27881: Fixed possible bugs when setting sqlite3.Connection.isolation_level.
Serhiy Storchaka [Thu, 1 Sep 2016 19:18:03 +0000 (22:18 +0300)]
Issue #27881: Fixed possible bugs when setting sqlite3.Connection.isolation_level.
Based on patch by Xiang Zhang.

8 years agoIssue #27922: IDLE tests no longer flash tk widgets.
Terry Jan Reedy [Thu, 1 Sep 2016 01:03:16 +0000 (21:03 -0400)]
Issue #27922: IDLE tests no longer flash tk widgets.

8 years agoIssue #27706: Fix regression in random.seed(somestr, version=1)
Raymond Hettinger [Wed, 31 Aug 2016 22:01:08 +0000 (15:01 -0700)]
Issue #27706: Fix regression in random.seed(somestr, version=1)

8 years agoFix ordering issues in UNIX read/write pipe transport constructors.
Guido van Rossum [Wed, 31 Aug 2016 16:42:38 +0000 (09:42 -0700)]
Fix ordering issues in UNIX read/write pipe transport constructors.

Upstream https://github.com/python/asyncio/pull/408 by Ron Frederick.

8 years agoDon't select for read on character devices in _UnixWritePipeTransport.
Guido van Rossum [Wed, 31 Aug 2016 16:40:18 +0000 (09:40 -0700)]
Don't select for read on character devices in _UnixWritePipeTransport.

Upstream https://github.com/python/asyncio/pull/374 by Ron Frederick.

8 years agoIssue #27907: variable rename. (Ville Skyttä)
Guido van Rossum [Wed, 31 Aug 2016 16:08:41 +0000 (09:08 -0700)]
Issue #27907: variable rename. (Ville Skyttä)

8 years agoIssue #27909: Fix INCREF for possible NULL value
Raymond Hettinger [Wed, 31 Aug 2016 15:44:11 +0000 (08:44 -0700)]
Issue #27909: Fix INCREF for possible NULL value

8 years agoIssue #1602: Windows console doesn't input or print Unicode (PEP 528)
Steve Dower [Wed, 31 Aug 2016 04:22:36 +0000 (21:22 -0700)]
Issue #1602: Windows console doesn't input or print Unicode (PEP 528)
Closes #17602: Adds a readline implementation for the Windows console

8 years agoIssue #28030: Update the language reference for PEP 468.
Eric Snow [Thu, 8 Sep 2016 20:59:58 +0000 (13:59 -0700)]
Issue #28030: Update the language reference for PEP 468.

8 years agoRemove legacy "from __future__ import with_statement" lines.
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) [Thu, 8 Sep 2016 20:47:41 +0000 (13:47 -0700)]
Remove legacy "from __future__ import with_statement" lines.

8 years agoAdd missing versionadded directive
Berker Peksag [Thu, 8 Sep 2016 20:36:25 +0000 (23:36 +0300)]
Add missing versionadded directive

8 years agoindicate the dependence of odict and dictobject on dict-common.h
Benjamin Peterson [Thu, 8 Sep 2016 20:19:14 +0000 (13:19 -0700)]
indicate the dependence of odict and dictobject on dict-common.h

8 years agodo not worry about 64-bit dict sizes on 32-bit platforms
Benjamin Peterson [Thu, 8 Sep 2016 20:16:41 +0000 (13:16 -0700)]
do not worry about 64-bit dict sizes on 32-bit platforms

8 years agoAdd a new private version to the builtin dict type
Victor Stinner [Thu, 8 Sep 2016 19:51:24 +0000 (12:51 -0700)]
Add a new private version to the builtin dict type

Issue #26058: Add a new private version to the builtin dict type, incremented
at each dictionary creation and at each dictionary change.

Implementation of the PEP 509.

8 years agoIssue #21201: Improves readability of multiprocessing error message from server to...
Davin Potts [Thu, 8 Sep 2016 19:47:23 +0000 (14:47 -0500)]
Issue #21201: Improves readability of multiprocessing error message from server to client for certain exceptions

8 years ago#27364: Deprecate invalid escape strings in str/byutes.
R David Murray [Thu, 8 Sep 2016 19:34:08 +0000 (15:34 -0400)]
#27364: Deprecate invalid escape strings in str/byutes.

Patch by Emanuel Barry, reviewed by Serhiy Storchaka and Martin Panter.

8 years agoaccess dk_indices through a union
Benjamin Peterson [Thu, 8 Sep 2016 19:20:12 +0000 (12:20 -0700)]
access dk_indices through a union

8 years agoAdd documentation to the dict implementation
Victor Stinner [Thu, 8 Sep 2016 19:01:25 +0000 (12:01 -0700)]
Add documentation to the dict implementation

Issue #27350.

8 years agoReindeint DK_xxx macros
Victor Stinner [Thu, 8 Sep 2016 18:37:36 +0000 (11:37 -0700)]
Reindeint DK_xxx macros

Issue #27350.

8 years agodk_get_index/dk_set_index uses a type indices variable
Victor Stinner [Thu, 8 Sep 2016 18:35:46 +0000 (11:35 -0700)]
dk_get_index/dk_set_index uses a type indices variable

Issue #27350.

8 years agomake some peps high level sections
Benjamin Peterson [Thu, 8 Sep 2016 18:58:40 +0000 (11:58 -0700)]
make some peps high level sections

8 years agouse static inline instead of Py_LOCAL_INLINE
Benjamin Peterson [Thu, 8 Sep 2016 18:56:06 +0000 (11:56 -0700)]
use static inline instead of Py_LOCAL_INLINE

8 years agoIssue #27350: Add credits
Raymond Hettinger [Thu, 8 Sep 2016 18:55:38 +0000 (11:55 -0700)]
Issue #27350: Add credits

8 years agomerge heads
Benjamin Peterson [Thu, 8 Sep 2016 18:44:26 +0000 (11:44 -0700)]
merge heads

8 years agoIssue #28027: Mention the names of the removed modules in Misc/NEWS
Zachary Ware [Thu, 8 Sep 2016 18:43:09 +0000 (11:43 -0700)]
Issue #28027: Mention the names of the removed modules in Misc/NEWS

8 years agoIssue #28027: Remove Lib/plat-* files
Zachary Ware [Thu, 8 Sep 2016 18:38:46 +0000 (11:38 -0700)]
Issue #28027: Remove Lib/plat-* files

8 years agosimplify Py_UCSN definitions with stdint types
Benjamin Peterson [Thu, 8 Sep 2016 18:38:28 +0000 (11:38 -0700)]
simplify Py_UCSN definitions with stdint types

8 years agodocument --with-optimizations in the README for issue26359.
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) [Thu, 8 Sep 2016 18:33:45 +0000 (18:33 +0000)]
document --with-optimizations in the README for issue26359.

8 years agouse Py_MAX
Benjamin Peterson [Thu, 8 Sep 2016 18:28:06 +0000 (11:28 -0700)]
use Py_MAX

8 years agoIssue #23524: Finish removing _PyVerify_fd from sources
Steve Dower [Thu, 8 Sep 2016 18:21:54 +0000 (11:21 -0700)]
Issue #23524: Finish removing _PyVerify_fd from sources