Ezio Melotti
3d07349d19
Add myself for HTML-related modules ( #9325 )
2018-09-14 20:14:16 -07:00
Yury Selivanov
805e27eff6
bpo-33649: Fix asyncio-dev (GH-9324)
2018-09-14 16:57:11 -07:00
Benjamin Peterson
afde1c1a05
Simplify PyInit_timezone. (GH-9323)
...
Assume tzname exists. Only use a hack to compute altzone if it's not defined.
2018-09-14 16:21:32 -07:00
Eitan Adler
24f6846920
bpo-33486: regen autotools files using autoupdate+autoreconf (GH-6853)
2018-09-14 15:55:20 -07:00
Pablo Galindo
3d18b50a12
bpo-34685: Skip posix_spawn scheduler tests on BSD (GH-9316)
...
* Skip posix_spawn scheduler tests on BSD. We were already skyping similar tests as the behaviour can depend on the implementation in some cases.
2018-09-14 15:12:22 -07:00
Yury Selivanov
7372c3bbef
bpo-33649: Add high-level APIs cheat-sheet (GH-9319)
2018-09-14 15:11:24 -07:00
Yury Selivanov
6c7316439d
bpo-33649: Refresh asyncio docs landing page (GH-9322)
2018-09-14 14:57:39 -07:00
Grant
5acccfaf68
Grammar fix (GH-9318)
2018-09-14 14:37:48 -07:00
Eric Snow
5903296045
bpo-34651: Only allow the main interpreter to fork. (gh-9279)
...
When os.fork() is called (on platforms that support it) all threads but the current one are destroyed in the child process. Consequently we must ensure that all but the associated interpreter are likewise destroyed. The main interpreter is critical for runtime operation, so we must ensure that fork only happens in the main interpreter.
https://bugs.python.org/issue34651
2018-09-14 14:17:20 -07:00
Yury Selivanov
3faaa8857a
bpo-33649: Refresh Tasks and Futures pages ( #9314 )
...
* bpo-33649: Refresh Tasks and Futures pages
* Fixes
* Fix markup
2018-09-14 13:32:07 -07:00
Tony Flury
ad8a000420
closes bpo-28955: Clarified comparisons between NaN and number in reference documentation (GH-5982)
...
Co-authored-by: Benjamin Peterson <benjamin@python.org>
2018-09-14 10:48:50 -07:00
Benjamin Peterson
b93062b7fb
bpo-34672: Don't pass NULL to gmtime_r. (GH-9312)
2018-09-14 10:39:13 -07:00
Andrés Delfino
271818fe27
Fix "Python" casing in a few places (GH-9001)
2018-09-14 10:13:09 -07:00
Carol Willing
c9d66f0ed4
bpo-33649 Polish asyncio docs on queues, protocols, and subproccesses ( #9306 )
...
* small clarification
* edits to protocols doc
* Edit async queue doc
2018-09-14 10:06:55 -07:00
Benjamin Peterson
5633c4f342
bpo-34672: Try to pass the C library's own timezone strings back to it. (GH-9288)
2018-09-14 09:09:04 -07:00
Benjamin Peterson
a4414ef20b
Don't run AC_STRUCT_TIMEZONE twice. (GH-9305)
2018-09-14 08:58:57 -07:00
Eric V. Smith
9b9d97dd13
bpo-34363: dataclasses.asdict() and .astuple() now handle fields which are namedtuples. (GH-9151)
2018-09-14 11:32:16 -04:00
Raymond Hettinger
73820a60cc
Fix compiler warning with a type cast (GH-9300)
2018-09-14 01:35:59 -07:00
Raymond Hettinger
00bc08ec11
Fix-up parenthesis, organization, and NULL check (GH-9297)
2018-09-14 01:00:11 -07:00
Raymond Hettinger
902bcd9a1e
Note that distinct argument patterns can be cached separately (GH-9298)
2018-09-14 00:53:20 -07:00
Lisa Roach
5ac704306f
bpo-33073: Adding as_integer_ratio to ints. (GH-8750)
2018-09-13 23:56:23 -07:00
觉
83df50ea57
Change the xkcd link in comment over https. (GH-5452)
2018-09-13 22:45:00 -07:00
Gregory P. Smith
19003841e9
bpo-6721: Hold logging locks across fork() (GH-4071)
...
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.
2018-09-13 22:08:31 -07:00
Benjamin Peterson
ea13740a37
bpo-34674: Assume unistd.h exists on Unix. (GH-9290)
2018-09-13 21:57:31 -07:00
Windson yang
1aeba7458d
bpo-34552: Clarify built-in types comparisons (GH-9035)
...
Some updates to ancient text about comparisons; fixes bp-34552.
2018-09-13 21:50:18 -07:00
Raymond Hettinger
1401018da1
Remove wording that could be deemed to be perjorative (GH-9287)
2018-09-13 21:17:40 -07:00
Carol Willing
4e824e9649
bpo-33649: Polish asyncio subprocess and sync docs (GH-9285)
...
Second pass for asyncio subprocess and sync docs.
https://bugs.python.org/issue33649
2018-09-13 18:28:19 -07:00
Andrew Svetlov
11194c877c
bpo-34666: Implement stream.awrite() and stream.aclose() (GH-9274)
2018-09-13 16:53:49 -07:00
Michael Felt
413118ebf3
Fix test_asyncio for AIX - do not call transport.get_extra_info('sockname') ( #8907 )
2018-09-13 16:35:56 -07:00
Carol Willing
a3c8ba7235
polish exceptions and platforms (GH-9272)
2018-09-13 16:14:41 -07:00
Benjamin Peterson
01e0afa994
bpo-31132: Remove prlimit permission test. (GH-9280)
...
This test is doesn't work when the test process is privledged, which is hard to detect.
https://bugs.python.org/issue34668
2018-09-13 14:53:09 -07:00
Benjamin Peterson
84db4a9978
closes bpo-34664: Only check file permission bits of newly created directories. (GH-9273)
2018-09-13 12:00:14 -07:00
Ned Deily
66755cbb1e
bpo-34247: add porting note to 3.7 What's New (GH-9223)
2018-09-13 11:49:47 -07:00
Benjamin Peterson
e78734d579
bpo-34661: Fix test skipping call. (GH-9266)
2018-09-13 10:57:23 -07:00
Benjamin Peterson
a710ebd21b
closes bpo-34661: Fix test_shutil if unzip doesn't support -t. (GH-9262)
2018-09-13 10:08:46 -07:00
Eric V. Smith
53c427e839
bpo-34653: Removed unused function PyParser_SimpleParseStringFilename. (GH-9260)
...
This function was not in any .h file and was not used by Python, so removing it is safe.
https://bugs.python.org/issue34653
2018-09-13 09:34:55 -07:00
Gregory P. Smith
a20b6adb5a
bpo-34658: Fix rare subprocess prexec_fn fork error. (GH-9255)
...
[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
2018-09-13 04:30:10 -07:00
Carol Willing
1abba455d1
Polish doc as part of asyncio doc improvement (GH-9185)
2018-09-12 22:40:37 -07:00
Gregory P. Smith
4ae8ece5cd
bpo-34200: Fix non-determinism of test_pkg (GH-9248)
...
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
2018-09-12 17:58:40 -07:00
Benjamin Peterson
ed709d5699
bpo-34652: Remove lchmod from the big func checking block. (GH-9247)
...
A fix for 883702ebb8
.
2018-09-12 17:22:11 -07:00
Benjamin Peterson
c9a71dd223
closes bpo-34641: Further restrict the LHS of keyword argument function call syntax. (GH-9212)
2018-09-12 17:14:39 -07:00
Carol Willing
6d9767fb26
edit async policy doc - second pass (GH-9235)
2018-09-12 17:09:08 -07:00
Carol Willing
5b7cbd602e
bpo-33649: Edit asyncio eventloop doc - second pass (GH-9233)
2018-09-12 17:05:17 -07:00
Benjamin Peterson
e1a34ceb54
closes bpo-34654: Tolerate + at the beginning of large years. (GH-9238)
2018-09-12 16:21:36 -07:00
Benjamin Peterson
40caa05fa4
closes bpo-34652: Always disable lchmod on Linux. (GH-9234)
2018-09-12 15:52:40 -07:00
Tony Flury
2087023fde
bpo-32933: Implement __iter__ method on mock_open() (GH-5974)
2018-09-13 01:21:16 +03:00
Benjamin Peterson
c7042224b8
closes bpo-34650: Check if sched_getscheduler returns ENOSYS before declaring it supported. (GH-9228)
...
musl doesn't support the scheduler API, but declares stubs that alway return ENOSYS.
2018-09-12 15:12:24 -07:00
Alexey Izbyshev
6f82bffd2d
bpo-34649: Add missing NULL checks to _encoded_const() (GH-9225)
...
Reported by Svace static analyzer.
2018-09-13 00:05:20 +03:00
Andrew Svetlov
0dd71807a9
bpo-34630: Skip logging SSL certificate errors by asyncio code (GH-9169)
2018-09-12 14:03:54 -07:00
Benjamin Peterson
5b10d5111d
closes bpo-34004: Skip lock interruption tests on musl. (GH-9224)
...
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.
2018-09-12 13:48:03 -07:00