summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-44732: Rename types.Union to types.UnionType (#27342)Hasan2021-07-267-22/+22
| | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* Small text fixes for enum.rst (#27322)Elliot Waite2021-07-261-8/+9
| | | Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* bpo-44734: Fix precision in turtle tests (GH-27343)Logan Jones2021-07-262-11/+4
|
* Fix typo in dataclasses documentation (#27360)thomkeh2021-07-261-1/+1
| | | "affect" -> "effect"
* bpo-44590: Lazily allocate frame objects (GH-27077)Mark Shannon2021-07-2627-618/+1036
| | | | | | | | | | | | | | * Convert "specials" array to InterpreterFrame struct, adding f_lasti, f_state and other non-debug FrameObject fields to it. * Refactor, calls pushing the call to the interpreter upward toward _PyEval_Vector. * Compute f_back when on thread stack, only filling in value when frame object outlives stack invocation. * Move ownership of InterpreterFrame in generator from frame object to generator object. * Do not create frame objects for Python calls. * Do not create frame objects for generators.
* bpo-44693: Update __future__ entry in Doc/glossary.rst (GH-27349)Steven Hsu2021-07-262-6/+9
| | | | | | Replace sentence with confusing "pseudo-module" with two sentences separating future statements and the __future__ module. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-44600: Fix line numbers for pattern matching cleanup code (GH-27346)Charles Burkland2021-07-253-4/+89
|
* bpo-43950: support some multi-line expressions for PEP 657 (GH-27339)Batuhan Taskaya2021-07-254-17/+63
| | | | | | | | | | | | | | | | | | | | | This is basically something that I noticed up while fixing test runs for another issue. It is really common to have multiline calls, and when they fail the display is kind of weird since we omit the annotations. E.g; ``` $ ./python t.py Traceback (most recent call last): File "/home/isidentical/cpython/cpython/t.py", line 11, in <module> frame_1() ^^^^^^^^^ File "/home/isidentical/cpython/cpython/t.py", line 5, in frame_1 frame_2( File "/home/isidentical/cpython/cpython/t.py", line 2, in frame_2 return a / 0 / b / c ~~^~~ ZeroDivisionError: division by zero ``` This patch basically adds support for annotating the rest of the line, if the instruction covers multiple lines (start_line != end_line). Automerge-Triggered-By: GH:isidentical
* bpo-42378: fixed log truncation on logging shutdown (GH-27310)andrei kulakov2021-07-254-6/+32
| | | Automerge-Triggered-By: GH:vsajip
* bpo-44399: Update logging cookbook to document patterns to be avoided. ↵Vinay Sajip2021-07-251-0/+79
| | | | (GH-27348)
* bpo-43184: Add information about added attribute and method. (GH-27347)Vinay Sajip2021-07-251-0/+4
|
* bpo-44717: improve AttributeError on circular imports of submodules (GH-27338)Filipe Laíns2021-07-249-1734/+1809
|
* Fix typo in ssl documentation (GH-27329)Anton Grübel2021-07-241-2/+2
|
* bpo-44676: Serialize the union type using only public API (GH-27323)Serhiy Storchaka2021-07-244-80/+23
| | | | Remove also the _from_args() constructor.
* bpo-43950: support long lines in traceback.py (GH-27336)Batuhan Taskaya2021-07-242-1/+27
|
* bpo-43950: check against the raw string, not the pyobject (GH-27337)Batuhan Taskaya2021-07-241-1/+1
|
* bpo-44676: Fix reference leaks in union_reduce (GH-27332)Pablo Galindo Salgado2021-07-241-1/+1
| | | Automerge-Triggered-By: GH:pablogsal
* bpo-44731: Simplify the union type implementation (GH-27318)Serhiy Storchaka2021-07-243-94/+26
| | | Remove direct support of typing types in the C code because they are already supported by defining methods __or__ and __ror__ in the Python code.
* Revert "bpo-44717: improve AttributeError on circular imports of submodules ↵Pablo Galindo Salgado2021-07-248-1807/+1734
| | | | | (GH-27299)" (GH-27331) This reverts commit 8072a1181dd64135f700b44372fbf7bf91e68072.
* bpo-43950: ensure source_line is present when specialising the traceback ↵Batuhan Taskaya2021-07-242-2/+27
| | | | (GH-27313)
* bpo-44353: Improve tests covering typing.NewType pickling (GH-27302)Yurii Karabas2021-07-241-8/+9
|
* bpo-44717: improve AttributeError on circular imports of submodules (GH-27299)Filipe Laíns2021-07-248-1734/+1807
| | | | | Signed-off-by: Filipe Laíns <lains@riseup.net> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-44720: Don't crash when calling weakref.proxy(not_an_iterator).__next__ ↵Dennis Sweeney2021-07-243-0/+37
| | | | (GH-27316)
* bpo-44611: Update docs for os and whatsnew 3.11 (#27314)Dong-hee Na2021-07-242-3/+7
|
* bpo-44353: Document that typing.NewType is now a class (#27319)Ken Jin2021-07-241-10/+19
|
* bpo-44353: Expand NewType tests for complex __qualname__. (#27311)Serhiy Storchaka2021-07-242-18/+47
| | | Make NewType pickleable by name.
* Fix a deprecation warning in typing tests (#27312)Sebastian Rittau2021-07-231-3/+0
| | | | | The test was accessing typing.{io,re}.__all__, which triggered the warning. This check isn't necessary anymore, since the objects from typing.{io,re}.__all__ are in typing.__all__ as well, since Python 3.10.
* bpo-42854: Correctly use size_t for _ssl._SSLSocket.read and ↵Pablo Galindo Salgado2021-07-233-12/+15
| | | | _ssl._SSLSocket.write (GH-27271)
* bpo-44353: Fix memory leak introduced by GH-27262 (GH-27305)Yurii Karabas2021-07-231-2/+7
|
* bpo-44611: Use BCryptGenRandom instead of CryptGenRandom on Windows (GH-27168)Dong-hee Na2021-07-234-41/+19
|
* bpo-42747: Remove Py_TPFLAGS_HAVE_AM_SEND and make ↵Petr Viktorin2021-07-237-56/+24
| | | | | | | | | | | | Py_TPFLAGS_HAVE_VERSION_TAG no-op (GH-27260) * Remove code that checks Py_TPFLAGS_HAVE_VERSION_TAG The field is always present in the type struct, as explained in the added comment. * Remove Py_TPFLAGS_HAVE_AM_SEND The flag is not needed, and since it was added in 3.10 it can be removed now.
* Improve consistency of colorsys.rgb_to_hsv (GH-27277)seb-hub2021-07-231-4/+5
| | | Cache repeated difference to make code easier to read and consistent with colorsys.rgb_to_hls.
* bpo-29298: Fix crash with required subparsers without dest (GH-3680)Anthony Sottile2021-07-233-0/+28
| | | Automerge-Triggered-By: GH:encukou
* bpo-44676: Add ability to serialize types.Union (GH-27244)Yurii Karabas2021-07-234-2/+90
|
* bpo-44713: [doc fix]: typo in subprocess.rst (GH-27297)Jack DeVries2021-07-221-1/+1
| | | | This fixes a small typo. The code fragment should not be quoted. Thank you @merwok for the feedback.
* bpo-44653: Support typing types in parameter substitution in the union type. ↵Serhiy Storchaka2021-07-223-13/+43
| | | | (GH-27247)
* bpo-44353: Implement typing.NewType __call__ method in C (#27262)Yurii Karabas2021-07-2211-16/+137
| | | | Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Denis Laxalde <denis@laxalde.org>
* bpo-44708: Only re-run test methods that match names of previously failing ↵Łukasz Langa2021-07-227-178/+345
| | | | | | | | | | | test methods (GH-27287) * Move to a static argparse.Namespace subclass * Roughly annotate runtest.py * Refactor libregrtest to use lossless test result objects * Only re-run test methods that match names of previously failing test methods * Adopt tests to cover test method name matching Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-14879: [doc] clarify how to check for errors from subprocess.Popen(..., ↵Jack DeVries2021-07-221-1/+4
| | | | shell=True) (GH-26755)
* bpo-44651: delete entry of "coercion" in Doc/glossary.rst (GH-27226)Steven Hsu2021-07-222-10/+1
| | | | bpo 44651: delete entry of "coercion".
* Speed up test_urlsplit_normalization (GH-26688)Jacob Walls2021-07-221-1/+2
|
* Fix typo in collections.rst (#27270)Elliot Waite2021-07-221-1/+1
|
* bpo-44704: Make Set._hash consistent with frozenset.__hash__ (GH-27281)Dennis Sweeney2021-07-213-0/+14
|
* bpo-44686 replace unittest.mock._importer with pkgutil.resolve_name (GH-18544)Thomas Grainger2021-07-212-23/+5
| | | Automerge-Triggered-By: GH:cjw296
* bpo-30511: Add note on thread safety to shutil.make_archive() (#26933)andrei kulakov2021-07-212-0/+6
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-44539: Support recognizing JPEG files without JFIF or Exif markers ↵Mohamad Mansour2021-07-204-1/+5
| | | | | | | (GH-26964) Co-authored-by: moemansour03@gmail.com <m.mansour@tecfrac.com> Co-authored-by: Éric Araujo <merwok@netwok.org> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-43219: skip Solaris in the test as well (GH-27257)Jakub Kulík2021-07-201-1/+2
|
* bpo-44566: resolve differences between asynccontextmanager and ↵Thomas Grainger2021-07-204-56/+85
| | | | contextmanager (#27024)
* bpo-44631: Make the repr() of the _Environ class more readable. (#27128)Leonardo Freua2021-07-203-6/+11
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* Update macOS build-installer script comments for 3.10 and remove unused ↵Ned Deily2021-07-202-59/+74
| | | | pre-10.5 vestiges. (GH-27253)