summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* bpo-46820: Fix a SyntaxError in a numeric literal followed by "not in" ↵Serhiy Storchaka2022-02-223-0/+15
| | | | | | | (GH-31479) Fix parsing a numeric literal immediately (without spaces) followed by "not in" keywords, like in "1not in x". Now the parser only emits a warning, not a syntax error.
* bpo-46606: Reduce stack usage of getgroups and setgroups (GH-31073)Inada Naoki2022-02-221-56/+23
| | | NGROUPS_MAX was 32 before Linux 2.6.4 but 65536 since Linux 2.6.4.
* bpo-45390: Propagate CancelledError's message from cancelled task to its ↵Andrew Svetlov2022-02-215-39/+79
| | | | | | awaiter (GH-31383) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-46329: Streamline calling sequence a bit. (GH-31465)Mark Shannon2022-02-217-178/+218
| | | | | | | | | | | | | | * Move handling of bound-methods to PRECALL. * Remove call_shape.postcall_shrink * Remove call_shape.callable * Remove call_shape.callable. Change CALL oparg to match PRECALL oparg. * Move KW_NAMES before PRECALL. * Update opcode docs in dis.rst
* fix __bool__ docstring (GH-31301)Jelle Zijlstra2022-02-212-1/+3
|
* bpo-46811: Make test suite support Expat >=2.4.5 (GH-31453)Sebastian Pipping2022-02-213-8/+16
| | | | | | | | | | | | | | | | Curly brackets were never allowed in namespace URIs according to RFC 3986, and so-called namespace-validating XML parsers have the right to reject them a invalid URIs. libexpat >=2.4.5 has become strcter in that regard due to related security issues; with ET.XML instantiating a namespace-aware parser under the hood, this test has no future in CPython. References: - https://datatracker.ietf.org/doc/html/rfc3968 - https://www.w3.org/TR/xml-names/ Also, test_minidom.py: Support Expat >=2.4.5
* bpo-46541: Remove usage of _Py_IDENTIFIER from pyexpat (GH-31468)Dong-hee Na2022-02-211-4/+8
|
* bpo-46796: Simplify handling of removed parameter "loop" in asyncio (GH-31431)Serhiy Storchaka2022-02-214-24/+9
|
* bpo-46232: Fix parsing of certs with bit string in DN (GH-30351)Christian Heimes2022-02-202-7/+21
|
* bpo-39327: Close file descriptors as soon as possible in shutil.rmtree ↵Lital Natan2022-02-203-2/+13
| | | | | | | | | (GH-31384) It fixes the "Text File Busy" OSError when using 'rmtree' on a windows-managed filesystem in via the VirtualBox shared folder (and possible other scenarios like a windows-managed network file system).
* replace `self` param with more appropriate `cls` in classmethods (GH-31402)Josh Smith2022-02-201-2/+2
|
* Raise TypeError if SSLSocket is passed to asyncio transport-based methods ↵Andrew Svetlov2022-02-203-10/+22
| | | | (GH-31442)
* bpo-46672: fix `NameError` in `asyncio.gather` if type check fails (GH-31187)Nikita Sobolev2022-02-203-1/+17
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* bpo-46752: Uniform TaskGroup.__repr__ (GH-31409)Andrew Svetlov2022-02-201-8/+10
|
* Improve discussion about how __getattr__ is invoked. (GH-31435)Raymond Hettinger2022-02-201-9/+7
|
* bpo-46066: Check DeprecationWarning in test_typing (GH-31428)Jelle Zijlstra2022-02-201-4/+5
|
* Use raw string to avoid deprecation warning (GH-31427)Dennis Sweeney2022-02-191-1/+1
|