]> granicus.if.org Git - python/log
python
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 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 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 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 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

8 years agoSplit lookdict_unicode_nodummy() assertion to debug
Victor Stinner [Thu, 8 Sep 2016 18:16:07 +0000 (11:16 -0700)]
Split lookdict_unicode_nodummy() assertion to debug

Issue #27350.

8 years agoIssue #28026: Raise ImportError when exec_module() exists but create_module() is...
Eric Snow [Thu, 8 Sep 2016 18:12:31 +0000 (11:12 -0700)]
Issue #28026: Raise ImportError when exec_module() exists but create_module() is missing.

8 years agoFixes tests broken by issue #27781.
Steve Dower [Thu, 8 Sep 2016 18:11:13 +0000 (11:11 -0700)]
Fixes tests broken by issue #27781.

8 years agofix spelling
Benjamin Peterson [Thu, 8 Sep 2016 18:08:30 +0000 (11:08 -0700)]
fix spelling

8 years agofix pep role
Benjamin Peterson [Thu, 8 Sep 2016 18:03:55 +0000 (11:03 -0700)]
fix pep role

8 years agoAdd assertions to dk_set_index()
Victor Stinner [Thu, 8 Sep 2016 17:52:46 +0000 (10:52 -0700)]
Add assertions to dk_set_index()

Issue #27350.

8 years ago#27364: fix "incorrect" uses of escape character in the stdlib.
R David Murray [Thu, 8 Sep 2016 17:59:53 +0000 (13:59 -0400)]
#27364: fix "incorrect" uses of escape character in the stdlib.

And most of the tools.

Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and
Martin Panter.

8 years agoFix mismatched if blocks in posixmodule.c.
Steve Dower [Thu, 8 Sep 2016 17:41:50 +0000 (10:41 -0700)]
Fix mismatched if blocks in posixmodule.c.

8 years agoIssue #27781: Change file system encoding on Windows to UTF-8 (PEP 529)
Steve Dower [Thu, 8 Sep 2016 17:35:16 +0000 (10:35 -0700)]
Issue #27781: Change file system encoding on Windows to UTF-8 (PEP 529)

8 years agoadd a note about c99
Benjamin Peterson [Thu, 8 Sep 2016 17:27:20 +0000 (10:27 -0700)]
add a note about c99

8 years agolink to canonical blogspot
Benjamin Peterson [Thu, 8 Sep 2016 17:14:31 +0000 (10:14 -0700)]
link to canonical blogspot

8 years agoimprove compact dict changelog
Benjamin Peterson [Thu, 8 Sep 2016 17:13:42 +0000 (10:13 -0700)]
improve compact dict changelog

8 years agoIssue #27853: Add section headers to the importlib example docs
Brett Cannon [Thu, 8 Sep 2016 17:12:47 +0000 (10:12 -0700)]
Issue #27853: Add section headers to the importlib example docs

8 years agouse native inline instead of Py_LOCAL_INLINE
Benjamin Peterson [Thu, 8 Sep 2016 16:58:47 +0000 (09:58 -0700)]
use native inline instead of Py_LOCAL_INLINE

8 years agorearrange to make gcc happy
Benjamin Peterson [Thu, 8 Sep 2016 16:50:08 +0000 (09:50 -0700)]
rearrange to make gcc happy

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 agoAdd Py_MEMBER_SIZE macro
Victor Stinner [Thu, 8 Sep 2016 16:33:56 +0000 (09:33 -0700)]
Add Py_MEMBER_SIZE macro

Issue #27350: use Py_MEMBER_SIZE() macro to get the size of
PyDictKeyEntry.dk_indices, rather than hardcoding 8.

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 agoImplement compact dict
Victor Stinner [Thu, 8 Sep 2016 00:40:12 +0000 (17:40 -0700)]
Implement compact dict

Issue #27350: `dict` implementation is changed like PyPy. It is more compact
and preserves insertion order.

_PyDict_Dummy() function has been removed.

