summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-71299: Fix __all__ in tokenize (#105907)Lysandros Nikolaou2023-06-192-135/+137
| | | Co-authored-by: Unit03
* GH-104584: Assorted fixes for the optimizer API. (GH-105683)Mark Shannon2023-06-196-203/+297
| | | | | | * Add test for long loops * Clear ENTER_EXECUTOR when deopting code objects.
* typing docs: Improve the intro to each section (#105901)Alex Waygood2023-06-181-36/+40
|
* gh-105875: Require SQLite 3.15.2 or newer (#105876)Erlend E. Aasland2023-06-1813-202/+61
| | | SQLite 3.15.2 was released 2016-11-28.
* Docs: move sphinx-lint to pre-commit (#105750)Hugo van Kemenade2023-06-185-14/+11
|
* gh-105844: Use devguide terminology to denote versions (#105882)Erlend E. Aasland2023-06-181-3/+3
|
* gh-105481: remove HAS_ARG, HAS_CONST, IS_JUMP_OPCODE, IS_PSEUDO_OPCODE and ↵Irit Katriel2023-06-1712-138/+38
| | | | replace by their new versions (#105865)
* CI: Bump macOS build to use OpenSSL v3.0 (#105538)Erlend E. Aasland2023-06-161-2/+2
|
* GH-105840: Fix assertion failures when specializing calls with too many ↵Brandt Bucher2023-06-163-2/+33
| | | | __defaults__ (GH-105847)
* gh-105678: document SET_FUNCTION_ATTRIBUTE (#105843)Carl Meyer2023-06-161-9/+20
|
* gh-104799: PEP 695 backward compatibility for ast.unparse (#105846)Jelle Zijlstra2023-06-163-3/+80
|
* gh-105834: Add tests for calling `issubclass()` between two protocols (#105835)Alex Waygood2023-06-161-0/+74
| | | Some parts of the implementation of `typing.Protocol` had poor test coverage
* CI: Remove docs build from Azure Pipelines (#105823)Hugo van Kemenade2023-06-164-85/+0
|
* gh-105844: Consistently use 'minor version' for X.Y versions (#105851)Erlend E. Aasland2023-06-162-3/+3
|
* Fix inaccuracies in "Assorted Topics" section of "Defining Extension Types" ↵chgnrdv2023-06-161-5/+5
| | | | tutorial (#104969)
* gh-105433: Add `pickle` tests for PEP695 (#105443)Nikita Sobolev2023-06-162-4/+131
|
* bpo-44530: Document the change in MAKE_FUNCTION behavior (#93189)Alex Doe2023-06-161-2/+5
| | | | | * bpo-44530: Document the change in MAKE_FUNCTION behavior Fixes dis module documentation for MAKE_FUNCTION due to https://github.com/python/cpython/commit/2f180ce2cb6e6a7e3c517495e0f4873d6aaf5f2f (bpo-44530, released as part of 3.11) removes the qualified name at TOS
* GH-103124: Multiline statement support for pdb (GH-103125)Tian Gao2023-06-153-4/+56
|
* GH-105588: Add missing error checks to some obj2ast_* converters (GH-105589)Brandt Bucher2023-06-154-0/+37
|
* gh-105831: Fix NEWS blurb from gh-105828 (#105833)Lysandros Nikolaou2023-06-151-1/+3
|
* gh-105820: Fix tok_mode expression buffer in file & readline tokenizer (#105828)Lysandros Nikolaou2023-06-154-4/+36
|
* gh-105751, test_ctypes: Remove disabled tests (#105826)Victor Stinner2023-06-155-131/+2
| | | | | | | | | | | | | | * The following tests were disabled since the initial ctypes commit in 2006, commit babddfca758abe34ff12023f63b18d745fae7ca9: * Callbacks.test_char_p() * DeletePointerTestCase.test_X() * NumberTestCase.test_perf() * StructureTestCase.test_subclass_creation() * Tests.test_X() of test_byteswap * NumberTestCase.test_bool_from_address() was disabled in 2007 by commit 5dc4fe09b7648f9801558e766b21a3d3b2dcad3b. * Remove check_perf() and run_test() of test_numbers.
* gh-105821: Use a raw f-string in test_httpservers.py (#105822)Pablo Galindo Salgado2023-06-151-2/+2
| | | Use a raw f-string in test_httpservers.py
* gh-105751: Remove platform usage in test_ctypes (#105819)Victor Stinner2023-06-151-7/+0
| | | The MACHINE variable is no longer used in test_structures.
* gh-105751: Reenable disable test_ctypes tests (#105818)Victor Stinner2023-06-152-31/+25
| | | | | | | Reenable 3 tests: * test_overflow() * test_basic_wstrings() * test_toolong()
* gh-105751: Remove dead code in test_ctypes (#105817)Victor Stinner2023-06-1515-128/+37
| | | | | * Remove "except: print(tp); raise" debug code. * Remove unused NoNullHandle() function. * Remove commented code.
* More reorganisation of the typing docs (#105787)Alex Waygood2023-06-151-101/+117
|
* Improve docs for `typing.dataclass_transform` (#105792)Alex Waygood2023-06-151-37/+69
|
* GH-89812: Churn `pathlib.Path` test methods (#105807)Barney Gale2023-06-151-315/+315
| | | | | | | | | | | | | | Re-arrange `pathlib.Path` test methods in source code. No other changes. The test methods are arranged in two groups. The first group checks `stat()`, `open()`, `iterdir()`, `readlink()`, and derived methods like `exists()`, `read_text()`, `glob()` and `resolve()`. The second group checks all other `Path` methods. To minimise the diff I've maintained the method order within groups where possible. This patch prepares the ground for a new `_AbstractPath` class, which will support methods in the first group above. By churning the test methods here, subsequent patches will be easier to review and less likely to break things.
* gh-105800: Issue SyntaxWarning in f-strings for invalid escape sequences ↵Pablo Galindo Salgado2023-06-153-3/+8
| | | | (#105801)
* gh-105751: Cleanup test_ctypes imports (#105803)Victor Stinner2023-06-1445-240/+250
| | | | | | * Move imports at top level and sort imports. * Replace c_buffer() with create_string_buffer(): c_buffer is a deprecated alias. * PEP 8: Add empty lines for readability between imports and classes.
* gh-105481: add HAS_JUMP flag to opcode metadata (#105791)Irit Katriel2023-06-148-168/+189
|
* gh-105751: test_ctypes avoids the operator module (GH-105797)Victor Stinner2023-06-1410-80/+85
| | | | | | | * Replace operator.delitem(obj, index) with "del obj[index]". * Replace operator.setitem(obj, index, value) with "obj[index] = value". * Replace delattr(obj, "attr) with "del obj.attr". * Replace grc() with sys.getrefcount() for readability.
* gh-105751: test_ctypes: Remove @need_symbol decorator (GH-105798)Victor Stinner2023-06-1417-66/+10
| | | | | | | | | | Remove the @need_symbol('...') decorator of test.test_ctypes since requested symbols are now always always available in ctypes. Use the @unittest.skipUnless() decorator directly for the two types only available on Windows: * ctypes.WINFUNCTYPE * ctypes.oledll
* gh-104909: Implement conditional stack effects for macros (#105748)Guido van Rossum2023-06-142-13/+80
|
* gh-75905: Remove test_xmlrpc_net: skipped since 2017 (#105796)Victor Stinner2023-06-141-31/+0
| | | | | | | test_xmlrpc_net was skipped since 2017: commit 73ffd3f2036179ed54591ef0455e5ba5694ae5bd. The public buildbot.python.org server has no XML-RPC interface anymore, and no replacement server was found in 6 years.
* gh-105481: Fix types and a bug for pseudos (#105788)Guido van Rossum2023-06-141-3/+4
|
* Update DSL docs for cases generator (#105753)Guido van Rossum2023-06-141-44/+60
| | | | | * Clarify things around goto error/ERROR_IF a bit * Remove docs for super-instructions * Add pseudo; fix heading markup
* GH-77273: Better bytecodes for f-strings (GH-6132)Mark Shannon2023-06-1415-479/+519
|
* xmlrpc.client uses datetime.datetime.isoformat() (#105741)Victor Stinner2023-06-142-32/+12
| | | | | | Reimplement _iso8601_format() using the datetime isoformat() method. Ignore the timezone. Co-Authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
* gh-105570: Deprecate unusual ways of creating empty TypedDicts (#105780)Alex Waygood2023-06-145-8/+73
| | | Deprecate two methods of creating typing.TypedDict classes with 0 fields using the functional syntax: `TD = TypedDict("TD")` and `TD = TypedDict("TD", None)`. Both will be disallowed in Python 3.15. To create a TypedDict class with 0 fields, either use `class TD(TypedDict): pass` or `TD = TypedDict("TD", {})`.
* gh-105196: Fix indentations of section headings in C API docs (#105672)TATHAGATA ROY2023-06-143-6/+6
|
* Typing docs: move the deprecated stuff below the non-deprecated stuff (#105781)Alex Waygood2023-06-141-488/+488
|
* GH-100987: Allow objects other than code objects as the "executable" of an ↵Mark Shannon2023-06-1428-607/+542
| | | | | | | | | | internal frame. (GH-105727) * Add table describing possible executable classes for out-of-process debuggers. * Remove shim code object creation code as it is no longer needed. * Make lltrace a bit more robust w.r.t. non-standard frames.
* gh-105566: Deprecate unusual ways of creating `typing.NamedTuple` classes ↵Alex Waygood2023-06-145-12/+153
| | | | | | | (#105609) Deprecate creating a typing.NamedTuple class using keyword arguments to denote the fields (`NT = NamedTuple("NT", x=int, y=str)`). This will be disallowed in Python 3.15. Use the class-based syntax or the functional syntax instead. Two methods of creating `NamedTuple` classes with 0 fields using the functional syntax are also deprecated, and will be disallowed in Python 3.15: `NT = NamedTuple("NT")` and `NT = NamedTuple("NT", None)`. To create a `NamedTuple` class with 0 fields, either use `class NT(NamedTuple): pass` or `NT = NamedTuple("NT", [])`.
* gh-104873: Add typing.get_protocol_members and typing.is_protocol (#104878)Jelle Zijlstra2023-06-145-2/+152
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-102541: Hide traceback in help prompt (gh-102614)Kirill Podoprigora2023-06-142-8/+14
|
* gdb libpython.py: Remove compatibility code (#105739)Victor Stinner2023-06-141-47/+22
| | | | | | | | Remove compatibility code for Python 2 and early Python 3 versions. * Remove os_fsencode() reimplementation: use os.fsencode() directly. os.fsencode() was added to Python 3.2. * Remove references to Python 2 and "Python 3": just say "Python". * Remove outdated u'' string format: use '' instead.
* gh-105745: Fix open method of webbrowser.Konqueror (#105746)Nikita Sobolev2023-06-142-9/+1
|
* gh-105687: Remove deprecated objects from `re` module (#105688)Nikita Sobolev2023-06-149-56/+13
|