Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-44337: Shrink the LOAD_ATTR/STORE_ATTR caches (GH-31517) | Brandt Bucher | 2022-02-23 | 4 | -43/+36 |
| | |||||
* | bpo-40421: Fix PyFrame_GetCode() documentation (GH-31535) | Victor Stinner | 2022-02-23 | 1 | -2/+2 |
| | | | | Fix PyFrame_GetBack() and PyFrame_GetCode() return type in the documentation. | ||||
* | closes bpo-46736: SimpleHTTPRequestHandler now uses HTML5. (GH-31533) | Dong-hee Na | 2022-02-23 | 2 | -12/+12 |
| | | | Co-authored-by: Oleg Iarygin <dralife@yandex.ru> | ||||
* | bpo-45412: Add _PY_SHORT_FLOAT_REPR macro (GH-31171) | Victor Stinner | 2022-02-23 | 11 | -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 Bucher | 2022-02-23 | 2 | -2/+9 |
| | |||||
* | bpo-46329: Fix test failure when `Py_STATS` is enabled (GH-31511) | Brandt Bucher | 2022-02-23 | 2 | -2/+2 |
| | |||||
* | bpo-46757: Add a test to verify dataclass's __post_init__ isn't being ↵ | Eric V. Smith | 2022-02-23 | 1 | -0/+59 |
| | | | | automatically added. (GH-31523) | ||||
* | Minor fixes to C API docs (GH-31501) | Jelle Zijlstra | 2022-02-23 | 4 | -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 Na | 2022-02-23 | 6 | -62/+133 |
| | |||||
* | bpo-46522: fix concurrent.futures and io AttributeError messages (GH-30887) | Thomas Grainger | 2022-02-23 | 4 | -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 Snow | 2022-02-23 | 22 | -526/+192 |
| | | | | | Objects (gh-31366) https://bugs.python.org/issue46765 | ||||
* | Inherit asyncio proactor datagram transport from asyncio.DatagramTransport ↵ | Andrew Svetlov | 2022-02-22 | 3 | -1/+5 |
| | | | | (#31512) | ||||
* | bpo-45459: Rename buffer.h to pybuffer.h (#31201) | Victor Stinner | 2022-02-22 | 7 | -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 Stinner | 2022-02-22 | 5 | -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 Stinner | 2022-02-22 | 2 | -11/+17 |
| | |||||
* | bpo-46827: pass sock.type to getaddrinfo in sock_connect (GH-31499) | Thomas Grainger | 2022-02-22 | 3 | -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 Katriel | 2022-02-22 | 4 | -29/+100 |
| | | | | (GH-31294) | ||||
* | bpo-20923 : [doc] Explain ConfigParser 'valid section name' and .SECTCRE ↵ | vidhya | 2022-02-22 | 1 | -0/+3 |
| | | | | (GH-31413) | ||||
* | bpo-36557: Updated wording for using/windows (GH-31457) | slateny | 2022-02-22 | 1 | -2/+2 |
| | |||||
* | bpo-46725: Document starred expressions in for statements (GH-31481) | Pablo Galindo Salgado | 2022-02-22 | 3 | -8/+22 |
| | | | Automerge-Triggered-By: GH:pablogsal | ||||
* | Fix reporting of specialization stats. (GH-31503) | Mark Shannon | 2022-02-22 | 2 | -1/+3 |
| | |||||
* | bpo-46822: Increase timeout for test_create_server_ssl_over_ssl to match ↵ | Steve Dower | 2022-02-22 | 1 | -1/+1 |
| | | | | underlying timeouts (GH-31502) | ||||
* | Remove pair-counts from specialization stats. (GH-31500) | Mark Shannon | 2022-02-22 | 1 | -2/+5 |
| | |||||
* | Move call specializations from CALL to PRECALL. (GH-31496) | Mark Shannon | 2022-02-22 | 6 | -206/+311 |
| | |||||
* | dict: Add dk_log2_index_bytes (GH-31439) | Inada Naoki | 2022-02-22 | 2 | -24/+31 |
| | |||||
* | bpo-46820: Fix a SyntaxError in a numeric literal followed by "not in" ↵ | Serhiy Storchaka | 2022-02-22 | 3 | -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 Naoki | 2022-02-22 | 1 | -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 Svetlov | 2022-02-21 | 5 | -39/+79 |
| | | | | | | awaiter (GH-31383) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> | ||||
* | bpo-46329: Streamline calling sequence a bit. (GH-31465) | Mark Shannon | 2022-02-21 | 7 | -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 Zijlstra | 2022-02-21 | 2 | -1/+3 |
| | |||||
* | bpo-46811: Make test suite support Expat >=2.4.5 (GH-31453) | Sebastian Pipping | 2022-02-21 | 3 | -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 Na | 2022-02-21 | 1 | -4/+8 |
| | |||||
* | bpo-46796: Simplify handling of removed parameter "loop" in asyncio (GH-31431) | Serhiy Storchaka | 2022-02-21 | 4 | -24/+9 |
| | |||||
* | bpo-46232: Fix parsing of certs with bit string in DN (GH-30351) | Christian Heimes | 2022-02-20 | 2 | -7/+21 |
| | |||||
* | bpo-39327: Close file descriptors as soon as possible in shutil.rmtree ↵ | Lital Natan | 2022-02-20 | 3 | -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 Smith | 2022-02-20 | 1 | -2/+2 |
| | |||||
* | Raise TypeError if SSLSocket is passed to asyncio transport-based methods ↵ | Andrew Svetlov | 2022-02-20 | 3 | -10/+22 |
| | | | | (GH-31442) | ||||
* | bpo-46672: fix `NameError` in `asyncio.gather` if type check fails (GH-31187) | Nikita Sobolev | 2022-02-20 | 3 | -1/+17 |
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | ||||
* | bpo-46752: Uniform TaskGroup.__repr__ (GH-31409) | Andrew Svetlov | 2022-02-20 | 1 | -8/+10 |
| | |||||
* | Improve discussion about how __getattr__ is invoked. (GH-31435) | Raymond Hettinger | 2022-02-20 | 1 | -9/+7 |
| | |||||
* | bpo-46066: Check DeprecationWarning in test_typing (GH-31428) | Jelle Zijlstra | 2022-02-20 | 1 | -4/+5 |
| | |||||
* | Use raw string to avoid deprecation warning (GH-31427) | Dennis Sweeney | 2022-02-19 | 1 | -1/+1 |
| | |||||
* | dict: Use DK_LOG_SIZE in hot loop. (GH-31405) | Inada Naoki | 2022-02-19 | 1 | -12/+12 |
| | | | DK_LOG_SIZE(key) < 8 is faster than DK_SIZE(key) <= 0xff, at least on GCC. | ||||
* | Counter doc mentions three methods, but lists four (GH-30706) | Charles Brunet | 2022-02-19 | 1 | -1/+1 |
| | | | Was probably caused by the addition of the `total()` method | ||||
* | bpo-46685: improve test coverage of `Self` and `Never` in `typing` (GH-31222) | Nikita Sobolev | 2022-02-19 | 1 | -1/+48 |
| | |||||
* | bpo-46603: improve coverage of `typing._strip_annotations` (GH-31063) | Nikita Sobolev | 2022-02-19 | 1 | -0/+9 |
| | |||||
* | bpo-46571: improve `typing.no_type_check` to skip foreign objects (GH-31042) | Nikita Sobolev | 2022-02-19 | 5 | -7/+132 |
| | | | | | | | | | | | | There are several changes: 1. We now don't explicitly check for any base / sub types, because new name check covers it 2. I've also checked that `no_type_check` do not modify foreign functions. It was the same as with `type`s 3. I've also covered `except TypeError` in `no_type_check` with a simple test case, it was not covered at all 4. I also felt like adding `lambda` test is a good idea: because `lambda` is a bit of both in class bodies: a function and an assignment <!-- issue-number: [bpo-46571](https://bugs.python.org/issue46571) --> https://bugs.python.org/issue46571 <!-- /issue-number --> | ||||
* | [docs] Correct typos in SSLContext.sni_callback (GH-30623) | Jörn Heissler | 2022-02-19 | 1 | -3/+3 |
| | | | Co-authored-by: Jörn Heissler <nosuchaddress@joern-heissler.de> | ||||
* | bpo-46784: Add newly exported expat symbols to the namespace. (GH-31397) | Yilei "Dolee" Yang | 2022-02-18 | 2 | -0/+6 |
| | | | | | | | | | | | | | | | The libexpat 2.4.1 upgrade from introduced the following new exported symbols: * `testingAccountingGetCountBytesDirect` * `testingAccountingGetCountBytesIndirect` * `unsignedCharToPrintable` * `XML_SetBillionLaughsAttackProtectionActivationThreshold` * `XML_SetBillionLaughsAttackProtectionMaximumAmplification` We need to adjust [Modules/expat/pyexpatns.h](https://github.com/python/cpython/blob/master/Modules/expat/pyexpatns.h) (The newer libexpat upgrade has no new symbols). Automerge-Triggered-By: GH:gpshead | ||||
* | Process more stale PRs, oldest first (GH-31407) | Hugo van Kemenade | 2022-02-18 | 1 | -0/+4 |
| |