Disable test_gdb: python-gdb.py is not updated yet to the new structure of
compact dictionaries (issue #28023).

Patch written by INADA Naoki.

8 years agoIssue #27445: Merge from 3.5
Berker Peksag [Thu, 8 Sep 2016 16:42:11 +0000 (19:42 +0300)]
Issue #27445: Merge from 3.5

8 years agoclinic: PY_LONG_LONG -> long long
Benjamin Peterson [Thu, 8 Sep 2016 16:29:11 +0000 (09:29 -0700)]
clinic: PY_LONG_LONG -> long long

8 years agofix a PY_LONG_LONG straggler
Benjamin Peterson [Thu, 8 Sep 2016 16:25:03 +0000 (09:25 -0700)]
fix a PY_LONG_LONG straggler

8 years agoAdds MAX_PATH button to the installer.
Steve Dower [Thu, 8 Sep 2016 16:26:42 +0000 (09:26 -0700)]
Adds MAX_PATH button to the installer.

8 years agomore PY_LONG_LONG to long long
Benjamin Peterson [Thu, 8 Sep 2016 16:15:54 +0000 (09:15 -0700)]
more PY_LONG_LONG to long long

8 years agosha3: let's keep it simple and always allocate enough extra space for uint64_t[20].
Christian Heimes [Thu, 8 Sep 2016 13:04:38 +0000 (15:04 +0200)]
sha3: let's keep it simple and always allocate enough extra space for uint64_t[20].

8 years agoRemove old typo.
Serhiy Storchaka [Thu, 8 Sep 2016 12:47:27 +0000 (15:47 +0300)]
Remove old typo.

Initially (e0b7e34b5971) it should be \udef0, but after 52a77ef069cd
(issue #3672) lone surrogates are not accepted and should be removed.

8 years agoIssue #26798: Coverity complains about potential memcpy() of overlapped regions....
Christian Heimes [Thu, 8 Sep 2016 11:40:25 +0000 (13:40 +0200)]
Issue #26798: Coverity complains about potential memcpy() of overlapped regions. It doesn't hurt to use memmove() here. CID 1372514 / CID 1372515. Upstream https://github.com/BLAKE2/BLAKE2/issues/32

8 years agoIssue #16113: SHA3: allocate extra memory for lane extraction and check return value...
Christian Heimes [Thu, 8 Sep 2016 11:35:00 +0000 (13:35 +0200)]
Issue #16113: SHA3: allocate extra memory for lane extraction and check return value of PyModule_Create()

8 years ago[merge from 3.5] Issue11551 - Increase the test coverage of _dummy_thread module...
Senthil Kumaran [Thu, 8 Sep 2016 09:47:52 +0000 (02:47 -0700)]
[merge from 3.5] Issue11551 - Increase the test coverage of _dummy_thread module to 100%.

Initial patch contributed by Denver Coneybeare.

8 years agoIssue 28017: Use -std=gnu99 to get C99 with GNU extensions for bluetooth.h on big...
Christian Heimes [Thu, 8 Sep 2016 09:39:42 +0000 (11:39 +0200)]
Issue 28017: Use -std=gnu99 to get C99 with GNU extensions for bluetooth.h on big endian.

8 years agoIssue 26798: fetch OSError and HTTPException like other tests that use open_urlresource.
Christian Heimes [Thu, 8 Sep 2016 08:53:40 +0000 (10:53 +0200)]
Issue 26798: fetch OSError and HTTPException like other tests that use open_urlresource.

8 years agoRemove the subjective security and performance claims, fix hyperlinks
Gregory P. Smith [Thu, 8 Sep 2016 08:33:43 +0000 (01:33 -0700)]
Remove the subjective security and performance claims, fix hyperlinks
to use https and add a link to RFC-7693.

8 years agomove my news entries to the build section as appropriate.
Gregory P. Smith [Thu, 8 Sep 2016 07:15:20 +0000 (00:15 -0700)]
move my news entries to the build section as appropriate.

8 years agoimprove Enum docs
Ethan Furman [Thu, 8 Sep 2016 06:40:31 +0000 (23:40 -0700)]
improve Enum docs

8 years agoIssue #15352: Rebuild frozen modules when marshal.c is changed.
Eric Snow [Thu, 8 Sep 2016 01:48:06 +0000 (18:48 -0700)]
Issue #15352: Rebuild frozen modules when marshal.c is changed.

8 years ago#24277: Fix some incorrect backslashes in email example.
R David Murray [Thu, 8 Sep 2016 01:48:21 +0000 (21:48 -0400)]
#24277: Fix some incorrect backslashes in email example.

8 years ago#24277: Fix 3.4 whats new link broken by email doc changes.
R David Murray [Thu, 8 Sep 2016 01:39:40 +0000 (21:39 -0400)]
#24277: Fix 3.4 whats new link broken by email doc changes.

8 years agoIssue #26667: Add path-like object support to importlib.util.
Brett Cannon [Thu, 8 Sep 2016 01:39:18 +0000 (18:39 -0700)]
Issue #26667: Add path-like object support to importlib.util.

8 years agoIssue #17211: Yield a namedtuple in pkgutil.
Eric Snow [Thu, 8 Sep 2016 01:37:17 +0000 (18:37 -0700)]
Issue #17211: Yield a namedtuple in pkgutil.

Patch by Ramchandra Apte.

8 years ago#24277: What's New and news entries for previous commit.
R David Murray [Thu, 8 Sep 2016 01:21:58 +0000 (21:21 -0400)]
#24277: What's New and news entries for previous commit.

8 years ago#24277: The new email API is no longer provisional.
R David Murray [Thu, 8 Sep 2016 01:15:59 +0000 (21:15 -0400)]
#24277: The new email API is no longer provisional.

This is a wholesale reorganization and editing of the email documentation to
make the new API the standard one, and the old API the 'legacy' one.  The
default is still the compat32 policy, for backward compatibility.  We will
change that eventually.

8 years agofix reST
Benjamin Peterson [Thu, 8 Sep 2016 01:10:50 +0000 (18:10 -0700)]
fix reST

8 years agomake sure expected values are interpreted as doubles
Benjamin Peterson [Thu, 8 Sep 2016 01:09:22 +0000 (18:09 -0700)]
make sure expected values are interpreted as doubles

8 years agoUpdated Misc/NEWS
Davin Potts [Thu, 8 Sep 2016 01:00:33 +0000 (20:00 -0500)]
Updated Misc/NEWS

8 years agoFix expected error message in PyTextIOWrapperTest
Steve Dower [Thu, 8 Sep 2016 00:51:30 +0000 (17:51 -0700)]
Fix expected error message in PyTextIOWrapperTest

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

8 years agomerge heads
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) [Thu, 8 Sep 2016 00:46:58 +0000 (00:46 +0000)]
merge heads

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:46:26 +0000 (00:46 +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 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 agoAdded back test code lost during merge.
Vinay Sajip [Thu, 8 Sep 2016 00:37:03 +0000 (01:37 +0100)]
Added back test code lost during merge.

8 years agoIssue #28005: Allow ImportErrors in encoding implementation to propagate.
Steve Dower [Thu, 8 Sep 2016 00:27:33 +0000 (17:27 -0700)]
Issue #28005: Allow ImportErrors in encoding implementation to propagate.

8 years agoNull merge.
Vinay Sajip [Thu, 8 Sep 2016 00:25:04 +0000 (01:25 +0100)]
Null merge.

8 years agoCloses #27930: Merged fix from 3.5.
Vinay Sajip [Thu, 8 Sep 2016 00:24:12 +0000 (01:24 +0100)]
Closes #27930: Merged fix from 3.5.

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 agoFixes #27930: improved QueueListener behaviour.
Vinay Sajip [Thu, 8 Sep 2016 00:00:54 +0000 (01:00 +0100)]
Fixes #27930: improved QueueListener behaviour.

8 years agoIssue #27911: Remove some unnecessary error checks in import.c.
Brett Cannon [Thu, 8 Sep 2016 00:00:43 +0000 (17:00 -0700)]
Issue #27911: Remove some unnecessary error checks in import.c.

Thanks to Xiang Zhang for the patch.

8 years agoIssue #15767: Use ModuleNotFoundError.
Eric Snow [Wed, 7 Sep 2016 23:56:15 +0000 (16:56 -0700)]
Issue #15767: Use ModuleNotFoundError.

8 years agoIssue #15767: Add ModuleNotFoundError.
Eric Snow [Wed, 7 Sep 2016 22:42:32 +0000 (15:42 -0700)]
Issue #15767: Add ModuleNotFoundError.

8 years agoFixes issue #6766: Updated multiprocessing Proxy Objects to support nesting
Davin Potts [Wed, 7 Sep 2016 23:48:01 +0000 (18:48 -0500)]
Fixes issue #6766: Updated multiprocessing Proxy Objects to support nesting

8 years agoIssue #27993: Merge plural fixes from 3.5
Martin Panter [Wed, 7 Sep 2016 23:36:43 +0000 (23:36 +0000)]
Issue #27993: Merge plural fixes from 3.5

8 years agoIssue #27570: Merge null pointer fixes from 3.5
Martin Panter [Wed, 7 Sep 2016 23:31:39 +0000 (23:31 +0000)]
Issue #27570: Merge null pointer fixes from 3.5

8 years agoFixes Issue #27983: Cause lack of llvm-profdata tool when using clang as
Gregory P. Smith [Wed, 7 Sep 2016 23:11:08 +0000 (16:11 -0700)]
Fixes Issue #27983: Cause lack of llvm-profdata tool when using clang as
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 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 agoreplace some Py_LOCAL_INLINE with the inline keyword
Benjamin Peterson [Wed, 7 Sep 2016 22:33:32 +0000 (15:33 -0700)]
replace some Py_LOCAL_INLINE with the inline keyword

8 years agofix expected layout of code objects
Benjamin Peterson [Wed, 7 Sep 2016 21:56:15 +0000 (14:56 -0700)]
fix expected layout of code objects

8 years agomore linux -> __linux__
Benjamin Peterson [Wed, 7 Sep 2016 21:45:10 +0000 (14:45 -0700)]
more linux -> __linux__

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

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 agoMake PyCodeObject.co_extra even more private to force users through the proper API.
Brett Cannon [Wed, 7 Sep 2016 21:30:39 +0000 (14:30 -0700)]
Make PyCodeObject.co_extra even more private to force users through the proper API.

8 years agouse c++ style comments
Benjamin Peterson [Wed, 7 Sep 2016 21:12:36 +0000 (14:12 -0700)]
use c++ style comments

8 years agouse the '__linux__' instead 'linux' preprocessor define
Benjamin Peterson [Wed, 7 Sep 2016 21:08:34 +0000 (14:08 -0700)]
use the '__linux__' instead 'linux' preprocessor define

8 years agoEliminate a tautological-pointer-compare warning found by Clang.
Brett Cannon [Wed, 7 Sep 2016 21:07:16 +0000 (14:07 -0700)]
Eliminate a tautological-pointer-compare warning found by Clang.

8 years ago#27331: add policy keyword argument to all MIME subclasses.
R David Murray [Wed, 7 Sep 2016 20:48:35 +0000 (16:48 -0400)]
#27331: add policy keyword argument to all MIME subclasses.

Patch by Berker Peksag.

8 years agoChange error return value to be more consistent with the rest of Python
Brett Cannon [Wed, 7 Sep 2016 19:51:08 +0000 (12:51 -0700)]
Change error return value to be more consistent with the rest of Python

8 years agoput -std=c99 in CFLAGS_NODIST
Benjamin Peterson [Wed, 7 Sep 2016 19:00:06 +0000 (12:00 -0700)]
put -std=c99 in CFLAGS_NODIST

8 years agocompile with -std=c99
Benjamin Peterson [Wed, 7 Sep 2016 18:53:55 +0000 (11:53 -0700)]
compile with -std=c99

8 years agopermit intermingled declarations
Benjamin Peterson [Wed, 7 Sep 2016 18:43:22 +0000 (11:43 -0700)]
permit intermingled declarations

8 years agohardcode sizeof(_Bool) on windows
Benjamin Peterson [Wed, 7 Sep 2016 18:39:46 +0000 (11:39 -0700)]
hardcode sizeof(_Bool) on windows