summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.)
* bpo-41385: Fix test_executable_without_cwd on Windows (GH-21608)Serhiy Storchaka2020-07-261-2/+4
|
* bpo-39868: Add documentation for Assignment Expressions (walrus, PEP 572) ↵Shankar Jha2020-07-251-2/+19
| | | | (#18851)
* bpo-41314: fixed annotations __future__ version (GH-21616)YoSTEALTH2020-07-253-13/+15
| | | PEP 563 was updated to change the release where `from __future__ import annotations` becomes the default (and only) behavior from 4.0 to 3.10. Update `__future__.py` and its docs to reflect this.
* bpo-38731: Add --quiet option to py_compile CLI (GH-17134)Gregory Schevchenko2020-07-256-53/+137
|
* bpo-37309: NEWS for #41373 (GH-21612)Terry Jan Reedy2020-07-251-0/+4
|
* bpo-41373: IDLE: Fix saving files loaded with no newlines or mixed newlines ↵Serhiy Storchaka2020-07-252-0/+14
| | | | | | | (GH-21597) Fixes regression in 3.8.4 and 3.9.0b4. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-41317: Remove reader on cancellation in asyncio.loop.sock_accept() (#21595)Alex Grönholm2020-07-233-7/+27
|
* bpo-41366: Fix clang warning for sign conversion (GH-21592)Henry Schreiner2020-07-231-1/+1
|
* bpo-4630: Fix errors in Lib/idlelib/NEWS.txt (GH-21594)Zackery Spytz2020-07-232-3/+3
| | | Also one in news log.
* bpo-41182 selector: use DefaultSelector based upon implementation (GH-21257)Abhijeet Kasurde2020-07-232-4/+29
| | | | | | | | | | On some platform such as VMware ESXi, DefaultSelector fails to detect selector due to default value. This fix adds a check and uses the correct selector depending upon select implementation and actual call. Fixes: [bpo-41182]() Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Stick with the phrase "default parameter value" (GH-21590)Andre Delfino2020-07-221-2/+2
|
* bpo-41369 Update to libmpdec-2.5.1: new features (GH-21593)Stefan Krah2020-07-222-0/+377
|
* bpo-41341: Recursive evaluation of ForwardRef in get_type_hints (#21553)wyfo2020-07-223-6/+21
| | | | | | The issue raised by recursive evaluation is infinite recursion with recursive types. In that case, only the first recursive ForwardRef is evaluated.
* bpo-41364: Reduce import overhead of uuid module (GH-21586)Steve Dower2020-07-212-7/+10
|
* bpo-41283: Fix mismatched argument name for imghdr.what (GH-21501)Ammar Askar2020-07-211-4/+4
|
* bpo-40741: Update Windows build to include SQLite 3.32.3 (GH-21570)Steve Dower2020-07-204-3/+4
|
* bpo-41342: Convert int.__round__ to Argument Clinic (GH-21549)Serhiy Storchaka2020-07-203-8/+51
|
* bpo-41334: Convert constructors of str, bytes and bytearray to Argument ↵Serhiy Storchaka2020-07-209-93/+307
| | | | Clinic (GH-21535)
* bpo-41343: Convert methods of complex to Argument Clinic (GH-21550)Dong-hee Na2020-07-202-26/+99
|
* bpo-41336: Fix the error handling in zoneinfo_new_instance() (GH-21546)Zackery Spytz2020-07-201-1/+7
| | | | Do not call PyObject_CallMethod() with a live exception (like KeyboardInterrupt).
* Simple Documentation fix: Missing link to return type class. (GH-21291)Volker-Weissmann2020-07-201-2/+4
| | | Just a simple documentation fix: apply_async and map_async return a "multiprocessing.pool.AsyncResult Object", not a "result object".
* bpo-37703: improve asyncio.gather documentation regarding cancellation ↵Vinay Sharma2020-07-203-0/+17
| | | | | | | (GH-15312) These changes updates the doc to comprehensively mention the behaviour of gather.cancel() Automerge-Triggered-By: @asvetlov
* Doc: fix import of asdl.py when called from outside Doc/. (GH-21529)Julien Palard2020-07-201-1/+4
|