Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-44732: Rename types.Union to types.UnionType (#27342) | Hasan | 2021-07-26 | 7 | -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 Waite | 2021-07-26 | 1 | -8/+9 |
| | | | Co-authored-by: Ethan Furman <ethan@stoneleaf.us> | ||||
* | bpo-44734: Fix precision in turtle tests (GH-27343) | Logan Jones | 2021-07-26 | 2 | -11/+4 |
| | |||||
* | Fix typo in dataclasses documentation (#27360) | thomkeh | 2021-07-26 | 1 | -1/+1 |
| | | | "affect" -> "effect" | ||||
* | bpo-44590: Lazily allocate frame objects (GH-27077) | Mark Shannon | 2021-07-26 | 27 | -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 Hsu | 2021-07-26 | 2 | -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 Burkland | 2021-07-25 | 3 | -4/+89 |
| | |||||
* | bpo-43950: support some multi-line expressions for PEP 657 (GH-27339) | Batuhan Taskaya | 2021-07-25 | 4 | -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 kulakov | 2021-07-25 | 4 | -6/+32 |
| | | | Automerge-Triggered-By: GH:vsajip | ||||
* | bpo-44399: Update logging cookbook to document patterns to be avoided. ↵ | Vinay Sajip | 2021-07-25 | 1 | -0/+79 |
| | | | | (GH-27348) | ||||
* | bpo-43184: Add information about added attribute and method. (GH-27347) | Vinay Sajip | 2021-07-25 | 1 | -0/+4 |
| | |||||
* | bpo-44717: improve AttributeError on circular imports of submodules (GH-27338) | Filipe Laíns | 2021-07-24 | 9 | -1734/+1809 |
| | |||||
* | Fix typo in ssl documentation (GH-27329) | Anton Grübel | 2021-07-24 | 1 | -2/+2 |
| | |||||
* | bpo-44676: Serialize the union type using only public API (GH-27323) | Serhiy Storchaka | 2021-07-24 | 4 | -80/+23 |
| | | | | Remove also the _from_args() constructor. | ||||
* | bpo-43950: support long lines in traceback.py (GH-27336) | Batuhan Taskaya | 2021-07-24 | 2 | -1/+27 |
| | |||||
* | bpo-43950: check against the raw string, not the pyobject (GH-27337) | Batuhan Taskaya | 2021-07-24 | 1 | -1/+1 |
| | |||||
* | bpo-44676: Fix reference leaks in union_reduce (GH-27332) | Pablo Galindo Salgado | 2021-07-24 | 1 | -1/+1 |
| | | | Automerge-Triggered-By: GH:pablogsal | ||||
* | bpo-44731: Simplify the union type implementation (GH-27318) | Serhiy Storchaka | 2021-07-24 | 3 | -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 Salgado | 2021-07-24 | 8 | -1807/+1734 |
| | | | | | (GH-27299)" (GH-27331) This reverts commit 8072a1181dd64135f700b44372fbf7bf91e68072. | ||||
* | bpo-43950: ensure source_line is present when specialising the traceback ↵ | Batuhan Taskaya | 2021-07-24 | 2 | -2/+27 |
| | | | | (GH-27313) | ||||
* | bpo-44353: Improve tests covering typing.NewType pickling (GH-27302) | Yurii Karabas | 2021-07-24 | 1 | -8/+9 |
| | |||||
* | bpo-44717: improve AttributeError on circular imports of submodules (GH-27299) | Filipe Laíns | 2021-07-24 | 8 | -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 Sweeney | 2021-07-24 | 3 | -0/+37 |
| | | | | (GH-27316) | ||||
* | bpo-44611: Update docs for os and whatsnew 3.11 (#27314) | Dong-hee Na | 2021-07-24 | 2 | -3/+7 |
| | |||||
* | bpo-44353: Document that typing.NewType is now a class (#27319) | Ken Jin | 2021-07-24 | 1 | -10/+19 |
| | |||||
* | bpo-44353: Expand NewType tests for complex __qualname__. (#27311) | Serhiy Storchaka | 2021-07-24 | 2 | -18/+47 |
| | | | Make NewType pickleable by name. | ||||
* | Fix a deprecation warning in typing tests (#27312) | Sebastian Rittau | 2021-07-23 | 1 | -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 Salgado | 2021-07-23 | 3 | -12/+15 |
| | | | | _ssl._SSLSocket.write (GH-27271) | ||||
* | bpo-44353: Fix memory leak introduced by GH-27262 (GH-27305) | Yurii Karabas | 2021-07-23 | 1 | -2/+7 |
| | |||||
* | bpo-44611: Use BCryptGenRandom instead of CryptGenRandom on Windows (GH-27168) | Dong-hee Na | 2021-07-23 | 4 | -41/+19 |
| | |||||
* | bpo-42747: Remove Py_TPFLAGS_HAVE_AM_SEND and make ↵ | Petr Viktorin | 2021-07-23 | 7 | -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-hub | 2021-07-23 | 1 | -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 Sottile | 2021-07-23 | 3 | -0/+28 |
| | | | Automerge-Triggered-By: GH:encukou | ||||
* | bpo-44676: Add ability to serialize types.Union (GH-27244) | Yurii Karabas | 2021-07-23 | 4 | -2/+90 |
| | |||||
* | bpo-44713: [doc fix]: typo in subprocess.rst (GH-27297) | Jack DeVries | 2021-07-22 | 1 | -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 Storchaka | 2021-07-22 | 3 | -13/+43 |
| | | | | (GH-27247) | ||||
* | bpo-44353: Implement typing.NewType __call__ method in C (#27262) | Yurii Karabas | 2021-07-22 | 11 | -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 Langa | 2021-07-22 | 7 | -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 DeVries | 2021-07-22 | 1 | -1/+4 |
| | | | | shell=True) (GH-26755) | ||||
* | bpo-44651: delete entry of "coercion" in Doc/glossary.rst (GH-27226) | Steven Hsu | 2021-07-22 | 2 | -10/+1 |
| | | | | bpo 44651: delete entry of "coercion". | ||||
* | Speed up test_urlsplit_normalization (GH-26688) | Jacob Walls | 2021-07-22 | 1 | -1/+2 |
| | |||||
* | Fix typo in collections.rst (#27270) | Elliot Waite | 2021-07-22 | 1 | -1/+1 |
| | |||||
* | bpo-44704: Make Set._hash consistent with frozenset.__hash__ (GH-27281) | Dennis Sweeney | 2021-07-21 | 3 | -0/+14 |
| | |||||
* | bpo-44686 replace unittest.mock._importer with pkgutil.resolve_name (GH-18544) | Thomas Grainger | 2021-07-21 | 2 | -23/+5 |
| | | | Automerge-Triggered-By: GH:cjw296 | ||||
* | bpo-30511: Add note on thread safety to shutil.make_archive() (#26933) | andrei kulakov | 2021-07-21 | 2 | -0/+6 |
| | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
* | bpo-44539: Support recognizing JPEG files without JFIF or Exif markers ↵ | Mohamad Mansour | 2021-07-20 | 4 | -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ík | 2021-07-20 | 1 | -1/+2 |
| | |||||
* | bpo-44566: resolve differences between asynccontextmanager and ↵ | Thomas Grainger | 2021-07-20 | 4 | -56/+85 |
| | | | | contextmanager (#27024) | ||||
* | bpo-44631: Make the repr() of the _Environ class more readable. (#27128) | Leonardo Freua | 2021-07-20 | 3 | -6/+11 |
| | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
* | Update macOS build-installer script comments for 3.10 and remove unused ↵ | Ned Deily | 2021-07-20 | 2 | -59/+74 |
| | | | | pre-10.5 vestiges. (GH-27253) |