summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* GH-95494: Fix transport EOF handling in OpenSSL 3.0 (GH-95495)David Benjamin2023-03-223-7/+32
| | | | | | | | | | | | | | | | | | | | | GH-25309 enabled SSL_OP_IGNORE_UNEXPECTED_EOF by default, with a comment that it restores OpenSSL 1.1.1 behavior, but this wasn't quite right. That option causes OpenSSL to treat transport EOF as the same as close_notify (i.e. SSL_ERROR_ZERO_RETURN), whereas Python actually has distinct SSLEOFError and SSLZeroReturnError exceptions. (The latter is usually mapped to a zero return from read.) In OpenSSL 1.1.1, the ssl module would raise them for transport EOF and close_notify, respectively. In OpenSSL 3.0, both act like close_notify. Fix this by, instead, just detecting SSL_R_UNEXPECTED_EOF_WHILE_READING and mapping that to the other exception type. There doesn't seem to have been any unit test of this error, so fill in the missing one. This had to be done with the BIO path because it's actually slightly tricky to simulate a transport EOF with Python's fd based APIs. (If you instruct the server to close the socket, it gets confused, probably because the server's SSL object is still referencing the now dead fd?)
* Docs: improve accuracy of sqlite3.Connection.interrupt() (#102904)Erlend E. Aasland2023-03-221-1/+1
| | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-100989: Improve the accuracy of collections.deque docstrings (#100990)Timo Ludwig2023-03-221-13/+24
| | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* Docs: improve the accuracy of the sqlite3.connect() timeout param (#102900)Erlend E. Aasland2023-03-221-3/+3
| | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* GH-94808: Cover `PyOS_mystrnicmp` and `PyOS_mystricmp` (gh-102469)Artem Mukhin2023-03-226-1/+69
|
* Docs: improve accuracy of pdb alias example (#102892)gaogaotiantian2023-03-221-1/+1
|
* gh-102839: remove AC for math.log (GH-102863)Sergey B Kirpichev2023-03-213-65/+16
|
* Add link to `sys.exit` function documentation (#102805)David Poirier2023-03-211-1/+1
| | | | | | | | | | | | | | | | * Add link to `sys.exit` function documentation * Update Doc/library/os.rst Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> * Update Doc/library/os.rst Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> --------- Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-102406: replace exception chaining by PEP-678 notes in codecs (#102407)Irit Katriel2023-03-215-206/+64
|
* gh-94673: Isolate the _io module to Each Interpreter (gh-102663)Eric Snow2023-03-212-12/+40
| | | | | Aside from sys and builtins, _io is the only core builtin module that hasn't been ported to multi-phase init. We may do so later (e.g. gh-101948), but in the meantime we must at least take care of the module's static types properly. (This came up while working on gh-101660.) https://github.com/python/cpython/issues/94673
* gh-102860: improve performance of compiler's instr_sequence_to_cfg (#102861)Irit Katriel2023-03-211-6/+44
|
* gh-98608: Fix Failure-handling in new_interpreter() (gh-102658)Eric Snow2023-03-211-1/+1
| | | | | The error-handling code in new_interpreter() has been broken for a while. We hadn't noticed because those code mostly doesn't fail. (I noticed while working on gh-101660.) The problem is that we try to clear/delete the newly-created thread/interpreter using itself, which just failed. The solution is to switch back to the calling thread state first. https://github.com/python/cpython/issues/98608
* Tweak polynomial itertool recipes (GH-102880)Raymond Hettinger2023-03-211-14/+13
|
* gh-102304: Move the Total Refcount to PyInterpreterState (gh-102545)Eric Snow2023-03-2113-40/+117
| | | | | Moving it valuable with a per-interpreter GIL. However, it is also useful without one, since it allows us to identify refleaks within a single interpreter or where references are escaping an interpreter. This becomes more important as we move the obmalloc state to PyInterpreterState. https://github.com/python/cpython/issues/102304
* gh-102876: remove superfluous parens from itertools.batched recipe (GH-102877)wim glenn2023-03-212-2/+2
| | | remove superfluous parens from itertools.batched recipe
* gh-98608: Stop Treating All Errors from _Py_NewInterpreterFromConfig() as ↵Eric Snow2023-03-216-17/+27
| | | | | | | Fatal (gh-102657) Prior to this change, errors in _Py_NewInterpreterFromConfig() were always fatal. Instead, callers should be able to handle such errors and keep going. That's what this change supports. (This was an oversight in the original implementation of _Py_NewInterpreterFromConfig().) Note that the existing [fatal] behavior of the public Py_NewInterpreter() is preserved. https://github.com/python/cpython/issues/98608
* gh-102595: Document `PyObject_Format` c-api function (GH-102596)Nikita Sobolev2023-03-211-0/+9
| | | Def: https://github.com/python/cpython/blame/5ffdaf748d98da6065158534720f1996a45a0072/Include/abstract.h#L389
* gh-102828: emit deprecation warning for onerror arg to shutil.rmtree (#102850)Irit Katriel2023-03-214-12/+28
|
* gh-102799: Let pydoc use the exception instead of sys.exc_info (#102830)Irit Katriel2023-03-211-14/+22
|
* gh-102755: PyErr_DisplayException only in ABI >= 3.12. Tests cover ↵Irit Katriel2023-03-213-4/+31
| | | | PyErr_Display as well (GH-102849)
* gh-102598: Remove obsolete optimization from `FORMAT_VALUE` opcode (#102599)Nikita Sobolev2023-03-212-44/+21
|
* The pow() variant further improves accuracy (GH-102866)Raymond Hettinger2023-03-211-1/+1
|
* Remove itermediate list. Expand docstring. (GH-102862)Raymond Hettinger2023-03-211-4/+8
|
* gh-102809: Remove `Misc/gdbinit` (#102854)Nikita Sobolev2023-03-202-176/+1
| | | | Looks like the consensus is that we don't need this file anymore. Old version can be always found here: https://github.com/python/cpython/blob/094cf392f49d3c16fe798863717f6c8e0f3734bb/Misc/gdbinit
* Add itertool recipe for polynomial evaluation. (GH-102852)Raymond Hettinger2023-03-201-0/+40
|
* gh-102304: Fix Non-Debug Builds (gh-102846)Eric Snow2023-03-201-0/+2
| | | | | Some debug-only code slipped in with gh-102543. https://github.com/python/cpython/issues/102304
* gh-102304: Add a What's New Entry About _Py_RefTotal (gh-102845)Eric Snow2023-03-201-0/+5
| | | https://github.com/python/cpython/issues/102304
* gh-102304: Move _Py_RefTotal to _PyRuntimeState (gh-102543)Eric Snow2023-03-2013-36/+121
| | | | | | | The essentially eliminates the global variable, with the associated benefits. This is also a precursor to isolating this bit of state to PyInterpreterState. Folks that currently read _Py_RefTotal directly would have to start using _Py_GetGlobalRefTotal() instead. https://github.com/python/cpython/issues/102304
* gh-102255: Use GetVersionEx instead of GetVersionExW to match argument type ↵Max Bachmann2023-03-201-1/+1
| | | | | | (GH-102583) Since we pass a structure of type `OSVERSIONINFOEX`, we need to call `GetVersionEx` instead of `GetVersionExW`.
* gh-72346: Added isdst deprecation warning to email.utils.localtime (GH-91450)Alan Williams2023-03-205-45/+34
|
* gh-102828: fix test failure (add missing skip instructions) (#102835)Irit Katriel2023-03-201-0/+4
|
* gh-102491: Remove IronPython version check in sys_version (#102492)Pieter Eendebak2023-03-193-51/+10
|
* gh-102810: Add docstrings to the public-facing methods of `asyncio.Timeout` ↵JosephSBoyle2023-03-191-0/+12
| | | | | | (#102811) Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-102828: add onexc arg to shutil.rmtree. Deprecate onerror. (#102829)Irit Katriel2023-03-195-56/+256
|
* gh-102778: revert changes to idlelib (#102825)Irit Katriel2023-03-194-24/+9
|
* gh-102755: fix refleak (#102826)Irit Katriel2023-03-191-1/+2
|
* gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives ↵Irit Katriel2023-03-194-342/+334
| | | | (#102816)
* Add more comments to hypot() (GH-102817)Raymond Hettinger2023-03-181-18/+12
|
* gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives ↵Irit Katriel2023-03-181-41/+26
| | | | (#102769)
* gh-102778: Add sys.last_exc, deprecate sys.last_type, ↵Irit Katriel2023-03-1822-36/+103
| | | | sys.last_value,sys.last_traceback (#102779)
* gh-101975: Fixed a potential SegFault on garbage collection (GH-102803)gaogaotiantian2023-03-182-0/+2
|
* gh-102799: remove unnecessary calls to sys.exc_info() in tests (#102800)Irit Katriel2023-03-185-124/+124
|
* Simplify and improve accuracy for subnormals in hypot() (GH-102785)Raymond Hettinger2023-03-171-35/+28
|
* gh-102781: fix cwd dependence in cases generator (#102782)Carl Meyer2023-03-171-1/+3
|
* gh-102701: Fix overflow in dictobject.c (GH-102750)Inada Naoki2023-03-173-1/+11
|
* GH-78530: add support for generators in `asyncio.wait` (#102761)Kumar Aditya2023-03-174-0/+24
|
* Increase stack reserve size for Windows debug builds to avoid test crashes ↵Steve Dower2023-03-172-2/+3
| | | | (GH-102764)
* gh-102755: Add PyErr_DisplayException(exc) (#102756)Irit Katriel2023-03-1613-78/+76
|
* Fix outdated note about 'int' rounding or truncating (#102736)Mark Dickinson2023-03-161-4/+3
|
* gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives ↵Irit Katriel2023-03-161-9/+10
| | | | (#102760)