Victor Stinner
1fb399ba4e
bpo-34715: Revert "Simplify PyInit_timezone. (GH-9323)" (GH-9366)
...
This reverts commit afde1c1a05 .
2018-09-17 13:56:17 -07:00
Steve Dower
c6fd1c1c3a
bpo-32533: Fixed thread-safety of error handling in _ssl. (GH-7158)
2018-09-17 11:34:47 -07:00
Serhiy Storchaka
12a69db908
Convert os.readlink() to Argument Clinic. (GH-8778)
...
Also convert os.get_blocking() and os.set_blocking().
2018-09-17 15:38:27 +03:00
Alexandru Ardelean
b3a271fc0c
bpo-34710: fix SSL module build (GH-9347)
...
Include ``openssl/dh.h`` header file to fix implicit function declaration of ``DH_free()``.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com >
2018-09-17 04:53:31 -07:00
Vladimir Matveev
7843caeb90
bpo-34603, ctypes/libffi_msvc: Fix returning structs from functions (GH-9258)
2018-09-15 22:36:29 -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
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
Benjamin Peterson
b93062b7fb
bpo-34672: Don't pass NULL to gmtime_r. (GH-9312)
2018-09-14 10:39:13 -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
ea13740a37
bpo-34674: Assume unistd.h exists on Unix. (GH-9290)
2018-09-13 21:57:31 -07:00
Raymond Hettinger
1401018da1
Remove wording that could be deemed to be perjorative (GH-9287)
2018-09-13 21:17:40 -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
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
Oren Milman
0bd1a2dcfd
bpo-31577: Fix a crash in os.utime() in case of a bad ns argument. (GH-3752)
2018-09-12 22:14:35 +03:00
Benjamin Peterson
e502451781
closes bpo-34646: Remove PyAPI_* macros from declarations. (GH-9218)
2018-09-12 12:06:42 -07:00
Sergey Fedoseev
7f0d59f3a8
Simplified implementation of _sre.ascii_iscased(). (GH-9097)
2018-09-12 15:49:09 +03:00
Cheryl Sabella
731ff68eee
closes bpo-25041: Document AF_PACKET socket address format. (GH-4092)
2018-09-11 17:32:15 -07:00
Benjamin Peterson
b9bf9d025e
Delete old expat comment. (GH-9197)
2018-09-11 17:17:39 -07:00
Max Bélanger
4859ba0d2c
closes bpo-31903: Release the GIL when calling into SystemConfiguration (GH-4178)
2018-09-11 16:14:00 -07:00
Sergey Fedoseev
ec014a101a
bpo-34636: Use fast path for more chars in SRE category macros. (GH-9170)
...
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 -->
2018-09-11 15:47:59 -07:00
Tal Einat
c4bccd3c76
bpo-20180: convert most of itertoolsmodule.c to use Argument Clinic (GH-9164)
2018-09-11 14:49:13 -07:00
Oren Milman
24bd50bdcc
closes bpo-31608: Fix a crash in methods of a subclass of _collections.deque with a bad __new__(). (GH-3788)
2018-09-11 11:46:55 -07:00
Berker Peksag
b690b9b047
bpo-29386: Pass -1 to epoll_wait() when timeout is < -1 (GH-9040)
...
Although the kernel accepts any negative value for timeout, the
documented value to block indefinitely is -1.
This commit also makes the code similar to select.poll.poll().
2018-09-11 20:29:48 +03:00
Andrew Svetlov
0baa72f4b2
bpo-34622: Extract asyncio exceptions into a separate module (GH-9141)
2018-09-11 10:13:04 -07:00
Oren Milman
735171e334
closes bpo-29832: Remove "getsockaddrarg" from error messages. (GH-3163)
2018-09-11 09:51:29 -07:00