summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-46808: remove NEXT_BLOCK() from compile.c (GH-31448)Irit Katriel2022-02-252-63/+73
|
* bpo-46841: Use *inline* caching for `BINARY_OP` (GH-31543)Brandt Bucher2022-02-2519-351/+429
|
* bpo-46836: Move PyFrameObject to pycore_frame.h (GH-31530)Victor Stinner2022-02-255-49/+58
| | | | Move the PyFrameObject type definition (struct _frame) to the internal C API pycore_frame.h header file.
* bpo-1635741: Fix winreg reference leaks (GH-31560)Victor Stinner2022-02-252-4/+8
| | | Clear also the PyHKEY_Type static type at exit.
* bpo-46756: Fix authorization check in urllib.request (GH-31353)Serhiy Storchaka2022-02-253-8/+30
| | | | | | Fix a bug in urllib.request.HTTPPasswordMgr.find_user_password() and urllib.request.HTTPPasswordMgrWithPriorAuth.is_authenticated() which allowed to bypass authorization. For example, access to URI "example.org/foobar" was allowed if the user was authorized for URI "example.org/foo".
* bpo-34429: Noted TemporaryFile behavior on non-Posix/non-Cygwin systems ↵slateny2022-02-251-0/+3
| | | | (GH-31547)
* bpo-46748: Don't import <stdbool.h> in public headers (GH-31553)Petr Viktorin2022-02-256-6/+11
| | | | | | | <stdbool.h> is the standard/modern way to define embedd/extends Python free to define bool, true and false, but there are existing applications that use slightly different redefinitions, which fail if the header is included. It's OK to use stdbool outside the public headers, though. https://bugs.python.org/issue46748
* bpo-46820: Refactor tests for ambiguous end of numerical literal (GH-31494)Serhiy Storchaka2022-02-251-89/+25
|
* bpo-46606: Remove redundant +1. (GH-31561)Inada Naoki2022-02-251-1/+1
|
* bpo-46852: Rename float.__set_format__() to float.__setformat__() (GH-31558)Victor Stinner2022-02-253-17/+20
| | | | | | | | | | | Rename the private undocumented float.__set_format__() method to float.__setformat__() to fix a typo introduced in Python 3.7. The method is only used by test_float. The change enables again test_float tests on the float format which were previously skipped because of the typo. The typo was introduced in Python 3.7 by bpo-20185 in commit b5c51d3dd95bbfde533655fb86ac0f96f771ba7b.
* bpo-46656: Remove Py_NO_NAN macro (GH-31160)Victor Stinner2022-02-259-28/+16
| | | | Building Python now requires support for floating point Not-a-Number (NaN): remove the Py_NO_NAN macro.
* bpo-46656: Building Python now requires a C11 compiler (GH-31557)Victor Stinner2022-02-252-0/+5
| | | | See PEP 7: https://python.github.io/peps/pep-0007/#c-dialect
* bpo-46623: Skip two test_zlib tests on s390x (GH-31096)Victor Stinner2022-02-242-0/+34
| | | | Skip test_pair() and test_speech128() of test_zlib on s390x since they fail if zlib uses the s390x hardware accelerator.
* bpo-1635741: test_embed cheks that Python does not leak (GH-31555)Victor Stinner2022-02-242-1/+22
|
* bpo-45898: Remove duplicate symbols from _ctypes/cfield.c (GH-29791)Christian Heimes2022-02-243-125/+106
|
* bpo-45107: Specialize `LOAD_METHOD` for instances with dict. (GH-31531)Mark Shannon2022-02-247-66/+143
|
* bpo-46430: Fix memory leak in interned strings of deep-frozen modules (GH-31549)Kumar Aditya2022-02-246-6/+21
|
* bpo-45459: C API uses type names rather than structure names (GH-31528)Victor Stinner2022-02-2423-75/+69
| | | | Thanks to the new pytypedefs.h, it becomes to use type names like PyObject rather like structure names like "struct _object".
* bpo-45459: Add pytypedefs.h header file (GH-31527)Victor Stinner2022-02-2416-40/+44
| | | | | | | | | | | | | | | | | | Move forward declarations of Python C API types to a new pytypedefs.h header file to solve interdependency issues between header files. pytypedefs.h contains forward declarations of the following types: * PyCodeObject * PyFrameObject * PyGetSetDef * PyInterpreterState * PyLongObject * PyMemberDef * PyMethodDef * PyModuleDef * PyObject * PyThreadState * PyTypeObject
* bpo-46823: Implement LOAD_FAST__LOAD_ATTR_INSTANCE_VALUE superinstruction ↵Dennis Sweeney2022-02-246-4/+91
| | | | (GH-31484)
* bpo-46659: Enhance LocaleTextCalendar for C locale (GH-31214)Victor Stinner2022-02-242-6/+20
| | | If the LC_TIME locale is "C", use the user preferred locale.
* Add (undocumented) _co_quickened attribute for code object. (GH-31552)Mark Shannon2022-02-241-2/+13
|
* bpo-46771: Implement task cancel requests counter (GH-31513)Tin Tvrtković2022-02-243-46/+48
| | | | | This changes cancelling() and uncancel() to return the count of pending cancellations. This can be used to avoid bugs in certain edge cases (e.g. two timeouts going off at the same time).
* build(deps): bump actions/upload-artifact from 2.2.4 to 2.3.1 (GH-30325)dependabot[bot]2022-02-231-1/+1
| | | | | | | | | | | | | | | | Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2.2.4 to 2.3.1. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v2.2.4...v2.3.1) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* bpo-40421: What's New in Python 3.11: PyFrameObject.f_lasti (GH-31536)Victor Stinner2022-02-231-0/+2
| | | Suggest replacing PyCode_Addr2Line() with PyFrame_GetLineNumber().
* bpo-44337: Shrink the LOAD_ATTR/STORE_ATTR caches (GH-31517)Brandt Bucher2022-02-234-43/+36
|
* bpo-40421: Fix PyFrame_GetCode() documentation (GH-31535)Victor Stinner2022-02-231-2/+2
| | | | Fix PyFrame_GetBack() and PyFrame_GetCode() return type in the documentation.
* closes bpo-46736: SimpleHTTPRequestHandler now uses HTML5. (GH-31533)Dong-hee Na2022-02-232-12/+12
| | | Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
* bpo-45412: Add _PY_SHORT_FLOAT_REPR macro (GH-31171)Victor Stinner2022-02-2311-96/+104
| | | | | | | | | | Remove the HAVE_PY_SET_53BIT_PRECISION macro (moved to the internal C API). * Move HAVE_PY_SET_53BIT_PRECISION macro to pycore_pymath.h. * Replace PY_NO_SHORT_FLOAT_REPR macro with _PY_SHORT_FLOAT_REPR macro which is always defined. gcc -Wundef emits a warning when using _PY_SHORT_FLOAT_REPR but the macro is not defined, if pycore_pymath.h include was forgotten.
* bpo-45885: Don't un-adapt `COMPARE_OP` when collecting stats (GH-31516)Brandt Bucher2022-02-232-2/+9
|
* bpo-46329: Fix test failure when `Py_STATS` is enabled (GH-31511)Brandt Bucher2022-02-232-2/+2
|
* bpo-46757: Add a test to verify dataclass's __post_init__ isn't being ↵Eric V. Smith2022-02-231-0/+59
| | | | automatically added. (GH-31523)
* Minor fixes to C API docs (GH-31501)Jelle Zijlstra2022-02-234-24/+28
| | | | | | | | | | | | | | | | * C API docs: move PyErr_SetImportErrorSubclass docs It was in the section about warnings, but it makes more sense to put it with PyErr_SetImportError. * C API docs: document closeit argument to PyRun_AnyFileExFlags It was already documented for PyRun_SimpleFileExFlags. * textual fixes to unicode docs * Move paragraph about tp_dealloc into tp_dealloc section * __aiter__ returns an async iterator, not an awaitable
* bpo-46794: Bump up the libexpat version into 2.4.6 (GH-31487)Dong-hee Na2022-02-236-62/+133
|
* bpo-46522: fix concurrent.futures and io AttributeError messages (GH-30887)Thomas Grainger2022-02-234-3/+4
| | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* bpo-46765: Replace Locally Cached Strings with Statically Initialized ↵Eric Snow2022-02-2322-526/+192
| | | | | Objects (gh-31366) https://bugs.python.org/issue46765
* Inherit asyncio proactor datagram transport from asyncio.DatagramTransport ↵Andrew Svetlov2022-02-223-1/+5
| | | | (#31512)
* bpo-45459: Rename buffer.h to pybuffer.h (#31201)Victor Stinner2022-02-227-4/+13
| | | | | | | | | Rename Include/buffer.h header file to Include/pybuffer.h to avoid conflicts with projects having an existing "buffer.h" header file. * Incude pybuffer.h before object.h in Python.h. * Remove #include "buffer.h" from Include/cpython/object.h. * Add a forward declaration of the PyObject type in pybuffer.h to fix an inter-dependency issue.
* bpo-46659: Deprecate locale.getdefaultlocale() (GH-31206)Victor Stinner2022-02-225-1/+20
| | | | | | The locale.getdefaultlocale() function is deprecated and will be removed in Python 3.13. Use locale.setlocale(), locale.getpreferredencoding(False) and locale.getlocale() functions instead.
* bpo-46659: Fix the MBCS codec alias on Windows (GH-31218)Victor Stinner2022-02-222-11/+17
|
* bpo-46827: pass sock.type to getaddrinfo in sock_connect (GH-31499)Thomas Grainger2022-02-223-1/+22
| | | | | Co-authored-by: Thomas Grainger <tagrain@gmail.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* bpo-46729: add number of sub-exceptions in str() of BaseExceptionGroup ↵Irit Katriel2022-02-224-29/+100
| | | | (GH-31294)
* bpo-20923 : [doc] Explain ConfigParser 'valid section name' and .SECTCRE ↵vidhya2022-02-221-0/+3
| | | | (GH-31413)
* bpo-36557: Updated wording for using/windows (GH-31457)slateny2022-02-221-2/+2
|
* bpo-46725: Document starred expressions in for statements (GH-31481)Pablo Galindo Salgado2022-02-223-8/+22
| | | Automerge-Triggered-By: GH:pablogsal
* Fix reporting of specialization stats. (GH-31503)Mark Shannon2022-02-222-1/+3
|
* bpo-46822: Increase timeout for test_create_server_ssl_over_ssl to match ↵Steve Dower2022-02-221-1/+1
| | | | underlying timeouts (GH-31502)
* Remove pair-counts from specialization stats. (GH-31500)Mark Shannon2022-02-221-2/+5
|
* Move call specializations from CALL to PRECALL. (GH-31496)Mark Shannon2022-02-226-206/+311
|
* dict: Add dk_log2_index_bytes (GH-31439)Inada Naoki2022-02-222-24/+31
|