summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-41473: Skip test_gdb with gdb 9.2 to work around gdb bug (GH-21768)Victor Stinner2020-08-071-0/+5
| | | | | | gdb 9.2 on Fedora Rawhide is not reliable, see: * https://bugs.python.org/issue41473 * https://bugzilla.redhat.com/show_bug.cgi?id=1866884
* bpo-41477: Make ctypes optional in test_genericalias (GH-21766)Victor Stinner2020-08-072-38/+43
|
* bpo-40275: Use new test.support helper submodules in tests (GH-21764)Hai Shi2020-08-0715-84/+97
|
* bpo-41098: Doc: Add missing deprecated directives (GH-21162)Inada Naoki2020-08-072-2/+18
| | | | PyUnicodeEncodeError_Create has been deprecated with `Py_DEPRECATED` macro. But it was not documented.
* bpo-39871: Fix an error in a news entry (GH-21749)Zackery Spytz2020-08-071-1/+1
|
* bpo-41440: add os.cpu_count() support for VxWorks RTOS (GH-21685)pxinwr2020-08-073-0/+12
|
* bpo-41493: Refactoring dictresize (GH-21751)Inada Naoki2020-08-071-26/+41
| | | Split newsize calculation into new function. dictresize() now accepts exact newsize.
* bpo-41371: Handle lzma lib import error in test_zoneinfo.py (GH-21734)Nathan M2020-08-061-1/+2
|
* bpo-41492: Fixes the description appearing in UAC prompts on Windows (GH-21754)Steve Dower2020-08-064-1/+20
|
* bpo-40275: Use new test.support helper submodules in tests (GH-21743)Hai Shi2020-08-0620-56/+73
|
* bpo-41482: Fix error in ipaddress.IPv4Network docstring (GH-21736)Eric L. Frederich2020-08-051-1/+1
|
* bpo-40989: Fix compiler warning in winreg.c (GH-21722)Victor Stinner2020-08-051-1/+1
| | | Explicitly cast PyHKEYObject* to PyObject* to call _PyObject_Init().
* bpo-40726: handle uninitalized end_lineno on ast.increment_lineno (GH-20312)Batuhan Taskaya2020-08-053-3/+23
|
* bpo-36346: Doc: Update removal schedule of legacy Unicode (GH-21479)Inada Naoki2020-08-051-9/+30
| | | See PEP 623 for detail.
* bpo-41463: Generate information about jumps from 'opcode.py' rather than ↵Mark Shannon2020-08-043-59/+114
| | | | | duplicating it in 'compile.c' (GH-21714) Generate information about jumps from 'opcode.py' rather than duplicate it in 'compile.c'
* bpo-40275: Use new test.support helper submodules in tests (GH-21727)Hai Shi2020-08-0419-46/+58
|
* bpo-40275: Use new test.support helper submodules in tests (GH-21452)Hai Shi2020-08-046-54/+62
|
* bpo-36982: Add support for extended color functions in ncurses 6.1 (GH-17536)Hans Petter Jansson2020-08-047-224/+258
| | | Co-authored-by: Jeffrey Kintscher <websurfer@surf2c.net>
* bpo-41431: Optimize dict_merge for copy (GH-21674)Inada Naoki2020-08-043-34/+75
|
* bpo-41467: Fix asyncio recv_into() on Windows (GH-21720)Victor Stinner2020-08-042-1/+4
| | | | | On Windows, fix asyncio recv_into() return value when the socket/pipe is closed (BrokenPipeError): return 0 rather than an empty byte string (b'').
* bpo-38156: Fix compiler warning in PyOS_StdioReadline() (GH-21721)Victor Stinner2020-08-041-1/+1
| | | incr cannot be larger than INT_MAX: downcast to int explicitly.
* bpo-38912: regrtest logs unraisable exception into sys.__stderr__ (GH-21718)Victor Stinner2020-08-032-5/+15
| | | | regrtest_unraisable_hook() temporarily replaces sys.stderr with sys.__stderr__ to help to display errors when a test captures stderr.
* bpo-40275: Use new test.support helper submodules in tests (GH-21448)Hai Shi2020-08-0320-154/+185
|
* bpo-40275: Use new test.support helper submodules in tests (GH-21451)Hai Shi2020-08-0320-278/+324
|
* bpo-40275: Use new test.support helper submodules in tests (GH-21449)Hai Shi2020-08-0320-132/+154
|
* A (very) slight speed improvement for iterating over bytes (#21705)Guido van Rossum2020-08-031-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | My mentee @xvxvxvxvxv noticed that iterating over array.array is slightly faster than iterating over bytes. Looking at the source I observed that arrayiter_next() calls `getitem(ao, it->index++)` wheras striter_next() uses the idiom (paraphrased) item = PyLong_FromLong(seq->ob_sval[it->it_index]); if (item != NULL) ++it->it_next; return item; I'm not 100% sure but I think that the second version has fewer opportunity for the CPU to overlap the `index++` operation with the rest of the code (which in both cases involves a call). So here I am optimistically incrementing the index -- if the PyLong_FromLong() call fails, this will leave the iterator pointing at the next byte, but honestly I doubt that anyone would seriously consider resuming use of the iterator after that kind of failure (it would have to be a MemoryError). And the author of arrayiter_next() made the same consideration (or never ever gave it a thought :-). With this, a loop like for _ in b: pass is now slightly *faster* than the same thing over an equivalent array, rather than slightly *slower* (in both cases a few percent).
* bpo-41425: Make tkinter doc example runnable (GH-21706)Ankit Chandawala2020-08-032-13/+18
| | | | Co-authored-by: Ankit Chandawala <achandaw@amazon.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-41424: Remove extra words in Tkinter-Packer documentation (GH-21707)Nathan M2020-08-031-6/+5
|
* bpo-40979: refactored typing.rst; (mostly) same content, new sub-sections ↵Luciano Ramalho2020-08-022-614/+824
| | | | | | and ordering (#21574) Also added PEP 585 deprecation notes.
* random module: Convert a "while 1" to "while True (GH-21700)Raymond Hettinger2020-08-021-1/+1
|
* bpo-41421: Algebraic simplification for random.paretovariate() (GH-21695)Raymond Hettinger2020-08-012-1/+4
|
* bpo-40360: Handle PendingDeprecationWarning in test_lib2to3. (GH-21694)Karthikeyan Singaravelan2020-07-311-1/+4
|
* bpo-41323: Perform 'peephole' optimizations directly on the CFG. (GH-21517)Mark Shannon2020-07-3012-4577/+4358
| | | * Move 'peephole' optimizations into compile.c and perform them directly on the CFG.
* bpo-41426 Fix grammar in curses.getmouse() documentation (GH-21677)Sebastien Williams-Wynn2020-07-291-1/+1
| | | Automerge-Triggered-By: @brettcannon
* closes bpo-38156: Always handle interrupts in PyOS_StdioReadline. (GH-21569)Benjamin Peterson2020-07-292-30/+15
| | | | | This consolidates the handling of my_fgets return values, so that interrupts are always handled, even if they come after EOF. I believe PyOS_StdioReadline is still buggy in that I/O errors will not result in a proper Python exception being set. However, that is a separate issue.
* Remove incorrect mention of method.__class__ in descriptor docs (GH-21665)Yonatan Goldschmidt2020-07-281-4/+2
|
* Fix `List_Append` description, list is extracted at TOS1[-i] (GH-21465)Xiang Zhang2020-07-281-1/+1
|
* bpo-41412 and bpo-40948: Windows installer updates (GH-21656)Steve Dower2020-07-286-69/+25
| | | | | Prevent installation on Windows 8 and earlier. Download UCRT on demand when required (non-updated Windows 8.1 only) Add reference to py launcher to post-install message
* bpo-41328: Replace mention of Hudson CI with Travis CI and AppVeyor (GH-21653)Dmytro Litvinov2020-07-281-1/+1
|
* bpo-35328: Set VIRTUAL_ENV_PROMPT at venv activation (GH-21587)Zackery Spytz2020-07-287-1/+17
| | | Co-Authored-By: Baptiste Darthenay <baptiste.darthenay@gmail.com>
* Validate the AST produced by the parser in debug mode (GH-21643)Pablo Galindo2020-07-271-0/+9
| | | This will improve the debug experience if something fails in the produced AST. Previously, errors in the produced AST can be felt much later like in the garbage collector or the compiler, making debugging them much more difficult.
* bpo-41045: Document debug feature of f-strings ('=') (GH-21509)amaajemyfren2020-07-272-5/+33
| | | | | Co-Authored-By: Rishi <rishi93dev@gmail.com> Automerge-Triggered-By: @gvanrossum
* bpo-40939: Remove even more references to the old parser (GH-21642)Lysandros Nikolaou2020-07-275-17/+0
| | | Automerge-Triggered-By: @lysnikolaou
* bpo-40939: Use the new grammar for the grammar specification documentation ↵Pablo Galindo2020-07-274-210/+91
| | | | | | | (GH-19969) (We censor the heck out of actions and some other stuff using a custom "highlighter".) Co-authored-by: Guido van Rossum <guido@python.org>
* bpo-41401: Fix test_fspath_support in test_io. (GH-21640)Serhiy Storchaka2020-07-271-1/+1
| | | The error is exposed on non-UTF-8 locales.
* bpo-31904: Fix test_ftplib failures for VxWorks RTOS (GH-19447)pxinwr2020-07-272-0/+3
|
* bpo-41340: Removed fallback implementation for strdup (GH-21634)wasiher2020-07-275-29/+2
|
* bpo-41384: Raise TclError in tkinter.OptionMenu (GH-21601)Akuli2020-07-273-1/+7
| | | | | ... when an unknown option is passed. TypeError was being raised because a 2to3 fix was missing. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Fix atexitmodule doc (GH-21456)linchiwei1232020-07-261-1/+1
|
* Delete remaining references to Grammar/Grammar from docs (#21624)Guido van Rossum2020-07-267-396/+4
| | | (Ironically, the file itself remains, see https://github.com/we-like-parsers/cpython/issues/135.)