]> granicus.if.org Git - python/log
python
7 years agobpo-29998: Pickling and copying ImportError now preserves name and path (#1010)
Serhiy Storchaka [Sat, 8 Apr 2017 06:55:07 +0000 (09:55 +0300)]
bpo-29998: Pickling and copying ImportError now preserves name and path (#1010)

attributes.

7 years agoExpand the PySlice_GetIndicesEx macro. (#1023)
Serhiy Storchaka [Sat, 8 Apr 2017 06:53:51 +0000 (09:53 +0300)]
Expand the PySlice_GetIndicesEx macro. (#1023)

7 years agobpo-29914: Fix default implementations of __reduce__ and __reduce_ex__(). (#843)
Serhiy Storchaka [Sat, 8 Apr 2017 06:52:59 +0000 (09:52 +0300)]
bpo-29914: Fix default implementations of __reduce__ and __reduce_ex__(). (#843)

object.__reduce__() no longer takes arguments, object.__reduce_ex__() now
requires one argument.

7 years agoFix a minor typo. (#1032)
Barry Warsaw [Fri, 7 Apr 2017 18:18:14 +0000 (14:18 -0400)]
Fix a minor typo. (#1032)

7 years agobpo-29958: Minor improvements to zipfile and tarfile CLI. (#944)
Serhiy Storchaka [Fri, 7 Apr 2017 15:56:12 +0000 (18:56 +0300)]
bpo-29958: Minor improvements to zipfile and tarfile CLI. (#944)

7 years agoRemove Invalid comment in test_urllib2.py (#1020)
Senthil Kumaran [Fri, 7 Apr 2017 07:19:08 +0000 (00:19 -0700)]
Remove Invalid comment in test_urllib2.py (#1020)

7 years agobpo-28837: Fix lib2to3 handling of map/zip/filter calls when followed with a 'trailer...
Stuart Berg [Thu, 6 Apr 2017 05:19:40 +0000 (01:19 -0400)]
bpo-28837: Fix lib2to3 handling of map/zip/filter calls when followed with a 'trailer', e.g. zip()[x] (#24)

7 years agoCorrect typo in configparser.rst (#1012)
Alex Jordan [Thu, 6 Apr 2017 02:21:30 +0000 (22:21 -0400)]
Correct typo in configparser.rst (#1012)

7 years agobpo-29962: add math.remainder (#950)
Mark Dickinson [Wed, 5 Apr 2017 17:34:27 +0000 (18:34 +0100)]
bpo-29962: add math.remainder (#950)

* Implement math.remainder.

* Fix markup for arguments; use double spaces after period.

* Mark up function reference in what's new entry.

* Add comment explaining the calculation in the final branch.

* Fix out-of-order entry in whatsnew.

* Add comment explaining why it's good enough to compare m with c, in spite of possible rounding error.

7 years agoMiscellaneous minor fixes of Misc/NEWS formatting. (#1002)
Serhiy Storchaka [Wed, 5 Apr 2017 09:07:22 +0000 (12:07 +0300)]
Miscellaneous minor fixes of Misc/NEWS formatting. (#1002)

7 years agoUpdate Argument Clinic generated code for bpo-29878. (#1001)
Serhiy Storchaka [Wed, 5 Apr 2017 09:00:42 +0000 (12:00 +0300)]
Update Argument Clinic generated code for bpo-29878. (#1001)

7 years agobpo-29762: More use "raise from None". (#569)
Serhiy Storchaka [Wed, 5 Apr 2017 06:37:24 +0000 (09:37 +0300)]
bpo-29762: More use "raise from None". (#569)

This hides unwanted implementation details from tracebacks.

7 years agobpo-29549: Fixes docstring for str.index (#256)
Lisa Roach [Wed, 5 Apr 2017 05:36:22 +0000 (22:36 -0700)]
bpo-29549: Fixes docstring for str.index (#256)

* Updates B.index documentation.

* Updates str.index documentation, makes it Argument Clinic compatible.

* Removes ArgumentClinic code.

* Finishes string.index documentation.

* Updates string.rindex documentation.

* Documents B.rindex.

7 years agocorrect parse_qs and parse_qsl test case descriptions. (#968)
Senthil Kumaran [Wed, 5 Apr 2017 04:19:43 +0000 (21:19 -0700)]
correct parse_qs and parse_qsl test case descriptions. (#968)

* correct parse_qs and parse_qsl test case descriptions.

7 years agobpo-29649: Improve struct.pack_into() boundary error messages (#424)
Andrew Nester [Tue, 4 Apr 2017 10:46:25 +0000 (13:46 +0300)]
bpo-29649: Improve struct.pack_into() boundary error messages (#424)

7 years agobpo-29972: Skip tests known to fail on AIX (#979)
Victor Stinner [Tue, 4 Apr 2017 08:35:15 +0000 (10:35 +0200)]
bpo-29972: Skip tests known to fail on AIX (#979)

* bpo-29972: Fix test_eintr on AIX

On AIX, sigtimedwait(0.2) sleeps 199.8 ms, whereas the test expects
200 ms or longer.

* bpo-29972: Skip some inet_pton() tests on AIX

Skip some inet_pton() tests of test_socket on AIX.

inet_pton() on AIX is less strict than on Linux and doesn't reject
some invalid IP addresses. The unit tests test more the libc than
Python itself.

* bpo-29972: Skip tests known to fail on AIX

* test_locale.test_strcoll_with_diacritic()
* test_locale.test_strxfrm_with_diacritic()
* test_strptime.test_week_of_year_and_day_of_week_calculation()
* test_tools.test_POT_Creation_Date()

7 years agobpo-29725: DOC: add text for arraysize in sqlite3.Cursor (#947)
csabella [Tue, 4 Apr 2017 05:16:14 +0000 (01:16 -0400)]
bpo-29725: DOC: add text for arraysize in sqlite3.Cursor (#947)

* bpo-29725: DOC: add text for arraysize in sqlite3.Cursor

7 years agoRemove obsolete declaration in tokenizer.h (#962)
Jim Fasarakis-Hilliard [Mon, 3 Apr 2017 16:18:32 +0000 (19:18 +0300)]
Remove obsolete declaration in tokenizer.h (#962)

7 years agoCorrect typo (#976)
Angus Hollands [Mon, 3 Apr 2017 16:16:14 +0000 (17:16 +0100)]
Correct typo (#976)

7 years agotest_locale now ignores the DeprecationWarning (#977)
Victor Stinner [Mon, 3 Apr 2017 16:09:55 +0000 (18:09 +0200)]
test_locale now ignores the DeprecationWarning (#977)

Don't fail anymore if test run with python3 -Werror.

Fix also deprecation message: add a space.

7 years agoFix misleading documentation for math.exp. (#951)
Mark Dickinson [Sun, 2 Apr 2017 15:30:04 +0000 (16:30 +0100)]
Fix misleading documentation for math.exp. (#951)

7 years agobpo-19225: Add a table of warning names and missed exception names in C API doc ...
cocoatomo [Sun, 2 Apr 2017 10:45:40 +0000 (19:45 +0900)]
bpo-19225: Add a table of warning names and missed exception names in C API doc (#881)

Move the `.. index` directive to more appropriate place.

7 years agobpo-29654 : Support If-Modified-Since HTTP header (browser cache) (#298)
Pierre Quentel [Sun, 2 Apr 2017 10:26:12 +0000 (12:26 +0200)]
bpo-29654 : Support If-Modified-Since HTTP header (browser cache) (#298)

Return 304 response if file was not modified.

7 years agoMinor spell fix and formatting fixes in urllib tests. (#959)
Senthil Kumaran [Sun, 2 Apr 2017 06:47:35 +0000 (23:47 -0700)]
Minor spell fix and formatting fixes in urllib tests. (#959)

7 years agobpo-29957: change LBYL key lookup to dict.setdefault (#938)
Michael Selik [Sun, 2 Apr 2017 06:02:31 +0000 (02:02 -0400)]
bpo-29957: change LBYL key lookup to dict.setdefault (#938)

* change LBYL key lookup to dict.setdefault

The ``results`` was constructed as a defaultdict and we could simply
delete the check ``if key not in results``. However, I think it's safer
to use dict.setdefault as I'm not sure whether the caller expects a
regular dict or defaultdict.

* add name to the acknowledgements file

* use defaultdict to make the key-lookup cleaner

7 years agobpo-26947: DOC: clarify wording on hashable in glossary (#948)
csabella [Sun, 2 Apr 2017 02:50:47 +0000 (22:50 -0400)]
bpo-26947: DOC: clarify wording on hashable in glossary (#948)

7 years agobpo-29949: Fix set memory usage regression (GH-943)
INADA Naoki [Sat, 1 Apr 2017 08:20:25 +0000 (17:20 +0900)]
bpo-29949: Fix set memory usage regression (GH-943)

Revert "Minor factoring:  move redundant resize scaling logic into the resize function."

This reverts commit 4897300276d870f99459c82b937f0ac22450f0b6.

7 years agoRevert "bpo-29763: Use unittest cleanup in test_site (GH-841)" (GH-942)
Zachary Ware [Sat, 1 Apr 2017 06:29:31 +0000 (01:29 -0500)]
Revert "bpo-29763: Use unittest cleanup in test_site (GH-841)" (GH-942)

This reverts commit b94d7fd4efa877d649cea9c8125c8869ffe0c32d.

7 years agobpo-29931 fix __lt__ check in ipaddress.ip_interface for both v4 and v6. (#879)
s-sanjay [Sat, 1 Apr 2017 06:09:53 +0000 (23:09 -0700)]
bpo-29931 fix __lt__ check in ipaddress.ip_interface for both v4 and v6. (#879)

the original logic was just comparing the network address
but this is wrong because if the network address is equal then
we need to compare the ip address for breaking the tie

add more ip_interface comparison tests

7 years agoAdd helpful explaination to test_password_manager tests. (#936)
Senthil Kumaran [Sat, 1 Apr 2017 05:27:27 +0000 (22:27 -0700)]
Add helpful explaination to test_password_manager tests. (#936)

Also uncomment and fix a path test.

7 years agobpo-29763: Use unittest cleanup in test_site (GH-841)
Zachary Ware [Sat, 1 Apr 2017 05:18:23 +0000 (00:18 -0500)]
bpo-29763: Use unittest cleanup in test_site (GH-841)

7 years agoLink to the devguide's PR guidelines (GH-932)
Brett Cannon [Fri, 31 Mar 2017 21:19:04 +0000 (14:19 -0700)]
Link to the devguide's PR guidelines (GH-932)

7 years agobpo-29953: Fix memory leaks in the replace() method of datetime and time (#927)
Serhiy Storchaka [Fri, 31 Mar 2017 19:48:16 +0000 (22:48 +0300)]
bpo-29953: Fix memory leaks in the replace() method of datetime and time (#927)

objects when pass out of bound fold argument.

7 years agoFix spurious MemoryError introduced by PR #886. (#930)
T. Wouters [Fri, 31 Mar 2017 17:10:19 +0000 (10:10 -0700)]
Fix spurious MemoryError introduced by PR #886. (#930)

Fix MemoryError caused by moving around code in PR #886; nbytes was sometimes used unitinitalized (in non-debug builds, when use_calloc was false and elsize was 0).

7 years agobpo-29941: Assert fixes (#886)
T. Wouters [Fri, 31 Mar 2017 16:14:41 +0000 (09:14 -0700)]
bpo-29941: Assert fixes (#886)

Make a non-Py_DEBUG, asserts-enabled build of CPython possible. This means
making sure helper functions are defined when NDEBUG is not defined, not
just when Py_DEBUG is defined.

Also fix a division-by-zero in obmalloc.c that went unnoticed because in Py_DEBUG mode, elsize is never zero.

7 years agosuppress compiler warnings in _ctypes_test (#902)
Benjamin Peterson [Fri, 31 Mar 2017 11:05:25 +0000 (04:05 -0700)]
suppress compiler warnings in _ctypes_test (#902)

Changed test code to suppress a compiler warning, while taking care to avoid the code being optimized out by the compiler.

7 years agobpo-29952: Use usual terminology of dict (GH-917)
cocoatomo [Fri, 31 Mar 2017 05:48:49 +0000 (14:48 +0900)]
bpo-29952: Use usual terminology of dict (GH-917)

s/keys and elements/keys and values/

7 years agoRemove catching OSError in ftphandler test. Only URLError is raised in urllib.request...
Senthil Kumaran [Fri, 31 Mar 2017 05:43:05 +0000 (22:43 -0700)]
Remove catching OSError in ftphandler test. Only URLError is raised in urllib.request module. (#918)

7 years agobpo-29928: Add f-string to the Glossary (GH-864)
Mariatta [Thu, 30 Mar 2017 19:12:18 +0000 (12:12 -0700)]
bpo-29928: Add f-string to the Glossary (GH-864)

7 years agobpo-29946: Fix "sqrtpi defined but not used" (#908)
Louie Lu [Thu, 30 Mar 2017 17:05:10 +0000 (01:05 +0800)]
bpo-29946: Fix "sqrtpi defined but not used" (#908)

7 years agobpo-29942: Fix the use of recursion in itertools.chain.from_iterable. (#889)
T. Wouters [Thu, 30 Mar 2017 16:58:35 +0000 (09:58 -0700)]
bpo-29942: Fix the use of recursion in itertools.chain.from_iterable. (#889)

Fix the use of recursion in itertools.chain.from_iterable. Using recursion
is unnecessary, and can easily cause stack overflows, especially when
building in low optimization modes or with Py_DEBUG enabled.

7 years agobpo-10030: Sped up reading encrypted ZIP files by 2 times. (#550)
Serhiy Storchaka [Thu, 30 Mar 2017 16:09:08 +0000 (19:09 +0300)]
bpo-10030: Sped up reading encrypted ZIP files by 2 times. (#550)

7 years agobpo-29935: Fixed error messages in the index() method of tuple, list and deque (...
Serhiy Storchaka [Thu, 30 Mar 2017 15:29:23 +0000 (18:29 +0300)]
bpo-29935: Fixed error messages in the index() method of tuple, list and deque (#887)

when pass indices of wrong type.

7 years agobpo-29204: Emit warnings for already deprecated ElementTree features. (#773)
Serhiy Storchaka [Thu, 30 Mar 2017 15:12:06 +0000 (18:12 +0300)]
bpo-29204: Emit warnings for already deprecated ElementTree features. (#773)

Element.getiterator() and the html parameter of XMLParser() were
deprecated only in the documentation (since Python 3.2 and 3.4 correspondintly).
Now using them emits a deprecation warning.

* Don’t need check_warnings any more.

7 years agobpo-29887: Test normalization now fails if download fails (#905)
Victor Stinner [Thu, 30 Mar 2017 15:06:53 +0000 (17:06 +0200)]
bpo-29887: Test normalization now fails if download fails (#905)

* test_normalization fails if download fails

bpo-29887. The test is still skipped if "-u urlfetch" option is not
passed to regrtest (python3 -m test -u urlfetch test_normalization).

* Fix ResourceWarning in test_normalization

bpo-29887: Fix ResourceWarning in test_normalization if tests are
interrupted by CTRL+c.

7 years agobpo-20548: Use specific asserts in warnings and exceptions tests (#788)
Serhiy Storchaka [Thu, 30 Mar 2017 15:05:08 +0000 (18:05 +0300)]
bpo-20548: Use specific asserts in warnings and exceptions tests (#788)

7 years agobpo-29913: deprecate compare_networks() in documentation (GH-865)
s-sanjay [Thu, 30 Mar 2017 07:44:29 +0000 (00:44 -0700)]
bpo-29913: deprecate compare_networks() in documentation (GH-865)

7 years agobpo-29918: Add missed "const" modifiers in C API documentation. (#846)
Serhiy Storchaka [Thu, 30 Mar 2017 07:01:03 +0000 (10:01 +0300)]
bpo-29918: Add missed "const" modifiers in C API documentation. (#846)

7 years agobpo-27863: Fixed multiple crashes in ElementTree. (#765)
Serhiy Storchaka [Thu, 30 Mar 2017 06:47:31 +0000 (09:47 +0300)]
bpo-27863: Fixed multiple crashes in ElementTree. (#765)

7 years agobpo-29816: Shift operation now has less opportunity to raise OverflowError. (#680)
Serhiy Storchaka [Thu, 30 Mar 2017 06:47:07 +0000 (09:47 +0300)]
bpo-29816: Shift operation now has less opportunity to raise OverflowError. (#680)

ValueError always is raised rather than OverflowError for negative counts.
Shifting zero with non-negative count always returns zero.

7 years agobpo-29852: Argument Clinic Py_ssize_t converter now supports None (#716)
Serhiy Storchaka [Thu, 30 Mar 2017 06:15:31 +0000 (09:15 +0300)]
bpo-29852: Argument Clinic Py_ssize_t converter now supports None (#716)

if pass `accept={int, NoneType}`.

7 years agobpo-25996: Added support of file descriptors in os.scandir() on Unix. (#502)
Serhiy Storchaka [Thu, 30 Mar 2017 06:12:31 +0000 (09:12 +0300)]
bpo-25996: Added support of file descriptors in os.scandir() on Unix. (#502)

os.fwalk() is sped up by 2 times by using os.scandir().

7 years agobpo-24821: Fixed the slowing down to 25 times in the searching of some (#505)
Serhiy Storchaka [Thu, 30 Mar 2017 06:11:10 +0000 (09:11 +0300)]
bpo-24821: Fixed the slowing down to 25 times in the searching of some (#505)

unlucky Unicode characters.

7 years agobpo-29878: Add global instances of int for 0 and 1. (#852)
Serhiy Storchaka [Thu, 30 Mar 2017 06:09:41 +0000 (09:09 +0300)]
bpo-29878: Add global instances of int for 0 and 1. (#852)

7 years agoRemove an unrequired TODO in test_urllib2. (#897)
Senthil Kumaran [Thu, 30 Mar 2017 06:02:29 +0000 (23:02 -0700)]
Remove an unrequired TODO in test_urllib2. (#897)

7 years agobpo-29917: DOC: Remove link from PyMethodDef (#890)
csabella [Thu, 30 Mar 2017 00:27:50 +0000 (20:27 -0400)]
bpo-29917: DOC: Remove link from PyMethodDef (#890)

7 years agobpo-29677: DOC: clarify documentation for `round` (GH-877)
csabella [Wed, 29 Mar 2017 21:14:06 +0000 (17:14 -0400)]
bpo-29677: DOC: clarify documentation for `round` (GH-877)

7 years agobpo-29932: Fix small error message typos in arraymodule.c (GH-888)
Sylvain [Wed, 29 Mar 2017 18:09:22 +0000 (20:09 +0200)]
bpo-29932: Fix small error message typos in arraymodule.c (GH-888)

7 years agobpo-29927: Remove duplicate BufferError init and unnecessary semicolons (GH-866)
Louie Lu [Wed, 29 Mar 2017 05:28:15 +0000 (13:28 +0800)]
bpo-29927: Remove duplicate BufferError init and unnecessary semicolons (GH-866)

7 years agobpo-29936: fix typo __GNU*C*_MINOR__ (#878)
Niklas Fiekas [Wed, 29 Mar 2017 04:58:01 +0000 (06:58 +0200)]
bpo-29936: fix typo __GNU*C*_MINOR__ (#878)

7 years agobpo-28699: fix abnormal behaviour of pools in multiprocessing.pool (GH-693)
Xiang Zhang [Wed, 29 Mar 2017 03:58:54 +0000 (11:58 +0800)]
bpo-28699: fix  abnormal behaviour of pools in multiprocessing.pool (GH-693)

an exception raised at the very first of an iterable would cause pools behave abnormally
(swallow the exception or hang)

7 years agobpo-19791: Use functions from test support to check the symlink support. (GH-822)
Vajrasky Kok [Tue, 28 Mar 2017 19:32:35 +0000 (02:32 +0700)]
bpo-19791: Use functions from test support to check the symlink support. (GH-822)

7 years agobpo-10379: add 'monetary' to format_string, deprecate format
Garvit Khatri [Tue, 28 Mar 2017 15:43:38 +0000 (23:43 +0800)]
bpo-10379: add 'monetary' to format_string, deprecate format

Add the 'monetary' parameter to format_string so that all
uses of format can be converted to format_string.  Adjust
the documentation accordingly, and add a deprecation
warning when format is used.

7 years agoNEWS: remove duplicated "Build" section (GH-872)
INADA Naoki [Tue, 28 Mar 2017 15:24:30 +0000 (00:24 +0900)]
NEWS: remove duplicated "Build" section (GH-872)

7 years agobpo-16011 clarify that 'in' always returns a boolean value
Amit Kumar [Tue, 28 Mar 2017 14:13:01 +0000 (19:43 +0530)]
bpo-16011 clarify that 'in' always returns a boolean value

7 years agoImprove the documentation for template strings (#856)
Barry Warsaw [Tue, 28 Mar 2017 14:02:07 +0000 (10:02 -0400)]
Improve the documentation for template strings (#856)

bpo-19824
bpo-20314
bpo-12518

7 years agobpo-29643: Fix check for --enable-optimizations (GH-129)
Alex Wang [Tue, 28 Mar 2017 12:50:51 +0000 (08:50 -0400)]
bpo-29643: Fix check for --enable-optimizations (GH-129)

The presence of the ``--enable-optimizations`` flag is indicated by the
value of ``$enableval``, but the configure script was checking ``$withval``,
resulting in the ``--enable-optimizations`` flag being effectively ignored.

7 years agoDrop the standard gcc test build on Travis (GH-853)
Brett Cannon [Mon, 27 Mar 2017 23:39:54 +0000 (16:39 -0700)]
Drop the standard gcc test build on Travis (GH-853)

Instead have gcc be used for the coverage build so gcc is exercised in at least one place.

7 years agoFix ref cycles in TestCase.assertRaises() (#193)
Victor Stinner [Mon, 27 Mar 2017 22:56:28 +0000 (00:56 +0200)]
Fix ref cycles in TestCase.assertRaises() (#193)

bpo-23890: unittest.TestCase.assertRaises() now manually breaks a
reference cycle to not keep objects alive longer than expected.

7 years agobpo-29677: DOC: clarify documentation for `round` (#357)
Gerrit Holl [Mon, 27 Mar 2017 22:15:20 +0000 (23:15 +0100)]
bpo-29677: DOC: clarify documentation for `round` (#357)

* DOC: clarify documentation for `round`

Clarified that `round` can take a negative value for *ndigits*.

* DOC: remove trailing whitespace in previous commit

remove trailing whitespace in previous commit

7 years agobpo-29924: Remove useless argument (#854)
Sylvain [Mon, 27 Mar 2017 21:36:08 +0000 (23:36 +0200)]
bpo-29924: Remove useless argument (#854)

7 years agobpo-29912: Remove redundant tests in list_tests that are found in seq_tests (GH-847)
Jim Fasarakis-Hilliard [Mon, 27 Mar 2017 19:35:52 +0000 (22:35 +0300)]
bpo-29912: Remove redundant tests in list_tests that are found in seq_tests (GH-847)

7 years agobpo-29919: Remove unused imports found by pyflakes (#137)
Victor Stinner [Mon, 27 Mar 2017 14:05:26 +0000 (16:05 +0200)]
bpo-29919: Remove unused imports found by pyflakes (#137)

Make also minor PEP8 coding style fixes on modified imports.

7 years agobpo-20552: Use specific asserts in bytes tests (#790)
Serhiy Storchaka [Mon, 27 Mar 2017 10:59:07 +0000 (13:59 +0300)]
bpo-20552: Use specific asserts in bytes tests (#790)

7 years agoMinor test cleanup (GH-837)
Zachary Ware [Mon, 27 Mar 2017 05:08:31 +0000 (00:08 -0500)]
Minor test cleanup (GH-837)

* Remove unused test file

* Remove duplicated text in sndhdrdata README

7 years agoTreat Sphinx warnings as errors (GH-832)
Zachary Ware [Mon, 27 Mar 2017 02:31:31 +0000 (21:31 -0500)]
Treat Sphinx warnings as errors (GH-832)

7 years agoimport sys before we use it on line 9 (#828)
Jelle Zijlstra [Mon, 27 Mar 2017 02:17:39 +0000 (19:17 -0700)]
import sys before we use it on line 9 (#828)

7 years agoFixes sphinx warning in "changelog" misc/NEWS (#829)
Michael Seifert [Mon, 27 Mar 2017 01:25:57 +0000 (03:25 +0200)]
Fixes sphinx warning in "changelog" misc/NEWS (#829)

7 years agoFix small exception typos in Lib (#818)
Jim Fasarakis-Hilliard [Sun, 26 Mar 2017 20:59:08 +0000 (23:59 +0300)]
Fix small exception typos in Lib (#818)

7 years agobpo-29888: Fix the link referring to the "Python download page" (GH-824)
cocoatomo [Sun, 26 Mar 2017 17:32:24 +0000 (02:32 +0900)]
bpo-29888: Fix the link referring to the "Python download page" (GH-824)

7 years agobpo-29900: Simplify pathlib implementation. (#814)
Serhiy Storchaka [Sat, 25 Mar 2017 11:42:11 +0000 (13:42 +0200)]
bpo-29900: Simplify pathlib implementation. (#814)

Since functions in the os module support path-like objects, explicit
converting Path to str no longer needed.

7 years agobpo-29901: Improve support of path-like objects in zipapp. (#815)
Serhiy Storchaka [Sat, 25 Mar 2017 11:05:23 +0000 (13:05 +0200)]
bpo-29901: Improve support of path-like objects in zipapp. (#815)

Now general path-like objects are supported, not just pathlib.Path.

7 years agoSimplify partial.__new__. (#813)
Serhiy Storchaka [Sat, 25 Mar 2017 10:10:16 +0000 (12:10 +0200)]
Simplify partial.__new__. (#813)

Fast paths in partial.__new__ no longer needed since concatenating with empty
tuple was optimized.

7 years agobpo-29862: Fix grammar in importlib.reload() exception (GH-809)
Mandeep Bhutani [Sat, 25 Mar 2017 04:51:21 +0000 (23:51 -0500)]
bpo-29862: Fix grammar in importlib.reload() exception (GH-809)

7 years agobpo-29892: Fix wrong markup on doc-lib-functions (GH-802)
NAKAMURA Osamu [Sat, 25 Mar 2017 02:55:08 +0000 (11:55 +0900)]
bpo-29892: Fix wrong markup on doc-lib-functions (GH-802)

7 years agobpo-28810: Document remaining bytecode changes in 3.6 (GH-651)
Ivan Levkivskyi [Fri, 24 Mar 2017 21:05:04 +0000 (22:05 +0100)]
bpo-28810: Document remaining bytecode changes in 3.6 (GH-651)

7 years agobpo-29894: Deprecate returning an instance of complex subclass from __complex__....
Serhiy Storchaka [Fri, 24 Mar 2017 19:28:43 +0000 (21:28 +0200)]
bpo-29894: Deprecate returning an instance of complex subclass from __complex__. (#798)

In a future versions of Python this can be an error.

7 years agobpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True) (#805)
Serhiy Storchaka [Fri, 24 Mar 2017 18:51:53 +0000 (20:51 +0200)]
bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True) (#805)

when the OS gives priority to errors such as EACCES over EEXIST.

7 years agobpo-29861: release references to multiprocessing Pool tasks (#743)
Antoine Pitrou [Fri, 24 Mar 2017 12:52:11 +0000 (13:52 +0100)]
bpo-29861: release references to multiprocessing Pool tasks (#743)

* bpo-29861: release references to multiprocessing Pool tasks

Release references to tasks, their arguments and their results as soon
as they are finished, instead of keeping them alive until another task
arrives.

* Comments in test

7 years agobpo-19930: The mode argument of os.makedirs() no longer affects the file (#799)
Serhiy Storchaka [Fri, 24 Mar 2017 11:27:42 +0000 (13:27 +0200)]
bpo-19930: The mode argument of os.makedirs() no longer affects the file (#799)

permission bits of newly-created intermediate-level directories.

7 years agodoc: Fix small typos in library/multiprocessing (GH-698)
Sylvain Bellemare [Fri, 24 Mar 2017 08:26:07 +0000 (09:26 +0100)]
doc: Fix small typos in library/multiprocessing (GH-698)

7 years ago`make tags` fixes (GH-717)
Alex Dzyoba [Fri, 24 Mar 2017 08:23:43 +0000 (11:23 +0300)]
`make tags` fixes (GH-717)

* Fix `make tags` warnings

`make tags` target tries to find C sources and headers in "Grammar" and
"Mac" folders and generates these warnings:

    ctags: Warning: cannot open source file "Grammar/*.[ch]" : No such file or directory
    ctags: Warning: cannot open source file "Mac/*.[ch]" : No such file or directory

This commit changes $SRCDIRS variable in configure.ac to remote these
directories. This variable is used only for tags generation.

Also, "configure" was regenerated with `autoreconf`.

* Fix `make tags` fail on non-default tag names

When ctags overrides default tags filename (e.g. `-f .tags`) `make tags`
is failed because it assumes to see default `tags` filename:

    sort: cannot read: tags: No such file or directory

This commit explicitly specifies "tags" filename for tags generation.

7 years agofaulthandler: Restore the old sigaltstack during teardown (#777)
Christophe Zeitouny [Thu, 23 Mar 2017 17:14:29 +0000 (10:14 -0700)]
faulthandler: Restore the old sigaltstack during teardown (#777)

7 years agoUse NULL rather than 0. (#778)
Serhiy Storchaka [Thu, 23 Mar 2017 15:53:47 +0000 (17:53 +0200)]
Use NULL rather than 0. (#778)

There was few cases of using literal 0 instead of NULL in the context of
pointers.  While this was a legitimate C code, using NULL rather than 0 makes
the code clearer.

7 years agobpo-6532: Make the thread id an unsigned integer. (#781)
Serhiy Storchaka [Thu, 23 Mar 2017 13:48:39 +0000 (15:48 +0200)]
bpo-6532: Make the thread id an unsigned integer. (#781)

* bpo-6532: Make the thread id an unsigned integer.

From C API side the type of results of PyThread_start_new_thread() and
PyThread_get_thread_ident(), the id parameter of
PyThreadState_SetAsyncExc(), and the thread_id field of PyThreadState
changed from "long" to "unsigned long".

* Restore a check in thread_get_ident().

7 years agobpo-29728: Provide socket.TCP_NOTSENT_LOWAT (#477)
Nathaniel J. Smith [Thu, 23 Mar 2017 03:56:55 +0000 (20:56 -0700)]
bpo-29728: Provide socket.TCP_NOTSENT_LOWAT (#477)

* Provide socket.TCP_NOTSENT_LOWAT
* New TCP option available on recent MacOS and Linux.
* Document addition of TCP_NOTSENT_LOWAT

7 years agoRemove an outdated statement in execution model docs (GH-754)
Ivan Levkivskyi [Thu, 23 Mar 2017 00:54:53 +0000 (01:54 +0100)]
Remove an outdated statement in execution model docs (GH-754)

7 years agodoc: minor fix for library/profile (GH-761)
INADA Naoki [Wed, 22 Mar 2017 07:56:36 +0000 (16:56 +0900)]
doc: minor fix for library/profile (GH-761)

7 years agofix function name in tabnanny documentation (GH-759)
Jelle Zijlstra [Wed, 22 Mar 2017 06:53:57 +0000 (23:53 -0700)]
fix function name in tabnanny documentation (GH-759)

7 years agobpo-29859: Fix error messages from return codes for pthread_* calls (GH-741)
Daniel Birnstiel [Tue, 21 Mar 2017 13:06:06 +0000 (14:06 +0100)]
bpo-29859: Fix error messages from return codes for pthread_* calls (GH-741)