]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
9 years agomerge
Raymond Hettinger [Mon, 19 Sep 2016 04:46:08 +0000 (21:46 -0700)] 
merge

9 years agoIssue #28193: Use lru_cache in the re module.
Raymond Hettinger [Mon, 19 Sep 2016 03:17:21 +0000 (20:17 -0700)] 
Issue #28193: Use lru_cache in the re module.

9 years agocorrect silly spelling problem
Benjamin Peterson [Mon, 19 Sep 2016 02:24:52 +0000 (19:24 -0700)] 
correct silly spelling problem

9 years agoreplace obmalloc's homegrown uptr and uchar types with standard ones
Benjamin Peterson [Mon, 19 Sep 2016 02:22:22 +0000 (19:22 -0700)] 
replace obmalloc's homegrown uptr and uchar types with standard ones

9 years agoimprovements to code that checks whether Python (obmalloc) allocated an address
Benjamin Peterson [Mon, 19 Sep 2016 02:12:48 +0000 (19:12 -0700)] 
improvements to code that checks whether Python (obmalloc) allocated an address

- Rename Py_ADDRESS_IN_RANGE to address_in_range and make it a static
  function instead of macro. Any compiler worth its salt will inline this
  function.
- Remove the duplicated function version of Py_ADDRESS_IN_RANGE used when memory
  analysis was active. Instead, we can simply mark address_in_range as allergic
  to dynamic memory checking. We can now remove the
  __attribute__((no_address_safety_analysis)) from _PyObject_Free and
  _PyObject_Realloc. All the badness is contained in address_in_range now.
- Fix the code that tried to only read pool->arenaindex once. Putting something
  in a variable is no guarantee that it won't be read multiple times. We must
  use volatile for that.

9 years agostop using Py_LL and Py_ULL
Benjamin Peterson [Mon, 19 Sep 2016 01:12:21 +0000 (18:12 -0700)] 
stop using Py_LL and Py_ULL

