summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-6721: Hold logging locks across fork() (GH-4071)Gregory P. Smith2018-09-143-0/+119
| | | | | | | | | bpo-6721: When os.fork() was called while another thread holds a logging lock, the child process may deadlock when it tries to log. This fixes that by acquiring all logging locks before fork and releasing them afterwards. A regression test that fails before this change is included. Within the new unittest itself: There is a small _potential_ due to mixing of fork and a thread in the child process if the parent's thread happened to hold a non-reentrant library call lock (malloc?) when the os.fork() happens. buildbots and time will tell if this actually manifests itself in this test or not. :/ A functionality test that avoids that would be a challenge. An alternate test that isn't trying to produce the deadlock itself but just checking that the release and acquire calls are made would be the next best alternative if so.
* bpo-34674: Assume unistd.h exists on Unix. (GH-9290)Benjamin Peterson2018-09-145-41/+3
|
* bpo-34552: Clarify built-in types comparisons (GH-9035)Windson yang2018-09-142-10/+10
| | | Some updates to ancient text about comparisons; fixes bp-34552.
* Remove wording that could be deemed to be perjorative (GH-9287)Raymond Hettinger2018-09-144-6/+6
|
* bpo-33649: Polish asyncio subprocess and sync docs (GH-9285)Carol Willing2018-09-142-13/+12
| | | | | | Second pass for asyncio subprocess and sync docs. https://bugs.python.org/issue33649
* bpo-34666: Implement stream.awrite() and stream.aclose() (GH-9274)Andrew Svetlov2018-09-134-22/+79
|
* Fix test_asyncio for AIX - do not call transport.get_extra_info('sockname') ↵Michael Felt2018-09-132-4/+8
| | | | (#8907)
* polish exceptions and platforms (GH-9272)Carol Willing2018-09-132-6/+8
|
* bpo-31132: Remove prlimit permission test. (GH-9280)Benjamin Peterson2018-09-131-3/+0
| | | | | | | | | This test is doesn't work when the test process is privledged, which is hard to detect. https://bugs.python.org/issue34668
* closes bpo-34664: Only check file permission bits of newly created ↵Benjamin Peterson2018-09-131-2/+2
| | | | directories. (GH-9273)
* bpo-34247: add porting note to 3.7 What's New (GH-9223)Ned Deily2018-09-131-0/+10
|
* bpo-34661: Fix test skipping call. (GH-9266)Benjamin Peterson2018-09-131-1/+1
|
* closes bpo-34661: Fix test_shutil if unzip doesn't support -t. (GH-9262)Benjamin Peterson2018-09-132-0/+3
|
* bpo-34653: Removed unused function PyParser_SimpleParseStringFilename. (GH-9260)Eric V. Smith2018-09-132-6/+1
| | | | | | This function was not in any .h file and was not used by Python, so removing it is safe. https://bugs.python.org/issue34653
* bpo-34658: Fix rare subprocess prexec_fn fork error. (GH-9255)Gregory P. Smith2018-09-132-7/+16
| | | | | | | | | [bpo-34658](https://www.bugs.python.org/issue34658): Fix a rare interpreter unhandled exception state SystemError only seen when using subprocess with a preexec_fn while an after_parent handler has been registered with os.register_at_fork and the fork system call fails. https://bugs.python.org/issue34658
* Polish doc as part of asyncio doc improvement (GH-9185)Carol Willing2018-09-131-18/+17
|
* bpo-34200: Fix non-determinism of test_pkg (GH-9248)Gregory P. Smith2018-09-132-8/+12
| | | | | | This causes the tearDown code to only unimport the test modules specifically created as part of each test via the self.mkhier method rather than abusing test.support.modules_setup() and the scary test.support.modules_cleanup() code. https://bugs.python.org/issue34200
* bpo-34652: Remove lchmod from the big func checking block. (GH-9247)Benjamin Peterson2018-09-132-3/+9
| | | | A fix for 883702ebb8bbfa749ef0040d1b58d6222bf589ee.
* closes bpo-34641: Further restrict the LHS of keyword argument function call ↵Benjamin Peterson2018-09-134-14/+50
| | | | syntax. (GH-9212)
* edit async policy doc - second pass (GH-9235)Carol Willing2018-09-131-6/+6
|
* bpo-33649: Edit asyncio eventloop doc - second pass (GH-9233)Carol Willing2018-09-131-62/+68
|
* closes bpo-34654: Tolerate + at the beginning of large years. (GH-9238)Benjamin Peterson2018-09-121-3/+3
|
* closes bpo-34652: Always disable lchmod on Linux. (GH-9234)Benjamin Peterson2018-09-123-0/+19
|
* bpo-32933: Implement __iter__ method on mock_open() (GH-5974)Tony Flury2018-09-125-3/+37
|
* closes bpo-34650: Check if sched_getscheduler returns ENOSYS before ↵Benjamin Peterson2018-09-121-3/+15
| | | | | declaring it supported. (GH-9228) musl doesn't support the scheduler API, but declares stubs that alway return ENOSYS.
* bpo-34649: Add missing NULL checks to _encoded_const() (GH-9225)Alexey Izbyshev2018-09-121-3/+3
| | | Reported by Svace static analyzer.
* bpo-34630: Skip logging SSL certificate errors by asyncio code (GH-9169)Andrew Svetlov2018-09-122-0/+5
|
* closes bpo-34004: Skip lock interruption tests on musl. (GH-9224)Benjamin Peterson2018-09-122-1/+10
| | | | | | | | | | | Returning EINTR from pthread semaphore or lock acquisition is an optional POSIX feature. musl does not provide this feature, so some threadsignal tests fail when Python is built against it. There's no good way to test for musl, so we skip if we're on Linux and not using glibc pthreads. Also, hedge in the threading documentation about when we can provide interrupts from lock acquisition.
* bpo-31577: Fix a crash in os.utime() in case of a bad ns argument. (GH-3752)Oren Milman2018-09-123-0/+24
|
* closes bpo-34646: Remove PyAPI_* macros from declarations. (GH-9218)Benjamin Peterson2018-09-1213-31/+33
|
* bpo-34536: raise error for invalid _missing_ results (GH-9147)Ethan Furman2018-09-123-1/+54
| | | * raise exception if _missing_ returns None or invalid type
* bpo-34638: Store a weak reference to stream reader to break strong ↵Andrew Svetlov2018-09-124-10/+160
| | | | | | | | references loop (GH-9201) Store a weak reference to stream readerfor breaking strong references It breaks the strong reference loop between reader and protocol and allows to detect and close the socket if the stream is deleted (garbage collected)
* bpo-33649: Fix doc to reflect changes in 47cd10d (or bpo-23347) (GH-9219)Bumsik Kim2018-09-121-2/+1
|
* bpo-34637: Make the *start* argument for *sum()* visible as a keyword ↵Raymond Hettinger2018-09-125-8/+16
| | | | argument. (GH-9208)
* bpo-34282: Fix Enum._convert shadowing members named _convert (GH-8568)orlnub1232018-09-127-53/+99
| | | | | * Fix enum members getting shadowed by parent attributes * Move Enum._convert to EnumMeta._convert_ * Deprecate _convert
* bpo-33437: add __new__ vs __init__ example (GH-9145)Ethan Furman2018-09-122-0/+32
| | | | | | Improve Enum docs. https://bugs.python.org/issue33437
* closes bpo-34640: Remove the TANH_PRESERVES_ZERO_SIGN configure check. (GH-9206)Benjamin Peterson2018-09-125-81/+0
|
* Simplified implementation of _sre.ascii_iscased(). (GH-9097)Sergey Fedoseev2018-09-121-6/+1
|
* closes bpo-25041: Document AF_PACKET socket address format. (GH-4092)Cheryl Sabella2018-09-123-13/+39
|
* Delete old expat comment. (GH-9197)Benjamin Peterson2018-09-121-8/+0
|
* bpo-33649: Cleanup asyncio/streams and asyncio/synchronization docs (GH-9192)Yury Selivanov2018-09-123-286/+263
|
* bpo-34605: Replace "pliant children" with "helpers" (GH-9195)Victor Stinner2018-09-111-1/+1
| | | | | | | | | In distutils.command.install, replace "pliant children" (previously, it was "pliant slaves") with "helpers". <!-- issue-number: [bpo-34605](https://www.bugs.python.org/issue34605) --> https://bugs.python.org/issue34605 <!-- /issue-number -->
* Remove configure check LOG1P_DROPS_ZERO_SIGN. (GH-9193)Benjamin Peterson2018-09-114-86/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is unused. <!-- Thanks for your contribution! Please read this comment in its entirety. It's quite important. # Pull Request title It should be in the following format: ``` bpo-NNNN: Summary of the changes made ``` Where: bpo-NNNN refers to the issue number in the https://bugs.python.org. Most PRs will require an issue number. Trivial changes, like fixing a typo, do not need an issue. # Backport Pull Request title If this is a backport PR (PR made against branches other than `master`), please ensure that the PR title is in the following format: ``` [X.Y] <title from the original PR> (GH-NNNN) ``` Where: [X.Y] is the branch name, e.g. [3.6]. GH-NNNN refers to the PR number from `master`. -->
* bpo-1621: Avoid signed integer overflow in set_table_resize(). (GH-9059)Sergey Fedoseev2018-09-112-8/+5
| | | | | | | | Address a C undefined behavior signed integer overflow issue in set object table resizing. Our -fwrapv compiler flag and practical reasons why sets are unlikely to get this large should mean this was never an issue but it was incorrect code that generates code analysis warnings. <!-- issue-number: [bpo-1621](https://www.bugs.python.org/issue1621) --> https://bugs.python.org/issue1621 <!-- /issue-number -->
* closes bpo-31903: Release the GIL when calling into SystemConfiguration ↵Max Bélanger2018-09-112-0/+8
| | | | (GH-4178)
* bpo-34636: Use fast path for more chars in SRE category macros. (GH-9170)Sergey Fedoseev2018-09-112-3/+5
| | | | | | | When handling \s, \d, or \w (and their inverse) escapes in bytes regexes this a small but measurable performance improvement. <!-- issue-number: [bpo-34636](https://www.bugs.python.org/issue34636) --> https://bugs.python.org/issue34636 <!-- /issue-number -->
* Make sure the line comes from the same node as the col offset. (GH-9189)Benjamin Peterson2018-09-111-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Followup to 90fc8980bbcc5c7dcced3627fe172b0bfd193a3b. <!-- Thanks for your contribution! Please read this comment in its entirety. It's quite important. # Pull Request title It should be in the following format: ``` bpo-NNNN: Summary of the changes made ``` Where: bpo-NNNN refers to the issue number in the https://bugs.python.org. Most PRs will require an issue number. Trivial changes, like fixing a typo, do not need an issue. # Backport Pull Request title If this is a backport PR (PR made against branches other than `master`), please ensure that the PR title is in the following format: ``` [X.Y] <title from the original PR> (GH-NNNN) ``` Where: [X.Y] is the branch name, e.g. [3.6]. GH-NNNN refers to the PR number from `master`. -->
* Revert "bpo-34595: Add %T format to PyUnicode_FromFormatV() (GH-9080)" (GH-9187)Victor Stinner2018-09-114-66/+53
| | | This reverts commit 886483e2b9bbabf60ab769683269b873381dd5ee.
* Initialize a variable to make the compiler happy. (GH-9153)Benjamin Peterson2018-09-111-1/+1
| | | | | | | | | | | GCC complains: Python/pylifecycle.c: In function ‘_Py_InitializeFromConfig’: Python/pylifecycle.c:900:13: warning: ‘interp’ may be used uninitialized in this function [-Wmaybe-uninitialized] err = _Py_InitializeMainInterpreter(interp, &main_config); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This seems spurious since &interp is passed to _Py_InitializeCore. Anyway, we can easily initialize to quiet the warning.
* bpo-20180: convert most of itertoolsmodule.c to use Argument Clinic (GH-9164)Tal Einat2018-09-112-219/+694
|