Bernt Røskar Brenna [Tue, 10 Sep 2019 12:43:58 +0000 (14:43 +0200)]
closes bpo-25461: Update os.walk() docstring to match the online docs. (GH-11836)
Emmanuel Arias [Tue, 10 Sep 2019 11:46:12 +0000 (08:46 -0300)]
bpo-36373: Deprecate explicit loop parameter in all public asyncio APIs [queue] (GH-13950)
This PR deprecate explicit loop parameters in all public asyncio APIs
This issues is split to be easier to review.
fourth step: queue.py
https://bugs.python.org/issue36373
Jeroen Demeyer [Tue, 10 Sep 2019 11:21:57 +0000 (13:21 +0200)]
bpo-37619: update_one_slot() should not ignore wrapper descriptors for wrong type (GH-14836)
Petr Viktorin [Tue, 10 Sep 2019 11:21:09 +0000 (12:21 +0100)]
bpo-37499: Test various C calling conventions (GH-15776)
Add functions with various calling conventions to `_testcapi`, expose them as module-level functions, bound methods, class methods, and static methods, and test calling them and introspecting them through GDB.
https://bugs.python.org/issue37499
Co-authored-by: Jeroen Demeyer <J.Demeyer@UGent.be>
Automerge-Triggered-By: @pganssle
Lisa Roach [Tue, 10 Sep 2019 11:18:40 +0000 (12:18 +0100)]
bpo-37251: Removes __code__ check from _is_async_obj. (GH-15830)
Dino Viehland [Tue, 10 Sep 2019 11:01:20 +0000 (12:01 +0100)]
bpo-38069: Convert _posixsubprocess to PEP-384 (GH-15780)
Summary:
Eliminate uses of `_Py_IDENTIFIER` from `_posixsubprocess`, replacing them with interned strings.
Also tries to find an existing version of the module, which will allow subinterpreters.
https://bugs.python.org/issue38069
Emmanuel Arias [Tue, 10 Sep 2019 10:55:07 +0000 (07:55 -0300)]
bpo-36373: Deprecate explicit loop parameter in all public asyncio APIs [locks] (GH-13920)
This PR deprecate explicit loop parameters in all public asyncio APIs
This issues is split to be easier to review.
Third step: locks.py
https://bugs.python.org/issue36373
Jeroen Demeyer [Tue, 10 Sep 2019 10:41:59 +0000 (12:41 +0200)]
bpo-36971: add subsections in C API "Common Object Structures" page (#13446)
Benjamin Peterson [Tue, 10 Sep 2019 10:37:59 +0000 (11:37 +0100)]
bpo-38068: Clean up gettimeofday configure logic. (GH-15775)
Assume gettimeofday exists and takes two arguments.
Xtreak [Tue, 10 Sep 2019 10:37:17 +0000 (11:37 +0100)]
bpo-37052: Add examples for mocking async iterators and context managers (GH-14660)
Add examples for mocking asynchronous iterators and asynchronous context managers.
https://bugs.python.org/issue37052
Dino Viehland [Tue, 10 Sep 2019 10:33:30 +0000 (11:33 +0100)]
bpo-38071: Make termios PEP-384 compatible (GH-15785)
Make the termios module PEP-384 compatible.
Dino Viehland [Tue, 10 Sep 2019 10:30:36 +0000 (11:30 +0100)]
bpo-38072: PEP-384 grpmodule (GH-15788)
Make the grp module PEP-384 compliant.
Kenta Murata [Tue, 10 Sep 2019 10:29:56 +0000 (19:29 +0900)]
Fix calling order of PyEval_InitThreads. (GH-4602)
As described in Doc/c-api/init.rst, PyEval_InitThreads() cannot be called
before Py_Initialize() function.
Benjamin Peterson [Tue, 10 Sep 2019 10:28:29 +0000 (11:28 +0100)]
Remove macOS tests from Travis. (GH-15809)
Azure runs macOS, so we don't need Travis to do it.
hliu0 [Tue, 10 Sep 2019 10:28:11 +0000 (18:28 +0800)]
Skip zoneinfo tests on VxWorks (#13535)
Dino Viehland [Tue, 10 Sep 2019 10:27:03 +0000 (11:27 +0100)]
bpo-38074: Make zlib extension module PEP-384 compatible (GH-15792)
Updated zlibmodule.c to be PEP 384 compliant.
Dino Viehland [Tue, 10 Sep 2019 10:18:37 +0000 (11:18 +0100)]
bpo-38076: Make struct module PEP-384 compatible (#15805)
* PEP-384 _struct
* More PEP-384 fixes for _struct
Summary: Add a couple of more fixes for `_struct` that were previously missed such as removing `tp_*` accessors and using `PyBytesWriter` instead of calling `PyBytes_FromStringAndSize` with `NULL`. Also added a test to confirm that `iter_unpack` type is still uninstantiable.
* 📜🤖 Added by blurb_it.
Serhiy Storchaka [Tue, 10 Sep 2019 10:02:30 +0000 (13:02 +0300)]
bpo-38083: Minor improvements in asdl_c.py and Python-ast.c. (GH-15824)
* Use the const qualifier for constant C strings.
* Intern field and attribute names.
* Temporary incref a borrowed reference to a list item.
dalgarno [Tue, 10 Sep 2019 09:45:07 +0000 (10:45 +0100)]
Fix typo in dict object comment (#15814)
Neil Schemenauer [Tue, 10 Sep 2019 09:44:20 +0000 (02:44 -0700)]
bpo-37725: have "make clean" remove PGO task data (#15033)
Change "clean" makefile target to also clean the program guided
optimization (PGO) data. Previously you would have to use "make
clean" and "make profile-removal", or "make clobber".
Greg Price [Tue, 10 Sep 2019 09:29:26 +0000 (02:29 -0700)]
bpo-38043: Move unicodedata.normalize tests into test_unicodedata. (GH-15712)
Having these in a separate file from the one that's named after the
module in the usual way makes it very easy to miss them when looking
for tests for these two functions.
(In fact when working recently on is_normalized, I'd been surprised to
see no tests for it here and concluded the function had evaded being
tested at all. I'd gone as far as to write up some tests myself
before I spotted this other file.)
Mostly this just means moving all the one file's code into the other,
and moving code from the module toplevel to inside the test class to
keep it tidily separate from the rest of the file's code.
There's one substantive change, which reduces by a bit the amount of
code to be moved: we drop the `x > sys.maxunicode` conditional and all
the `RangeError` logic behind it. Now if that condition ever occurs
it will cause an error at `chr(x)`, and a test failure. That's the
right result because, since PEP 393 in Python 3.3, there is no longer
such a thing as an "unsupported character".
Jeroen Demeyer [Tue, 10 Sep 2019 09:22:05 +0000 (11:22 +0200)]
Expand comment explaining update_one_slot (GH-14810)
Nikhil [Tue, 10 Sep 2019 08:55:34 +0000 (01:55 -0700)]
bpo-25237: Documentation for tkinter modules (GH-1870)
Greg Price [Tue, 10 Sep 2019 08:51:04 +0000 (01:51 -0700)]
Cut tricky `goto` that isn't needed, in _PyBytes_DecodeEscape. (GH-15825)
This is the sort of `goto` that requires the reader to stare hard at
the code to unpick what it's doing.
On doing so, the answer is... not very much!
* It jumps from the bottom of the loop to almost the top; the effect
is to bypass the loop condition `s < end` and also the
`if`-condition `*s != '\\'`, acting as if both are true.
* We've just decremented `s`, after incrementing it in the `switch`
condition. So it has the same value as when `s == end` failed.
Before that was another increment... and before that we had
`s < end`. So `s < end` true, then increment, then `s == end`
false... that means `s < end` is still true.
* Also this means `s` points to the same character as it did for the
`switch` condition. And there was a `case '\\'`, which we didn't
hit -- so `*s != '\\'` is also true.
* That means this has no effect on the behavior! The most it might do
is an optimization -- we get to skip those two checks, because (as
just proven above) we know they're true.
* But gosh, this is the *invalid escape sequence* path. This does not
seem like the kind of code path that calls for extreme optimization
tricks.
So, take the `goto` and the label out.
Perhaps the compiler will notice the exact same facts we showed above,
and generate identical code. Or perhaps it won't! That'll be OK.
But then, crucially, if some future edit to this loop causes the
reasoning above to *stop* holding true... the compiler will adjust
this jump accordingly. One of us fallible humans might not.
Vinay Sharma [Tue, 10 Sep 2019 06:48:24 +0000 (12:18 +0530)]
bpo-38018: Fix test for multiprocessing.shared_memory in BSD systems (GH-15821)
Terry Jan Reedy [Tue, 10 Sep 2019 03:10:44 +0000 (23:10 -0400)]
bpo-38077: IDLE no longer adds 'argv' to the user namespace (GH-15818)
This only happened when initializing the subprocess to run a module.
This recent bug only affected 3.7.4 and 3.8.0b2 to 3.8.0b4.
Jean-François B [Mon, 9 Sep 2019 21:52:03 +0000 (23:52 +0200)]
bpo-34293: Fix PDF documentation paper size (GH-8585)
The "A4" pdfs were previously the wrong size due to a change in the options in Sphinx 1.5.
See also sphinx-doc/sphinx#5235
Paul Monson [Mon, 9 Sep 2019 21:11:17 +0000 (14:11 -0700)]
bpo-36511: clean up python process before deploy on ARM Windows buildbots (GH-14431)
Sergey Fedoseev [Mon, 9 Sep 2019 20:40:58 +0000 (01:40 +0500)]
Correct overflow check in PyTuple_New() (GH-14838)
Serhiy Storchaka [Mon, 9 Sep 2019 20:36:13 +0000 (23:36 +0300)]
bpo-38049: Add command-line interface for the ast module. (GH-15724)
Lisa Roach [Mon, 9 Sep 2019 16:54:13 +0000 (17:54 +0100)]
bpo-37383: Updates docs to reflect AsyncMock call_count after await. (#15761)
* bpo-351428: Updates documentation to reflect AsyncMock call_count after await.
* Adds skip and fixes warning.
* Removes extra >>>.
* Adds ... in front of await mock().
Vinay Sharma [Mon, 9 Sep 2019 16:48:55 +0000 (22:18 +0530)]
bpo-38018: Increase code coverage for multiprocessing.shared_memory (GH-15662)
Greg Price [Mon, 9 Sep 2019 16:37:13 +0000 (09:37 -0700)]
bpo-36502: Update link to UAX #44, the Unicode doc on the UCD. (GH-15301)
The link we have points to the version from Unicode 6.0.0, dated 2010.
There have been numerous updates to it since then:
https://www.unicode.org/reports/tr44/#Modifications
Change the link to one that points to the current version. Also, use HTTPS.
Serhiy Storchaka [Mon, 9 Sep 2019 16:33:13 +0000 (19:33 +0300)]
bpo-37995: Add an option to ast.dump() to produce a multiline output. (GH-15631)
Sergey Fedoseev [Mon, 9 Sep 2019 16:28:34 +0000 (21:28 +0500)]
bpo-37840: Fix handling of negative indices in bytearray_getitem() (GH-15250)
Christian Heimes [Mon, 9 Sep 2019 16:06:55 +0000 (18:06 +0200)]
bpo-35941: Fix performance regression in new code (GH-12610)
Accumulate certificates in a set instead of doing a costly list contain
operation. A Windows cert store can easily contain over hundred
certificates. The old code would result in way over 5,000 comparison
operations
Signed-off-by: Christian Heimes <christian@python.org>
Orivej Desh [Mon, 9 Sep 2019 16:05:21 +0000 (16:05 +0000)]
bpo-37649: Fix exec_prefix check (GH-14897)
Hasan Ramezani [Mon, 9 Sep 2019 15:58:21 +0000 (17:58 +0200)]
Fix punctuation in `os.execvpe` docstring. (GH-15051)
Anthony Sottile [Mon, 9 Sep 2019 15:54:34 +0000 (08:54 -0700)]
bpo-35803: Document and test dir=PathLike for tempfile (GH-11644)
Co-Authored-By: Ammar Askar <ammar_askar@hotmail.com>
Boris Verhovsky [Mon, 9 Sep 2019 15:51:56 +0000 (09:51 -0600)]
Clarify that shutil's copy functions can accept path-like values (GH-15141)
Richard Sanger [Mon, 9 Sep 2019 15:49:47 +0000 (03:49 +1200)]
Fix docs bz.open default mode (GH-15100)
bz2.open()'s default mode is rb, not r
Zackery Spytz [Mon, 9 Sep 2019 15:48:32 +0000 (09:48 -0600)]
bpo-36279: Ensure os.wait3() rusage is initialized (GH-15111)
Co-Authored-By: David Wilson <dw@botanicus.net>
Victor Stinner [Mon, 9 Sep 2019 15:44:59 +0000 (17:44 +0200)]
bpo-38070: visit_decref() calls _PyObject_IsFreed() (GH-15782)
In debug mode, visit_decref() now calls _PyObject_IsFreed() to ensure
that the object is not freed. If it's freed, the program fails with
an assertion error and Python dumps informations about the freed
object.
Greg Price [Mon, 9 Sep 2019 15:20:40 +0000 (08:20 -0700)]
bpo-37758: Cut always-constant conditionals on sys.maxunicode. (GH-15302)
Since PEP 393 in Python 3.3, this value is always 0x10ffff, the
maximum codepoint in Unicode; there's no longer such a thing as a
UCS-2 build of Python, which couldn't properly represent some
characters.
There are a couple of spots left where we still condition on the value
of this constant. Take them out.
Anthony Sottile [Mon, 9 Sep 2019 15:17:50 +0000 (08:17 -0700)]
bpo-20490: Improve circular import error message (GH-15308)
Antoine [Mon, 9 Sep 2019 15:00:44 +0000 (17:00 +0200)]
Minor changes in Doc/faq/library. (#15449)
* Minor changes.
* Update Doc/faq/library.rst
Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
* Apply suggestions from aeros167.
* Update Doc/faq/library.rst
Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
* Apply suggestions from aeros167 + re-add a "a" that was accidentally deleted.
Victor Stinner [Mon, 9 Sep 2019 14:55:58 +0000 (16:55 +0200)]
bpo-38006: Avoid closure in weakref.WeakValueDictionary (GH-15641)
weakref.WeakValueDictionary defines a local remove() function used as
callback for weak references. This function was created with a
closure. Modify the implementation to avoid the closure.
Zeth [Mon, 9 Sep 2019 14:50:36 +0000 (15:50 +0100)]
bpo-37876: Tests for ROT-13 codec (GH-15314)
The Rot-13 codec is for educational use but does not have unit tests,
dragging down test coverage. This adds a few very simple tests.
Mario Corchero [Mon, 9 Sep 2019 14:18:06 +0000 (15:18 +0100)]
docs: Add references to AsyncMock in unittest.mock.patch (#13681)
Update the docs as patch can now return an AsyncMock if the patched
object is an async function.
Greg Price [Mon, 9 Sep 2019 14:16:33 +0000 (07:16 -0700)]
Mark files as executable that are meant as scripts. (GH-15354)
This is the converse of GH-15353 -- in addition to plenty of
scripts in the tree that are marked with the executable bit
(and so can be directly executed), there are a few that have
a leading `#!` which could let them be executed, but it doesn't
do anything because they don't have the executable bit set.
Here's a command which finds such files and marks them. The
first line finds files in the tree with a `#!` line *anywhere*;
the next-to-last step checks that the *first* line is actually of
that form. In between we filter out files that already have the
bit set, and some files that are meant as fragments to be
consumed by one or another kind of preprocessor.
$ git grep -l '^#!' \
| grep -vxFf <( \
git ls-files --stage \
| perl -lane 'print $F[3] if (!/^100644/)' \
) \
| grep -ve '\.in$' -e '^Doc/includes/' \
| while read f; do
head -c2 "$f" | grep -qxF '#!' \
&& chmod a+x "$f"; \
done
Alan Yee [Mon, 9 Sep 2019 14:15:43 +0000 (07:15 -0700)]
bpo-38059: Using sys.exit() over exit() in inspect.py (GH-15666)
Constants added by the site module like exit() "should not be used in programs"
Jon Janzen [Mon, 9 Sep 2019 14:13:43 +0000 (09:13 -0500)]
bpo-38053 Update documentation for plistlib (GH-15727)
* Update documentation for plistlib
- Update "Mac OS X" to "Apple" since plists are used more widely than just macOS
- Re-add the UID class documentation (oops, removed in GH-15615)
Pablo Galindo [Mon, 9 Sep 2019 14:08:23 +0000 (15:08 +0100)]
Fix typo in the algorithm description (GH-15774)
Naitree Zhu [Mon, 9 Sep 2019 14:06:48 +0000 (22:06 +0800)]
bpo-34596: Fallback to a default reason when @unittest.skip is uncalled (#9082)
* bpo-34596: Fallback to a default reason when @unittest.skip is uncalled
* Change default reason to empty string
* Fix rst formatting of NEWS entry
Vinay Sajip [Mon, 9 Sep 2019 13:50:38 +0000 (14:50 +0100)]
bpo-37662: Documented venv.EnvBuilder.upgrade_dependencies(). (GH-15768)
animalize [Mon, 9 Sep 2019 13:46:26 +0000 (21:46 +0800)]
bpo-38037: Fix reference counters in signal module (GH-15753)
Steve Dower [Mon, 9 Sep 2019 13:24:15 +0000 (06:24 -0700)]
bpo-32587: Fixes unsafe downcast in PC/winreg.c (GH-15766)
Mickaël Schoentgen [Mon, 9 Sep 2019 13:08:54 +0000 (15:08 +0200)]
bpo-26185: Fix repr() on empty ZipInfo object (#13441)
* bpo-26185: Fix repr() on empty ZipInfo object
It was failing on AttributeError due to inexistant
but required attributes file_size and compress_size.
They are now initialized to 0 in ZipInfo.__init__().
* Remove useless hasattr() in ZipInfo._open_to_write()
* Completely remove file_size setting in _open_to_write().
Ashwin Vishnu [Mon, 9 Sep 2019 12:42:27 +0000 (14:42 +0200)]
Fix typo in math.prod example (GH-15614)
neonene [Mon, 9 Sep 2019 12:33:43 +0000 (21:33 +0900)]
bpo-37702: Fix SSL's certificate-store leak on Windows (GH-15632)
ssl_collect_certificates function in _ssl.c has a memory leak.
Calling CertOpenStore() and CertAddStoreToCollection(), a store's refcnt gets incremented by 2.
But CertCloseStore() is called only once and the refcnt leaves 1.
T. Wouters [Mon, 9 Sep 2019 12:17:18 +0000 (05:17 -0700)]
bpo-37589: Add a few missing dependencies on .h files in the Makefile. (GH-15757)
The missing dependencies prevented incremental builds from working when you touched any
of these files. Based on GH-14758 by @vemakereporter.
Steve Dower [Mon, 9 Sep 2019 12:15:07 +0000 (05:15 -0700)]
bpo-37283: Ensure command-line and unattend.xml setting override previously detected states in Windows installer (GH-15759)
Benjamin Peterson [Mon, 9 Sep 2019 12:13:00 +0000 (05:13 -0700)]
bpo-34652 again: Remove lchmod from the default AC_CHECK_FUNCS list. (GH-15758)
David Röthlisberger [Mon, 9 Sep 2019 11:29:54 +0000 (12:29 +0100)]
logging.Formatter docs: Add missing `validate` parameter, clarify `style` parameter (GH-15222)
Xtreak [Mon, 9 Sep 2019 10:55:22 +0000 (16:25 +0530)]
bpo-37212: Preserve keyword argument order in unittest.mock.call and error messages (GH-14310)
Julien Palard [Mon, 9 Sep 2019 10:54:56 +0000 (12:54 +0200)]
Doc: Fix PDF build (NoUri). (GH-15739)
Anthony Sottile [Mon, 9 Sep 2019 10:49:33 +0000 (03:49 -0700)]
Future-proof .travis.yml for Python 3.10 (GH-14831)
Daniel Hahler [Mon, 9 Sep 2019 10:45:58 +0000 (12:45 +0200)]
bpo-36250: ignore ValueError from signal in non-main thread (GH-12251)
Authored-By: blueyed <github@thequod.de>
Zackery Spytz [Mon, 9 Sep 2019 09:35:08 +0000 (03:35 -0600)]
bpo-37705: Improve the implementation of winerror_to_errno() (GH-15623)
winerror_to_errno() is no longer automatically generated.
Do not rely on the old _dosmapperr() function.
Add ERROR_NO_UNICODE_TRANSLATION (1113) -> EILSEQ.
Greg Price [Mon, 9 Sep 2019 09:34:50 +0000 (02:34 -0700)]
bpo-37936: Avoid ignoring files that we actually do track. (GH-15451)
There were about 14 files that are actually in the repo but that are
covered by the rules in .gitignore.
Git itself takes no notice of what .gitignore says about files that
it's already tracking... but the discrepancy can be confusing to a
human that adds a new file unexpectedly covered by these rules, as
well as to non-Git software that looks at .gitignore but doesn't
implement this wrinkle in its semantics. (E.g., `rg`.)
Several of these are from rules that apply more broadly than
intended: for example, `Makefile` applies to `Doc/Makefile` and
`Tools/freeze/test/Makefile`, whereas `/Makefile` means only the
`Makefile` at the repo's root.
And the `Modules/Setup` rule simply wasn't updated after
961d54c5c.
https://bugs.python.org/issue37936
Zackery Spytz [Mon, 9 Sep 2019 09:26:15 +0000 (03:26 -0600)]
bpo-32587: Make winreg.REG_MULTI_SZ support zero-length strings (#13239)
* bpo-32587: Make winreg.REG_MULTI_SZ support PendingFileRenameOperations
* Address review comments.
Zackery Spytz [Mon, 9 Sep 2019 09:20:39 +0000 (03:20 -0600)]
bpo-37445: Include FORMAT_MESSAGE_IGNORE_INSERTS in FormatMessageW() calls (GH-14462)
If FormatMessageW() is passed the FORMAT_MESSAGE_FROM_SYSTEM flag without FORMAT_MESSAGE_IGNORE_INSERTS, it will fail if there are insert sequences in the message definition.
Greg Price [Mon, 9 Sep 2019 09:16:31 +0000 (02:16 -0700)]
bpo-38043: Use `bool` for boolean flags on is_normalized_quickcheck. (GH-15711)
Ngalim Siregar [Mon, 9 Sep 2019 09:15:14 +0000 (16:15 +0700)]
bpo-11953: Extend table of Windows WSA* error codes (GH-15004)
Florian Bruhin [Mon, 9 Sep 2019 09:06:37 +0000 (11:06 +0200)]
bpo-15817: gdbinit: Document commands after defining them (GH-15021)
The gdb manual[1] says the following for "document":
The command commandname must already be defined.
[1] https://sourceware.org/gdb/current/onlinedocs/gdb/Define.html
And indeed when trying to use the gdbinit file with gdb 8.3, I get:
.../cpython/Misc/gdbinit:17: Error in sourced command file:
Undefined command: "pyo". Try "help".
Fix this by moving all documentation blocks after the define blocks.
This was introduced in GH-6384.
Xtreak [Mon, 9 Sep 2019 09:04:57 +0000 (14:34 +0530)]
Fix assertions regarding magic methods function body that was not executed (GH-14154)
Serhiy Storchaka [Mon, 9 Sep 2019 08:47:14 +0000 (11:47 +0300)]
bpo-34410: Fix a crash in the tee iterator when re-enter it. (GH-15625)
RuntimeError is now raised in this case.
Serhiy Storchaka [Mon, 9 Sep 2019 08:18:16 +0000 (11:18 +0300)]
Revert "Raise a RuntimeError when tee iterator is consumed from different threads (GH-15567)" (GH-15736)
This reverts commit
fa220ec7633e9674baccc28dde987f29d7f65141.
Raymond Hettinger [Sun, 8 Sep 2019 23:57:58 +0000 (16:57 -0700)]
bpo-36018: Address more reviewer feedback (GH-15733)
HongWeipeng [Sun, 8 Sep 2019 10:15:56 +0000 (18:15 +0800)]
bpo-36946:Fix possible signed integer overflow when handling slices. (GH-15639)
This is a complement to PR 13375.
Greg Price [Sun, 8 Sep 2019 09:42:13 +0000 (02:42 -0700)]
Correct Roman-numeral example in Unicode HOWTO. (GH-15541)
Dong-hee Na [Sun, 8 Sep 2019 08:54:02 +0000 (17:54 +0900)]
bpo-38038: Remove urllib.parse._splittype from xmlrpc.client. (GH-15703)
Sergey Fedoseev [Sat, 7 Sep 2019 07:44:36 +0000 (12:44 +0500)]
Remove some unused defines in multiprocessing.h. (GH-15661)
It looks like they are unused since
87cf220972c9cb400ddcd577962883dcc5dca51a.
Joannah Nanjekye [Sat, 7 Sep 2019 07:05:29 +0000 (04:05 -0300)]
bpo-20806: Reference both times(2) and times(3) and link to MSDN. (GH-15479)
Terry Jan Reedy [Fri, 6 Sep 2019 17:54:45 +0000 (13:54 -0400)]
bpo-38041: Refine IDLE Shell restart lines. (GH-15709)
Restart lines now always start with '=' and never end with ' ' and fill the width of the window unless that would require ending with ' ', which could be wrapped by itself and possible confusing the user.
Joannah Nanjekye [Fri, 6 Sep 2019 15:41:38 +0000 (12:41 -0300)]
bpo-15088 : Remove PyGen_NeedsFinalizing() (GH-15702)
Remove PyGen_NeedsFinalizing(): it was not
documented, tested or used anywhere within CPython after
the implementation of PEP 442.
Raymond Hettinger [Fri, 6 Sep 2019 06:02:27 +0000 (23:02 -0700)]
More refinements to the statistics docs (GH-15713)
animalize [Fri, 6 Sep 2019 06:00:56 +0000 (14:00 +0800)]
replace inline function `is_small_int` with a macro version (GH-15710)
Victor Stinner [Thu, 5 Sep 2019 16:09:46 +0000 (18:09 +0200)]
bpo-37064: Skip test_tools.test_pathfix if installed (GH-15705)
If Python is installed, skip test_tools.test_pathfix test because
Tools/scripts/pathfix.py script is not installed.
Joannah Nanjekye [Thu, 5 Sep 2019 16:06:49 +0000 (13:06 -0300)]
bpo-37878: Remove PyThreadState_DeleteCurrent() function (GH-15315)
* Rename PyThreadState_DeleteCurrent()
to _PyThreadState_DeleteCurrent()
* Move it to the internal C API
Co-Authored-By: Carol Willing <carolcode@willingconsulting.com>
Miro Hrončok [Thu, 5 Sep 2019 15:06:45 +0000 (17:06 +0200)]
bpo-36797: Fix a dead link in Doc/distutils/apiref (GH-15700)
https://bugs.python.org/issue36797
PatrikKopkan [Thu, 5 Sep 2019 14:54:54 +0000 (16:54 +0200)]
bpo-37064: Add option -k to Tools/scripts/pathfix.py (GH-15548)
Add flag -k to pathscript.py script: preserve shebang flags.
Andre Delfino [Thu, 5 Sep 2019 11:10:37 +0000 (08:10 -0300)]
Correct minor gramatical mistake in sys.settrace doc (GH-15637)
Jon Janzen [Thu, 5 Sep 2019 08:11:35 +0000 (03:11 -0500)]
bpo-36409: Remove old plistlib API deprecated in 3.4 (GH-15615)
* Remove implementation for old plistlib API deprecated in 3.4
Raymond Hettinger [Thu, 5 Sep 2019 08:03:14 +0000 (01:03 -0700)]
bpo-36324: Apply review comment from Jake Vanderplas (GH-15695)
Raymond Hettinger [Thu, 5 Sep 2019 07:18:47 +0000 (00:18 -0700)]
bpo-36324: Apply review comments from Allen Downey (GH-15693)
Inada Naoki [Thu, 5 Sep 2019 04:07:08 +0000 (13:07 +0900)]
bpo-38026: fix inspect.getattr_static (GH-15676)
It should avoid dynamic lookup including `isinstance`.
This is a regression caused by GH-5351.
GeeTransit [Thu, 5 Sep 2019 01:33:34 +0000 (21:33 -0400)]
bpo-37902: IDLE: Add scrolling for IDLE browsers. (#15368)
Modify the wheel event handler so it can also be used for module, path, and stack browsers.
Patch by George Zhang.
Dong-hee Na [Thu, 5 Sep 2019 00:34:35 +0000 (09:34 +0900)]
bpo-22347: Update mimetypes.guess_type to allow proper parsing of URLs (GH-15522)
https://bugs.python.org/issue22347
Terry Jan Reedy [Thu, 5 Sep 2019 00:20:08 +0000 (20:20 -0400)]
Fix idlelib.help comments (GH-15669)