9 years agoalways define HAVE_LONG_LONG (#27961)
Benjamin Peterson [Mon, 19 Sep 2016 01:02:58 +0000 (18:02 -0700)] 
always define HAVE_LONG_LONG (#27961)

9 years agoproperly free memory in pgen
Benjamin Peterson [Mon, 19 Sep 2016 01:00:25 +0000 (18:00 -0700)] 
properly free memory in pgen

9 years agoFix test_huntrleaks_fd_leak() of test_regrtest
Victor Stinner [Sun, 18 Sep 2016 22:11:30 +0000 (00:11 +0200)] 
Fix test_huntrleaks_fd_leak() of test_regrtest

Issue #28195: Don't expect the fd leak message to be on a specific line number,
just make sure that the line is present in the output.

9 years agoissue23591: fix flag decomposition and repr
Ethan Furman [Sun, 18 Sep 2016 20:15:41 +0000 (13:15 -0700)] 
issue23591: fix flag decomposition and repr

9 years agoIssue #25400: RobotFileParser now correctly returns default values for crawl_delay...
Berker Peksag [Sun, 18 Sep 2016 17:17:58 +0000 (20:17 +0300)] 
Issue #25400: RobotFileParser now correctly returns default values for crawl_delay and request_rate

Initial patch by Peter Wirtz.

9 years agoIssue #26661: setup.py now detects system libffi with multiarch wrapper.
Christian Heimes [Sun, 18 Sep 2016 12:34:13 +0000 (14:34 +0200)] 
Issue #26661: setup.py now detects system libffi with multiarch wrapper.

9 years agoIssue #26661: setup.py now detects system libffi with multiarch wrapper.
Christian Heimes [Sun, 18 Sep 2016 12:33:30 +0000 (14:33 +0200)] 
Issue #26661: setup.py now detects system libffi with multiarch wrapper.

9 years agoNull merge from 3.5
Berker Peksag [Sun, 18 Sep 2016 11:53:12 +0000 (14:53 +0300)] 
Null merge from 3.5

9 years agoIssue #26610: Skip test_with_pip if _ctypes is not available in OpenIndiana
Berker Peksag [Sun, 18 Sep 2016 11:52:25 +0000 (14:52 +0300)] 
Issue #26610: Skip test_with_pip if _ctypes is not available in OpenIndiana

9 years agoNull merge from 3.5
Berker Peksag [Sun, 18 Sep 2016 10:57:40 +0000 (13:57 +0300)] 
Null merge from 3.5

9 years agoIssue #28075: Fix test_access_denied in Python 3.5
Berker Peksag [Sun, 18 Sep 2016 10:56:29 +0000 (13:56 +0300)] 
Issue #28075: Fix test_access_denied in Python 3.5

I forgot there two variations of os.stat() in Python 3.5.

9 years agoIssue #28151: Use pythontest.net in test_robotparser
Berker Peksag [Sun, 18 Sep 2016 08:21:57 +0000 (11:21 +0300)] 
Issue #28151: Use pythontest.net in test_robotparser

9 years agoNull merge from 3.5
Steve Dower [Sun, 18 Sep 2016 00:29:52 +0000 (17:29 -0700)] 
Null merge from 3.5

9 years agoAdd file missed from backport
Steve Dower [Sun, 18 Sep 2016 00:29:37 +0000 (17:29 -0700)] 
Add file missed from backport

9 years agoIssue #27932: Prevent memory leak in win32_ver().
Steve Dower [Sun, 18 Sep 2016 00:27:48 +0000 (17:27 -0700)] 
Issue #27932: Prevent memory leak in win32_ver().

9 years agoNull merge from 3.5
Steve Dower [Sun, 18 Sep 2016 00:27:41 +0000 (17:27 -0700)] 
Null merge from 3.5

9 years agoIssue #27932: Prevent memory leak in win32_ver().
Steve Dower [Sun, 18 Sep 2016 00:25:42 +0000 (17:25 -0700)] 
Issue #27932: Prevent memory leak in win32_ver().

9 years agoFixes bad merge for issue #28110
Steve Dower [Sat, 17 Sep 2016 23:34:38 +0000 (16:34 -0700)] 
Fixes bad merge for issue #28110

9 years agoIssue #28110: launcher.msi has different product codes between 32-bit and 64-bit
Steve Dower [Sat, 17 Sep 2016 23:13:59 +0000 (16:13 -0700)] 
Issue #28110: launcher.msi has different product codes between 32-bit and 64-bit

9 years agoIssue #28110: launcher.msi has different product codes between 32-bit and 64-bit
Steve Dower [Sat, 17 Sep 2016 23:12:55 +0000 (16:12 -0700)] 
Issue #28110: launcher.msi has different product codes between 32-bit and 64-bit

9 years agoIssue #28176: Merge from 3.5
Berker Peksag [Sat, 17 Sep 2016 22:07:30 +0000 (01:07 +0300)] 
Issue #28176: Merge from 3.5

9 years agoIssue #28176: Increase timeout for test_sock_connect_sock_write_race
Berker Peksag [Sat, 17 Sep 2016 22:06:50 +0000 (01:06 +0300)] 
Issue #28176: Increase timeout for test_sock_connect_sock_write_race

9 years agoIssue #28192: Adds tests for hook in isolated mode
Steve Dower [Sat, 17 Sep 2016 21:35:32 +0000 (14:35 -0700)] 
Issue #28192: Adds tests for hook in isolated mode

9 years agoIssue #28161: Opening CON for write access fails
Steve Dower [Sat, 17 Sep 2016 20:51:23 +0000 (13:51 -0700)] 
Issue #28161: Opening CON for write access fails
Issue #28162: WindowsConsoleIO readall() fails if first line starts with Ctrl+Z
Issue #28163: WindowsConsoleIO fileno() passes wrong flags to _open_osfhandle
Issue #28164: _PyIO_get_console_type fails for various paths

9 years agoIssue #26384: Merge from 3.5
Berker Peksag [Sat, 17 Sep 2016 20:23:13 +0000 (23:23 +0300)] 
Issue #26384: Merge from 3.5

9 years agoIssue #26384: Fix UnboundLocalError in socket._sendfile_use_sendfile
Berker Peksag [Sat, 17 Sep 2016 20:22:06 +0000 (23:22 +0300)] 
Issue #26384: Fix UnboundLocalError in socket._sendfile_use_sendfile

9 years agoIssue #28137: Renames Windows path file to ._pth
Steve Dower [Sat, 17 Sep 2016 19:54:06 +0000 (12:54 -0700)] 
Issue #28137: Renames Windows path file to ._pth
Issue #28138: Windows ._pth file should allow import site

9 years agoIssue #28192: Don't import readline in isolated mode
Steve Dower [Sat, 17 Sep 2016 19:22:41 +0000 (12:22 -0700)] 
Issue #28192: Don't import readline in isolated mode

9 years agoMerge from 3.5
Berker Peksag [Sat, 17 Sep 2016 13:21:42 +0000 (16:21 +0300)] 
Merge from 3.5

9 years agoFix test_access_denied in 3.5
Berker Peksag [Sat, 17 Sep 2016 13:20:55 +0000 (16:20 +0300)] 
Fix test_access_denied in 3.5

9 years agoIssue #28075: Merge from 3.5
Berker Peksag [Sat, 17 Sep 2016 12:51:14 +0000 (15:51 +0300)] 
Issue #28075: Merge from 3.5

9 years agoIssue #28075: Check for ERROR_ACCESS_DENIED in Windows implementation of os.stat()
Berker Peksag [Sat, 17 Sep 2016 12:49:59 +0000 (15:49 +0300)] 
Issue #28075: Check for ERROR_ACCESS_DENIED in Windows implementation of os.stat()

Patch by Eryk Sun.

9 years agoIssue #28139: Merge indentation fixes from 3.5 into 3.6
Martin Panter [Sat, 17 Sep 2016 07:59:14 +0000 (07:59 +0000)] 
Issue #28139: Merge indentation fixes from 3.5 into 3.6

9 years agoIssue #28139: Fix messed up indentation
Martin Panter [Sat, 17 Sep 2016 03:26:16 +0000 (03:26 +0000)] 
Issue #28139: Fix messed up indentation

Also update the classmethod and staticmethod doc strings and comments to
match the RST documentation.

9 years agoIssue #22493: Warning message emitted by using inline flags in the middle of
Serhiy Storchaka [Fri, 16 Sep 2016 22:29:58 +0000 (01:29 +0300)] 
Issue #22493: Warning message emitted by using inline flags in the middle of
regular expression now contains a (truncated) regex pattern.
Patch by Tim Graham.

9 years agoPending final editing of 3.6 whatsnew, add a list of all PEPs implemented.
Ned Deily [Fri, 16 Sep 2016 19:46:55 +0000 (15:46 -0400)] 
Pending final editing of 3.6 whatsnew, add a list of all PEPs implemented.

9 years agoIssue #25270: Merge from 3.5
Berker Peksag [Fri, 16 Sep 2016 14:32:06 +0000 (17:32 +0300)] 
Issue #25270: Merge from 3.5

9 years agoIssue #25270: Prevent codecs.escape_encode() from raising SystemError when an empty...
Berker Peksag [Fri, 16 Sep 2016 14:31:06 +0000 (17:31 +0300)] 
Issue #25270: Prevent codecs.escape_encode() from raising SystemError when an empty bytestring is passed

9 years agoIssue #28181: Get antigravity over HTTPS. Patch by Kaartic Sivaraam.
Christian Heimes [Fri, 16 Sep 2016 11:49:16 +0000 (13:49 +0200)] 
Issue #28181: Get antigravity over HTTPS. Patch by Kaartic Sivaraam.

9 years agoIssue #28181: Get antigravity over HTTPS. Patch by Kaartic Sivaraam.
Christian Heimes [Fri, 16 Sep 2016 11:48:10 +0000 (13:48 +0200)] 
Issue #28181: Get antigravity over HTTPS. Patch by Kaartic Sivaraam.

9 years agoIssue #25895: Merge from 3.5
Berker Peksag [Fri, 16 Sep 2016 11:45:15 +0000 (14:45 +0300)] 
Issue #25895: Merge from 3.5

9 years agoIssue #25895: Enable WebSocket URL schemes in urllib.parse.urljoin
Berker Peksag [Fri, 16 Sep 2016 11:43:58 +0000 (14:43 +0300)] 
Issue #25895: Enable WebSocket URL schemes in urllib.parse.urljoin

Patch by Gergely Imreh and Markus Holtermann.

9 years agoIssue #28145: Merge spelling fixes from 3.5 into 3.6
Martin Panter [Fri, 16 Sep 2016 00:55:27 +0000 (00:55 +0000)] 
Issue #28145: Merge spelling fixes from 3.5 into 3.6

9 years agoIssue #28145: Spelling fixes
Martin Panter [Fri, 16 Sep 2016 00:46:05 +0000 (00:46 +0000)] 
Issue #28145: Spelling fixes

9 years agoMerge 3.5 (issue #27759)
Yury Selivanov [Thu, 15 Sep 2016 23:31:33 +0000 (19:31 -0400)] 
Merge 3.5 (issue #27759)

9 years agoIssue #27759: Fix selectors incorrectly retain invalid file descriptors.
Yury Selivanov [Thu, 15 Sep 2016 23:30:42 +0000 (19:30 -0400)] 
Issue #27759: Fix selectors incorrectly retain invalid file descriptors.

Patch by Mark Williams.

9 years agoFix Misc/NEWS
Yury Selivanov [Thu, 15 Sep 2016 21:59:14 +0000 (17:59 -0400)] 
Fix Misc/NEWS

9 years agoMerge 3.5 (issue #28176)
Yury Selivanov [Thu, 15 Sep 2016 21:58:15 +0000 (17:58 -0400)] 
Merge 3.5 (issue #28176)

9 years agoIssue #28176: Fix callbacks race in asyncio.SelectorLoop.sock_connect.
Yury Selivanov [Thu, 15 Sep 2016 21:56:36 +0000 (17:56 -0400)] 
Issue #28176: Fix callbacks race in asyncio.SelectorLoop.sock_connect.

9 years agoMerge 3.5 (asyncio, issue #26909)
Yury Selivanov [Thu, 15 Sep 2016 20:52:41 +0000 (16:52 -0400)] 
Merge 3.5 (asyncio, issue #26909)

9 years agoIssue #26909: Fix slow pipes IO in asyncio.
Yury Selivanov [Thu, 15 Sep 2016 20:51:48 +0000 (16:51 -0400)] 
Issue #26909: Fix slow pipes IO in asyncio.

Patch by INADA Naoki.

9 years agoMerge 3.5 (issue #26654)
Yury Selivanov [Thu, 15 Sep 2016 20:01:35 +0000 (16:01 -0400)] 
Merge 3.5 (issue #26654)

9 years agoIssue #26654: Inspect functools.partial in asyncio.Handle.__repr__.
Yury Selivanov [Thu, 15 Sep 2016 19:58:15 +0000 (15:58 -0400)] 
Issue #26654: Inspect functools.partial in asyncio.Handle.__repr__.

Patch by iceboy.

9 years agoMerge 3.5 (issue #28174)
Yury Selivanov [Thu, 15 Sep 2016 19:46:16 +0000 (15:46 -0400)] 
Merge 3.5 (issue #28174)

9 years agoIssue #28174: Handle when SO_REUSEPORT isn't properly supported (asyncio)
Yury Selivanov [Thu, 15 Sep 2016 19:45:07 +0000 (15:45 -0400)] 
Issue #28174: Handle when SO_REUSEPORT isn't properly supported (asyncio)

Patch by Seth Michael Larson.

9 years agoMerge 3.5 (issue #27906)
Yury Selivanov [Thu, 15 Sep 2016 18:14:48 +0000 (14:14 -0400)] 
Merge 3.5 (issue #27906)

9 years agoIssue #27906: Fix socket accept exhaustion during high TCP traffic.
Yury Selivanov [Thu, 15 Sep 2016 18:13:15 +0000 (14:13 -0400)] 
Issue #27906: Fix socket accept exhaustion during high TCP traffic.

Patch by Kevin Conway.

9 years agoNull-merge 3.5
Yury Selivanov [Thu, 15 Sep 2016 17:49:49 +0000 (13:49 -0400)] 
Null-merge 3.5

9 years agoAnother asyncio sync.
Yury Selivanov [Thu, 15 Sep 2016 17:49:08 +0000 (13:49 -0400)] 
Another asyncio sync.

9 years agoIssue #28156: Export os.getpid() conditionally
Berker Peksag [Thu, 15 Sep 2016 17:45:16 +0000 (20:45 +0300)] 
Issue #28156: Export os.getpid() conditionally

Patch by Ed Schouten.

9 years agoMerge heads 3.6
Yury Selivanov [Thu, 15 Sep 2016 17:37:16 +0000 (13:37 -0400)] 
Merge heads 3.6

9 years agoasyncio: Drop debug code
Yury Selivanov [Thu, 15 Sep 2016 17:35:41 +0000 (13:35 -0400)] 
asyncio: Drop debug code

9 years agoUse requires_os_func() to skip SpawnTests
Berker Peksag [Thu, 15 Sep 2016 17:32:44 +0000 (20:32 +0300)] 
Use requires_os_func() to skip SpawnTests

9 years agoMerge heads
Yury Selivanov [Thu, 15 Sep 2016 17:26:58 +0000 (13:26 -0400)] 
Merge heads

9 years agoMerge 3.5 (asyncio)
Yury Selivanov [Thu, 15 Sep 2016 17:24:03 +0000 (13:24 -0400)] 
Merge 3.5 (asyncio)

9 years agoMake SpawnTest.create_args() keyword-only
Berker Peksag [Thu, 15 Sep 2016 17:23:55 +0000 (20:23 +0300)] 
Make SpawnTest.create_args() keyword-only

9 years agoIssue #28114: Fix a crash in parse_envlist() when env contains byte strings
Berker Peksag [Thu, 15 Sep 2016 17:19:47 +0000 (20:19 +0300)] 
Issue #28114: Fix a crash in parse_envlist() when env contains byte strings

Patch by Eryk Sun.

9 years agoasyncio: Sync with the upstream
Yury Selivanov [Thu, 15 Sep 2016 17:10:51 +0000 (13:10 -0400)] 
asyncio: Sync with the upstream

9 years agoIssue #26182: Raise DeprecationWarning for improper use of async/await keywords
Yury Selivanov [Thu, 15 Sep 2016 16:50:23 +0000 (12:50 -0400)] 
Issue #26182: Raise DeprecationWarning for improper use of async/await keywords

9 years agoUnicode 9.0.0
Benjamin Peterson [Thu, 15 Sep 2016 06:53:47 +0000 (23:53 -0700)] 
Unicode 9.0.0

Not completely mechanical since support for East Asian Width changes—emoji
codepoints became Wide—had to be added to unicodedata.

9 years agoIssue #28153: Make kqueue()'s event filters optional
Berker Peksag [Wed, 14 Sep 2016 15:16:59 +0000 (18:16 +0300)] 
Issue #28153: Make kqueue()'s event filters optional

Patch by Ed Schouten.

9 years agoIssue #27599: Fixed buffer overrun in binascii.b2a_qp() and binascii.a2b_qp().
Serhiy Storchaka [Wed, 14 Sep 2016 13:37:34 +0000 (16:37 +0300)] 
Issue #27599: Fixed buffer overrun in binascii.b2a_qp() and binascii.a2b_qp().

9 years agoIssue #27599: Fixed buffer overrun in binascii.b2a_qp() and binascii.a2b_qp().
Serhiy Storchaka [Wed, 14 Sep 2016 13:34:37 +0000 (16:34 +0300)] 
Issue #27599: Fixed buffer overrun in binascii.b2a_qp() and binascii.a2b_qp().

9 years agoAdd _PyDict_CheckConsistency()
Victor Stinner [Wed, 14 Sep 2016 13:02:01 +0000 (15:02 +0200)] 
Add _PyDict_CheckConsistency()

Issue #28127: Add a function to check that a dictionary remains consistent
after any change.

By default, tables are not checked, only basic attributes. Define DEBUG_PYDICT
(ex: gcc -D DEBUG_PYDICT) to also check dictionary "content".

9 years agoIssue #28114: Add unit tests on os.spawn*()
Victor Stinner [Wed, 14 Sep 2016 08:57:00 +0000 (10:57 +0200)] 
Issue #28114: Add unit tests on os.spawn*()

9 years agoRestrict name_length to NAME_MAXLEN in unicodedata_UCD_lookup()
Christian Heimes [Wed, 14 Sep 2016 08:25:54 +0000 (10:25 +0200)] 
Restrict name_length to NAME_MAXLEN in unicodedata_UCD_lookup()

9 years agoRestrict name_length to NAME_MAXLEN in unicodedata_UCD_lookup()
Christian Heimes [Wed, 14 Sep 2016 08:25:46 +0000 (10:25 +0200)] 
Restrict name_length to NAME_MAXLEN in unicodedata_UCD_lookup()

9 years agomore granular configure checks for clock_* functions (closes #28081)
Benjamin Peterson [Wed, 14 Sep 2016 05:55:09 +0000 (22:55 -0700)] 
more granular configure checks for clock_* functions (closes #28081)

9 years agomerge 3.5
Benjamin Peterson [Wed, 14 Sep 2016 05:46:50 +0000 (22:46 -0700)] 
merge 3.5

9 years agomerge heads
Benjamin Peterson [Wed, 14 Sep 2016 05:46:45 +0000 (22:46 -0700)] 
merge heads

9 years agomerge heads
Benjamin Peterson [Wed, 14 Sep 2016 05:46:37 +0000 (22:46 -0700)] 
merge heads

9 years agomerge 3.5 (#28119)
Benjamin Peterson [Wed, 14 Sep 2016 05:46:15 +0000 (22:46 -0700)] 
merge 3.5 (#28119)

9 years agoimprove type-safe of and prevent double-frees in get_locale_info (#28119)
Benjamin Peterson [Wed, 14 Sep 2016 05:43:45 +0000 (22:43 -0700)] 
improve type-safe of and prevent double-frees in get_locale_info (#28119)

9 years agoIssue #26171: Null merge
Berker Peksag [Wed, 14 Sep 2016 05:39:49 +0000 (08:39 +0300)] 
Issue #26171: Null merge

9 years agoIssue #26171: Null merge
Berker Peksag [Wed, 14 Sep 2016 05:39:15 +0000 (08:39 +0300)] 
Issue #26171: Null merge

9 years agoIssue #26171: Null merge
Berker Peksag [Wed, 14 Sep 2016 05:38:36 +0000 (08:38 +0300)] 
Issue #26171: Null merge

9 years agoIssue #26171: Prevent buffer overflow in get_data
Berker Peksag [Wed, 14 Sep 2016 05:37:28 +0000 (08:37 +0300)] 
Issue #26171: Prevent buffer overflow in get_data

Backport of 01ddd608b85c.

9 years agoIssue #28131: Merge from 3.5
Berker Peksag [Wed, 14 Sep 2016 05:10:45 +0000 (08:10 +0300)] 
Issue #28131: Merge from 3.5

9 years agoIssue #28131: Fix a regression in zipimport's compile_source()
Berker Peksag [Wed, 14 Sep 2016 05:09:48 +0000 (08:09 +0300)] 
Issue #28131: Fix a regression in zipimport's compile_source()

zipimport should use the same optimization level as the interpreter.

9 years agoIssue #28188: Use PyMem_Calloc() to get rid of a type-limits warning and an extra...
Christian Heimes [Tue, 13 Sep 2016 18:48:13 +0000 (20:48 +0200)] 
Issue #28188: Use PyMem_Calloc() to get rid of a type-limits warning and an extra memset() call in _ssl.c.

9 years agoIssue #28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly optimize...
Christian Heimes [Tue, 13 Sep 2016 18:22:02 +0000 (20:22 +0200)] 
Issue #28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly optimize memcpy().

9 years agoAdd text about PEP 526 to What's new in 3.6. Ivan L.
Guido van Rossum [Tue, 13 Sep 2016 16:26:38 +0000 (09:26 -0700)] 
Add text about PEP 526 to What's new in 3.6. Ivan L.

9 years agoAdd an Android section to whatsnew/3.6.rst.
Xavier de Gaye [Tue, 13 Sep 2016 16:04:15 +0000 (18:04 +0200)] 
Add an Android section to whatsnew/3.6.rst.

9 years agoTidy 3.6 What's New summary
Ned Deily [Tue, 13 Sep 2016 15:33:03 +0000 (11:33 -0400)] 
Tidy 3.6 What's New summary