Tal Einat
c4bccd3c76
bpo-20180: convert most of itertoolsmodule.c to use Argument Clinic (GH-9164)
2018-09-11 14:49:13 -07:00
guoci
90fc8980bb
closes bpo-31902: Fix the col_offset attribute for ast.Async* nodes to point to the "async" keyword. (GH-4175)
...
Previously, col_offset points to the keyword after "async".
2018-09-11 14:45:45 -07:00
Danish Prakash
9c223794c7
bpo-34365: Update date object documentation (GH-8814)
...
Python 3.x does not fall back to comparing object addresses when comparing two `dt` objects.
<!-- issue-number: [bpo-34365](https://www.bugs.python.org/issue34365 ) -->
https://bugs.python.org/issue34365
<!-- /issue-number -->
2018-09-11 13:59:23 -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
Bram
b4ec36200a
bpo-34613: document the correct value of limit argument of asyncio.StreamReader (GH-9121)
...
The default value of asyncio.StreamReader *limit* is `_DEFAULT_LIMIT` instead of `None`.
<!-- issue-number: [bpo-34613](https://www.bugs.python.org/issue34613 ) -->
https://bugs.python.org/issue34613
<!-- /issue-number -->
2018-09-11 11:45:26 -07:00
Steve Dower
b7d613fc56
Update VSTS to Azure DevOps and simplify dependencies (GH-9168)
2018-09-11 10:47:46 -07:00
wim glenn
08bcf647d8
bpo-28617 Fixed docs inaccuracies about the types that support membership tests (GH-9086)
...
<!-- issue-number: [bpo-28617](https://www.bugs.python.org/issue28617 ) -->
https://bugs.python.org/issue28617
<!-- /issue-number -->
2018-09-11 10:44:52 -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
Yury Selivanov
7c7605ff11
bpo-33649: First asyncio docs improvement pass (GH-9142)
...
Rewritten/updated sections:
* Event Loop APIs
* Transports & Protocols
* Streams
* Exceptions
* Policies
* Queues
* Subprocesses
* Platforms
2018-09-11 09:54:40 -07:00
Oren Milman
735171e334
closes bpo-29832: Remove "getsockaddrarg" from error messages. (GH-3163)
2018-09-11 09:51:29 -07:00
Zackery Spytz
73870bfeb9
closes bpo-32490: Fix filename duplication in subprocess exception message. (GH-9163)
...
8621bb5d93
sets the filename in directly in the FileNotFoundError, so we may revert the earlier fix 5f78040057
.
2018-09-11 08:54:07 -07:00
Ned Deily
3102e24d83
bpo-34405: Update to OpenSSL 1.1.0i for macOS installer builds (GH-9166)
2018-09-11 08:52:40 -07:00
Andrés Delfino
a378254186
closes bpo-33883: Mention type checkers in the FAQ. (GH-7760)
2018-09-10 22:12:41 -07:00
Zackery Spytz
3666b3c1f6
bpo-33032: Mention the implicit cache in struct.Struct() docs (GH-7700)
...
Mention the implicit cache in struct.Struct() docs.
Consistent with the re.compile documentation note.
2018-09-10 21:37:33 -07:00
Benjamin Peterson
5033aa77aa
bpo-34625: Update vendorized expat version to 2.2.6. (GH-9150)
2018-09-10 21:04:00 -07:00
Raymond Hettinger
2064bb6d57
Fix missing line from example shell session (GH-9143)
2018-09-10 18:43:08 -07:00
Matthias Bussonnier
ffa198c642
bpo-33487: improve BZ2File Deprecation and documentation. (GH-6785)
...
Emit warning when None passed explicitly, list Python version since
deprecation in warning message and docs.
2018-09-10 18:15:56 -07:00
Lew Kurtz
f019579828
bpo-33460: remove ellipsis that look like continuation prompts (GH-7851)
...
Remove ellipsis that look like continuation prompts,
has a side benefit of putting rest of error message in proper text color.
2018-09-10 18:13:08 -07:00
Ville Skyttä
959625b5a5
Use bytes.hex instead of binascii.hexlify in pbkdf2_hmac example (GH-8420)
2018-09-10 18:07:19 -07:00
Daniel Hahler
e578fa162e
Lib/test/support: fix typo in docstring (GH-8506)
2018-09-10 18:04:33 -07:00
Anthony Sottile
ed2e9ab804
Remove obsolete comment about latin-1 in `normalize_encoding` (GH-8739)
...
This docstring has drifted since python2: ca079a3ea3/Lib/encodings/__init__.py (L68)
2018-09-10 17:54:37 -07:00
Gregory P. Smith
ce34410b8b
bpo-32270: Don't close stdin/out/err in pass_fds (GH-6242)
...
When subprocess.Popen() stdin= stdout= or stderr= handles are specified
and appear in pass_fds=, don't close the original fds after dup'ing them.
This implementation and unittest primarily came from @izbyshev (see the PR)
See also b89b52f284
This also removes the old manual p2cread, c2pwrite, and errwrite closing logic
as inheritable flags and _close_open_fds takes care of that properly today without special treatment.
This code is within child_exec() where it is the only thread so there is no
race condition between the dup and _Py_set_inheritable_async_safe call.
2018-09-10 17:46:22 -07:00
Zachary Ware
880d42a3b2
bpo-8110: Refactor platform detection in subprocess (GH-9053)
...
Check for functionality via imports rather than checking sys.platform
specifically for Windows
2018-09-10 16:16:08 -07:00
NotAFile
28ea4c2847
switch descriptor howto to return value annotation (GH-7796)
2018-09-10 14:35:38 -07:00
Tal Einat
3286ce4ade
bpo-20180: itertools.groupby Argument Clinic conversion (GH-4170)
2018-09-10 11:33:08 -07:00
Rahul Jha
9430652535
bpo-33217: Raise TypeError for non-Enum lookups in Enums (GH-6651)
...
* bpo-33217: Raise TypeError for non-Enum lookups in Enums
2018-09-10 11:21:04 -07:00
Matthias Bussonnier
51a4743d19
bpo-33604: Remove deprecated HMAC default value marked for removal in 3.8 (GH-7063)
...
HMAC's digestmod was deprecated marked for removal, this removes it as planned.
2018-09-10 11:10:01 -07:00
Sebastian Rittau
78deb7f332
closes bpo-34525: Fix smtplib's authobject() documentation (GH-8965)
2018-09-10 10:29:43 -07:00
Berker Peksag
9797b7ae44
bpo-26502: Implement FrameSummary.__len__() (GH-8632)
2018-09-10 10:02:33 -07:00
Peter Eisentraut
0e0bc4e221
Fix misleading mentions of tp_size in comments (GH-9093)
...
Many type object initializations labeled a field "tp_size" in the
comment, but the name of that field is tp_basicsize.
2018-09-10 09:46:08 -07:00
Benjamin Peterson
d545869d08
bpo-34588: Fix an off-by-one error in traceback formatting. (GH-9077)
...
The recursive frame pruning code always undercounted the number of elided frames
by one. That is, in the "[Previous line repeated N more times]" message, N would
always be one too few. Near the recursive pruning cutoff, one frame could be
silently dropped. That situation is demonstrated in the OP of the bug report.
The fix is to start the identical frame counter at 1.
2018-09-10 08:43:10 -07:00
Tal Einat
54752533b2
bpo-30977: rework code changes according to post-merge code review (GH-9106)
...
also mention the change and its consequences in What's New
2018-09-10 16:11:04 +03:00
Sergey Fedoseev
1f36bf6077
Test dict values iterator pickling with pickle.HIGHEST_PROTOCOL. (GH-9052)
2018-09-10 17:42:09 +08:00
Rémy HUBSCHER
290a60bd8a
Revert "Fix misindented yaml in logging how to example (GH-8604)" (GH-9081)
...
This reverts commit 10b59f1b01
.
2018-09-10 17:07:15 +08:00
Zackery Spytz
5061a74a4c
Remove unneeded PyUnicode_READY() in tokenizer.c (GH-9114)
2018-09-10 09:27:31 +03:00
Julien Malard
0afada163c
bpo-34421 avoid unicode error in distutils logging (GH-8799)
...
This caused installation errors in some cases on Windows.
Patch by Julien Malard.
2018-09-08 16:31:26 -04:00
Serhiy Storchaka
d700f97b62
bpo-20104: Change the file_actions parameter of os.posix_spawn(). (GH-6725)
...
* Make its default value an empty tuple instead of None.
* Make it a keyword-only parameter.
2018-09-08 14:48:18 +03:00
Pablo Galindo
fa221d804f
bpo-33083: Update "What's new" with math.factorial changes (GH-9109)
...
* Add elimination of non-int-like parameters in math.factorial to "What's new".
2018-09-08 00:16:17 +01:00
Pablo Galindo
5b7a2cb5ca
bpo-34246: Make sure test_smtplib always cleans resources when finished (GH-9108)
...
* Make sure that when some of the tests in test_smtplib fail, the allocated threads
and sockets are not leaked.
* Use support.join_thread() instead of thread.join() to avoid infinite blocks.
2018-09-08 00:15:22 +01:00
Pablo Aguiar
d5fbe9b1a3
bpo-34246: Use no mutable default args in smtplib (GH-8554)
...
Some methods of the SMTP class use mutable default arguments. Specially
`send_message` is affected as it mutates one of the args by appending items
to it, which has side effects on further calls.
2018-09-07 23:04:48 +01:00
Zackery Spytz
4e519377b1
bpo-23855: Add missing NULL checks for malloc() in _msi.c (GH-9038)
2018-09-08 01:02:56 +03:00
William Grzybowski
28658485a5
bpo-34604: Fix possible mojibake in pwd.getpwnam() and grp.getgrnam() (GH-9098)
...
Pass the user/group name as Unicode to the formatting function,
instead of always decoding a bytes string from UTF-8.
2018-09-07 19:10:39 +02:00
Victor Stinner
7e610bcdf1
bpo-34605: childs => children (GH-9102)
2018-09-07 18:13:10 +02:00
Victor Stinner
886483e2b9
bpo-34595: Add %T format to PyUnicode_FromFormatV() (GH-9080)
...
* Add %T format to PyUnicode_FromFormatV(), and so to
PyUnicode_FromFormat() and PyErr_Format(), to format an object type
name: equivalent to "%s" with Py_TYPE(obj)->tp_name.
* Replace Py_TYPE(obj)->tp_name with %T format in unicodeobject.c.
* Add unit test on %T format.
* Rename unicode_fromformat_write_cstr() to
unicode_fromformat_write_utf8(), to make the intent more explicit.
2018-09-07 18:00:58 +02:00
Pablo Galindo
254a4663d8
bpo-20104: Add flag capabilities to posix_spawn (GH-6693)
...
Implement the "attributes objects" parameter of `os.posix_spawn` to complete the implementation and fully cover the underlying API.
2018-09-07 16:44:24 +01:00
Victor Stinner
5e922658fb
bpo-34605: Avoid master/slave terms (GH-9101)
...
* Replace "master process" with "parent process"
* Replace "master option mappings" with "main option mappings"
* Replace "master pattern object" with "main pattern object"
* ssl: replace "master" with "server"
* And some other similar changes
2018-09-07 17:30:33 +02:00
Victor Stinner
012f5b968a
bpo-34605, libregrtest: Rename --slaveargs to --worker-args (GH-9099)
...
Rename also run_tests_slave() to run_tests_worker().
2018-09-07 17:20:42 +02:00
William Grzybowski
23e65b2555
bpo-33625: Release GIL for grp.getgr{nam,gid} and pwd.getpw{nam,uid} (GH-7081)
...
Release GIL on grp.getgrnam(), grp.getgrgid(), pwd.getpwnam() and
pwd.getpwuid() if reentrant variants of these functions are available.
Patch by William Grzybowski.
2018-09-07 14:06:15 +02:00
Julien Palard
25fa141487
Doc: Missing 'f' in an f-string. (GH-9074)
2018-09-07 11:31:47 +02:00