Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | gh-105927: finalize_modules_clear_weaklist() uses _PyWeakref_GET_REF() (#105971) | Victor Stinner | 2023-06-21 | 3 | -6/+7 | |
| | | | | | finalize_modules_clear_weaklist() now holds a strong reference to the module longer than before: replace PyWeakref_GET_OBJECT() with _PyWeakref_GET_REF(). | |||||
* | gh-105927: type_from_ref() uses _PyWeakref_GET_REF() (#105963) | Victor Stinner | 2023-06-21 | 1 | -13/+24 | |
| | | | | | type_from_ref() now returns a strong reference to the type, instead of a borrowed reference: replace PyWeakref_GET_OBJECT() with _PyWeakref_GET_REF(). | |||||
* | gh-105927: Fix test_weakref_capi() refleak (#105966) | Victor Stinner | 2023-06-21 | 1 | -16/+32 | |
| | | | Test PyWeakref_GetRef(NULL) and PyWeakref_GetObject(NULL). | |||||
* | gh-105927: _ctypes use PyWeakref_GetRef() (#105964) | Victor Stinner | 2023-06-21 | 1 | -18/+26 | |
| | | | | | | Rename PyDict_GetItemProxy() to _PyDict_GetItemProxy() and mark it as static. _PyDict_GetItemProxy() now returns a strong reference, instead of a borrowed reference: replace PyWeakref_GET_OBJECT() with _PyWeakref_GET_REF(). | |||||
* | gh-105927: _ssl uses _PyWeakref_GET_REF() (#105965) | Victor Stinner | 2023-06-21 | 2 | -18/+29 | |
| | ||||||
* | stdtypes.rst: remove a period (#105959) | Mathieu Dupuy | 2023-06-21 | 1 | -1/+1 | |
| | ||||||
* | gh-105927: _abc and _thread use PyWeakref_GetRef() (#105961) | Victor Stinner | 2023-06-21 | 2 | -21/+20 | |
| | | | | | | | | Hold a strong reference on the object, rather than using a borrowed reference: replace PyWeakref_GET_OBJECT() with PyWeakref_GetRef() and _PyWeakref_GET_REF(). Remove assert(PyWeakref_CheckRef(localweakref)) since it's already tested by _PyWeakref_GET_REF(). | |||||
* | Use CSV-separated outputs @ get-changed-files @ CI (#105151) | Sviatoslav Sydorenko | 2023-06-21 | 3 | -21/+32 | |
| | | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> | |||||
* | gh-105927: Add PyWeakref_GetRef() function (#105932) | Victor Stinner | 2023-06-21 | 11 | -8/+133 | |
| | | | | Add tests on PyWeakref_NewRef(), PyWeakref_GetObject(), PyWeakref_GET_OBJECT() and PyWeakref_GetRef(). | |||||
* | Add Py_TYPE() to Doc/data/refcounts.dat (#105949) | Victor Stinner | 2023-06-20 | 1 | -0/+3 | |
| | ||||||
* | gh-105915: Fix SyntaxWarning becoming a SyntaxError with -We in test_fstring ↵ | Lysandros Nikolaou | 2023-06-20 | 1 | -3/+3 | |
| | | | | (#105943) | |||||
* | gh-105915: Add 'r' prefix to not emit SyntaxWarning in test_fstring (#105940) | Lysandros Nikolaou | 2023-06-20 | 1 | -1/+1 | |
| | | | Co-authored-by: @sunmy2019 | |||||
* | gh-105938: Emit a SyntaxWarning for escaped braces in an f-string (#105939) | Lysandros Nikolaou | 2023-06-20 | 3 | -6/+18 | |
| | ||||||
* | make regen-stdlib-module-names rejects test modules (#105921) | Victor Stinner | 2023-06-20 | 1 | -2/+17 | |
| | | | Make sure that sys.stdlib_module_names doesn't contain test modules. | |||||
* | gh-105927: Add _PyWeakref_GET_REF() internal function (#105929) | Victor Stinner | 2023-06-20 | 5 | -49/+88 | |
| | | | Add new pycore_weakref.h internal header file. | |||||
* | gh-105922: Add PyImport_AddModuleRef() function (#105923) | Victor Stinner | 2023-06-20 | 13 | -24/+149 | |
| | | | | | | * Add tests on PyImport_AddModuleRef(), PyImport_AddModule() and PyImport_AddModuleObject(). * pythonrun.c: Replace Py_XNewRef(PyImport_AddModule(name)) with PyImport_AddModuleRef(name). | |||||
* | gh-105927: Refactor weakrefobject.c (#105928) | Victor Stinner | 2023-06-19 | 1 | -60/+56 | |
| | | | | | | * Rename proxy_checkref() to proxy_check_ref(). * proxy_check_ref() now checks the object, not the proxy. * Most functions take PyObject* instead of PyWeakReference*. * Remove redundant calls to PyWeakref_GET_OBJECT(). | |||||
* | gh-105922: Refactor PyRun_InteractiveOneObjectEx() (#105925) | Victor Stinner | 2023-06-19 | 1 | -74/+108 | |
| | | | | | | | | | | | Refactor PyRun_InteractiveOneObjectEx(), _PyRun_SimpleFileObject() and PyRun_SimpleStringFlags(): * Keep a strong reference to the __main__ module while using its dictionary (PyModule_GetDict()). Use PyImport_AddModule() with Py_XNewRef(). * Declare variables closer to where they are defined. * Rename variables to use name longer than 1 character. * Add pyrun_one_parse_ast() sub-function. | |||||
* | gh-105481: generate _specializations and _specialized_instructions from ↵ | Irit Katriel | 2023-06-19 | 12 | -277/+345 | |
| | | | | bytecodes.c (#105913) | |||||
* | gh-105908: fix `barry_as_FLUFL` future import (#105909) | Crowthebird | 2023-06-19 | 3 | -6/+19 | |
| | ||||||
* | GH-105808: Fix a regression introduced in GH-101251 (#105910) | T. Wouters | 2023-06-19 | 3 | -1/+52 | |
| | | | | Fix a regression introduced in pythonGH-101251, causing GzipFile.flush() to not flush the compressor (nor pass along the zip_mode argument). | |||||
* | gh-104212: Explain how to port imp code to importlib (#105905) | Victor Stinner | 2023-06-19 | 1 | -1/+32 | |
| | ||||||
* | gh-71299: Fix __all__ in tokenize (#105907) | Lysandros Nikolaou | 2023-06-19 | 2 | -135/+137 | |
| | | | Co-authored-by: Unit03 | |||||
* | GH-104584: Assorted fixes for the optimizer API. (GH-105683) | Mark Shannon | 2023-06-19 | 6 | -203/+297 | |
| | | | | | | * Add test for long loops * Clear ENTER_EXECUTOR when deopting code objects. | |||||
* | typing docs: Improve the intro to each section (#105901) | Alex Waygood | 2023-06-18 | 1 | -36/+40 | |
| | ||||||
* | gh-105875: Require SQLite 3.15.2 or newer (#105876) | Erlend E. Aasland | 2023-06-18 | 13 | -202/+61 | |
| | | | SQLite 3.15.2 was released 2016-11-28. | |||||
* | Docs: move sphinx-lint to pre-commit (#105750) | Hugo van Kemenade | 2023-06-18 | 5 | -14/+11 | |
| | ||||||
* | gh-105844: Use devguide terminology to denote versions (#105882) | Erlend E. Aasland | 2023-06-18 | 1 | -3/+3 | |
| | ||||||
* | gh-105481: remove HAS_ARG, HAS_CONST, IS_JUMP_OPCODE, IS_PSEUDO_OPCODE and ↵ | Irit Katriel | 2023-06-17 | 12 | -138/+38 | |
| | | | | replace by their new versions (#105865) | |||||
* | CI: Bump macOS build to use OpenSSL v3.0 (#105538) | Erlend E. Aasland | 2023-06-16 | 1 | -2/+2 | |
| | ||||||
* | GH-105840: Fix assertion failures when specializing calls with too many ↵ | Brandt Bucher | 2023-06-16 | 3 | -2/+33 | |
| | | | | __defaults__ (GH-105847) | |||||
* | gh-105678: document SET_FUNCTION_ATTRIBUTE (#105843) | Carl Meyer | 2023-06-16 | 1 | -9/+20 | |
| | ||||||
* | gh-104799: PEP 695 backward compatibility for ast.unparse (#105846) | Jelle Zijlstra | 2023-06-16 | 3 | -3/+80 | |
| | ||||||
* | gh-105834: Add tests for calling `issubclass()` between two protocols (#105835) | Alex Waygood | 2023-06-16 | 1 | -0/+74 | |
| | | | Some parts of the implementation of `typing.Protocol` had poor test coverage | |||||
* | CI: Remove docs build from Azure Pipelines (#105823) | Hugo van Kemenade | 2023-06-16 | 4 | -85/+0 | |
| | ||||||
* | gh-105844: Consistently use 'minor version' for X.Y versions (#105851) | Erlend E. Aasland | 2023-06-16 | 2 | -3/+3 | |
| | ||||||
* | Fix inaccuracies in "Assorted Topics" section of "Defining Extension Types" ↵ | chgnrdv | 2023-06-16 | 1 | -5/+5 | |
| | | | | tutorial (#104969) | |||||
* | gh-105433: Add `pickle` tests for PEP695 (#105443) | Nikita Sobolev | 2023-06-16 | 2 | -4/+131 | |
| | ||||||
* | bpo-44530: Document the change in MAKE_FUNCTION behavior (#93189) | Alex Doe | 2023-06-16 | 1 | -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 Gao | 2023-06-15 | 3 | -4/+56 | |
| | ||||||
* | GH-105588: Add missing error checks to some obj2ast_* converters (GH-105589) | Brandt Bucher | 2023-06-15 | 4 | -0/+37 | |
| | ||||||
* | gh-105831: Fix NEWS blurb from gh-105828 (#105833) | Lysandros Nikolaou | 2023-06-15 | 1 | -1/+3 | |
| | ||||||
* | gh-105820: Fix tok_mode expression buffer in file & readline tokenizer (#105828) | Lysandros Nikolaou | 2023-06-15 | 4 | -4/+36 | |
| | ||||||
* | gh-105751, test_ctypes: Remove disabled tests (#105826) | Victor Stinner | 2023-06-15 | 5 | -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 Salgado | 2023-06-15 | 1 | -2/+2 | |
| | | | Use a raw f-string in test_httpservers.py | |||||
* | gh-105751: Remove platform usage in test_ctypes (#105819) | Victor Stinner | 2023-06-15 | 1 | -7/+0 | |
| | | | The MACHINE variable is no longer used in test_structures. | |||||
* | gh-105751: Reenable disable test_ctypes tests (#105818) | Victor Stinner | 2023-06-15 | 2 | -31/+25 | |
| | | | | | | | Reenable 3 tests: * test_overflow() * test_basic_wstrings() * test_toolong() | |||||
* | gh-105751: Remove dead code in test_ctypes (#105817) | Victor Stinner | 2023-06-15 | 15 | -128/+37 | |
| | | | | | * Remove "except: print(tp); raise" debug code. * Remove unused NoNullHandle() function. * Remove commented code. | |||||
* | More reorganisation of the typing docs (#105787) | Alex Waygood | 2023-06-15 | 1 | -101/+117 | |
| | ||||||
* | Improve docs for `typing.dataclass_transform` (#105792) | Alex Waygood | 2023-06-15 | 1 | -37/+69 | |
| |