summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* FIX rst issue in NEWS.d (GH-26923)Julien Palard2021-06-271-1/+1
|
* Add missing arg to DICT_MERGE opcode (GH-26859)andrei kulakov2021-06-271-1/+1
|
* bpo-44110: Improve string's __getitem__ error message (GH-26042)Miguel Brito2021-06-274-3/+13
|
* bpo-44468: Never skip base classes in `typing.get_type_hints()`, even with ↵will-ca2021-06-263-11/+21
| | | | invalid `.__module__`. (GH-26862)
* Update vendored pip to 21.1.3 (GH-26912)Stéphane Bidoul2021-06-263-1/+2
|
* bpo-43977: Properly update the tp_flags of existing subclasses when their ↵Brandt Bucher2021-06-254-34/+129
| | | | parents are registered (GH-26864)
* bpo-44498: suppress DeprecationWarnings for asynchat, asyncore and smtpd in ↵Irit Katriel2021-06-249-16/+51
| | | | tests (GH-26905)
* bpo-44498: Issue a deprecation warning on asynchat, asyncore and smtpd ↵Barry Warsaw2021-06-246-9/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | import (#26882) * Issue a deprecation warning on smtpd import * Also issue DeprecationWarnings for asynchat and asyncore * Fix some tests * test___all__ requires the word 'module' or 'package' in the deprecation warning text, so add those to smtpd, asynchat, and asyncore. * In test_support, use pprint now instead of asyncore as the landmark. * Add What's New * Use ..deprecated:: * Use ..deprecated:: * Update Lib/smtpd.py Co-authored-by: Miro Hrončok <miro@hroncok.cz> * Update Doc/library/smtpd.rst Co-authored-by: Miro Hrončok <miro@hroncok.cz> * Import async{hat,ore} after the DeprecationWarning for this module Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* bpo-44321: Adds `os.EX_OK` for Windows (GH-26559)Samuel Marks2021-06-242-2/+7
|
* bpo-44456: Improve the syntax error when mixing keyword and positional ↵Pablo Galindo2021-06-246-464/+672
| | | | patterns (GH-26793)
* bpo-44491: Allow clearing the sqlite3 authoriser callback (GH-26863)Erlend Egeberg Aasland2021-06-246-6/+33
|
* Make sure that line number is set correctly for call to __exit__ when ↵Mark Shannon2021-06-245-4505/+4522
| | | | handling exception in body of a with statement. (GH-26890)
* Fix typo in whatsnew 3.10.rst (GH-26854)Arnon Yaari2021-06-241-1/+1
| | | Thanks for the fix @wiggin15 .
* bpo-40939: Remove documentation for `PyParser_*` & add porting notes (GH-26855)Petr Viktorin2021-06-245-98/+41
| | | | | | I tried to be relatively thorough and give lots of links. One reason is that this wasn't deprecated very long; also it seems people running into this tend to not be familiar with similar APIs. Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* bpo-40528: move asdl identifier collection to the new metadata system (GH-26858)Batuhan Taskaya2021-06-241-49/+51
|
* bpo-44229: Ignore spurious EPROTOTYPE on macOS in test_ssl (GH-26893)Erlend Egeberg Aasland2021-06-241-3/+8
|
* bpo-43553: Improve `sqlite3` test coverage (GH-26886)Erlend Egeberg Aasland2021-06-244-2/+100
|
* bpo-43988: Fix test.support.check_disallow_instantiation version added ↵Erlend Egeberg Aasland2021-06-241-1/+1
| | | | | (GH-26889) Automerge-Triggered-By: GH:vstinner
* bpo-43693 Get rid of CO_NOFREE -- it's unused (GH-26839)Guido van Rossum2021-06-2310-260/+239
| | | | | | All uses of this flag are either setting it or in doc or tests for it. So we should be able to get rid of it completely.
* bpo-42862: Strip stale sqlite3 cache ignores from c-analyzer (GH-26876)Erlend Egeberg Aasland2021-06-231-5/+0
|
* bpo-39947: Remove old private trashcan C API functions (GH-26869)Victor Stinner2021-06-235-78/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | Remove 4 C API private trashcan functions which were only kept for the backward compatibility of the stable ABI with Python 3.8 and older, since the trashcan API was not usable with the limited C API on Python 3.8 and older. The trashcan API was excluded from the limited C API in Python 3.9. Removed functions: * _PyTrash_deposit_object() * _PyTrash_destroy_chain() * _PyTrash_thread_deposit_object() * _PyTrash_thread_destroy_chain() The trashcan C API was never usable with the limited C API, since old trashcan macros accessed directly PyThreadState members like "_tstate->trash_delete_nesting", whereas the PyThreadState structure is opaque in the limited C API. Exclude also the PyTrash_UNWIND_LEVEL constant from the C API. The trashcan C API was modified in Python 3.9 by commit 38965ec5411da60d312b59be281f3510d58e0cf1 and in Python 3.10 by commit ed1a5a5baca8f61e9a99c5be3adc16b1801514fe to hide implementation details.
* bpo-43770: Cleanup PyModuleDef_Init() (GH-26879)Victor Stinner2021-06-231-2/+1
| | | | | PyModuleDef_Init() no longer tries to make PyModule_Type type: it's already done by _PyTypes_Init() at Python startup. Replace PyType_Ready() call with an assertion.
* bpo-42064: Move `sqlite3` exceptions to global state, part 1 of 2 (GH-26745)Erlend Egeberg Aasland2021-06-238-49/+67
| | | Also adds a test to verify the (borrowed) exceptions in `sqlite3.Connection`.
* bpo-44441: _PyImport_Fini2() resets PyImport_Inittab (GH-26874)Victor Stinner2021-06-236-8/+85
| | | | | Py_RunMain() now resets PyImport_Inittab to its initial value at exit. It must be possible to call PyImport_AppendInittab() or PyImport_ExtendInittab() at each Python initialization.
* bpo-42064: Remove stale extern declarations in `sqlite3` headers (GH-26840)Erlend Egeberg Aasland2021-06-236-24/+0
|
* bpo-44404: tkinter `after` support callable classes (GH-26812)E-Paine2021-06-233-1/+13
|
* bpo-44482: Fix very unlikely resource leak in glob in non-CPython ↵Serhiy Storchaka2021-06-232-2/+9
| | | | implementations (GH-26843)
* bpo-28395: Remove unnecessary semicolons in tests (GH-26868)Dong-hee Na2021-06-238-31/+32
|
* bpo-44486: Make sure that modules always have a dictionary. (GH-26847)Mark Shannon2021-06-234-52/+66
| | | * Make sure that modules always have a dictionary.
* Fix typo in test_typing.py (GH-26853)Ikko Ashimine2021-06-221-1/+1
| | | maximium -> maximum
* bpo-43918: document signature and default argument of `anext` builtin (#25551)Erik Welch2021-06-223-4/+11
| | | Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
* [doc] Improve punctuation atexit docGéry Ogam2021-06-221-7/+8
|
* bpo-40528: Implement a metadata system for ASDL Generator (GH-20193)Batuhan Taskaya2021-06-221-24/+75
| | | | | | | | ASDL Generator was lack of proper annotation related to generated module. This patch implements a MetadataVisitor that produces a metadata object to pass to other visitors that are visiting that same module. For the inital patch, it dynamically retrieves int sequences (like cmpop), that was previously hardcoded. It offers an interface that is easy to extend.
* bpo-41621: Document defaultdict's default_factory parameter (GH-21945)Dennis Sweeney2021-06-223-3/+4
| | | It defaults to None and is positional only.
* bpo-44483: Fix crash in union object with bad ``__module__`` (GH-26848)Ken Jin2021-06-223-3/+25
|
* bpo-44439: BZ2File.write() / LZMAFile.write() handle buffer protocol ↵Ma Lin2021-06-227-9/+55
| | | | | | | correctly (GH-26764) No longer use len() to get the length of the input data. For some buffer protocol objects, the length obtained by using len() is wrong.
* bpo-44458: Ensure BUFFER_BLOCK_SIZE symbol is statically allocated. (GH-26808)Russell Keith-Magee2021-06-222-1/+2
| | | * bpo-44458: Ensure BUFFER_BLOCK_SIZE symbol is statically allocated.
* bpo-44287: asyncio test_popen() uses longer timeout (GH-26832)Victor Stinner2021-06-212-1/+6
| | | | | | | | Fix asyncio test_popen() of test_windows_utils by using a longer timeout. Use military grade battle-tested test.support.SHORT_TIMEOUT timeout rather than a hardcoded timeout of 10 seconds: it's 30 seconds by default, but it is made longer on slow buildbots. WaitForMultipleObjects() timeout argument is in milliseconds.
* bpo-13814: Explain why generators are not context managers (GH-26835)Terry Jan Reedy2021-06-212-0/+10
| | | | | Put entry in Design FAQ after a question about a context manager for assignment. Original patch by Aidan Lowe.
* bpo-43693: Turn localspluskinds into an object (GH-26749)Guido van Rossum2021-06-2114-5394/+5454
| | | Managing it as a bare pointer to malloc'ed bytes is just too awkward in a few places.
* Reset DeprecationWarning filters in test_typing io and re (#26811)Ken Jin2021-06-212-1/+3
|
* bpo-44472: Fix ltrace functionality when exceptions are raised (GH-26822)Pablo Galindo2021-06-212-0/+4
|
* bpo-44395: Fix MIMEPart.as_string to pass unixfrom properly (GH-26685)Dong-hee Na2021-06-213-2/+11
|
* bpo-44434: Don't call PyThread_exit_thread() explicitly (GH-26758)Victor Stinner2021-06-212-1/+7
| | | | | | | | | | | | | | | | | | | | | | _thread.start_new_thread() no longer calls PyThread_exit_thread() explicitly at the thread exit, the call was redundant. On Linux with the glibc, pthread_cancel() loads dynamically the libgcc_s.so.1 library. dlopen() can fail if there is no more available file descriptor to open the file. In this case, the process aborts with the error message: "libgcc_s.so.1 must be installed for pthread_cancel to work" pthread_cancel() unwinds back to the thread's wrapping function that calls the thread entry point. The unwind function is dynamically loaded from the libgcc_s library since it is tightly coupled to the C compiler (GCC). The unwinder depends on DWARF, the compiler generates DWARF, so the unwinder belongs to the compiler. Thanks Florian Weimer and Carlos O'Donell for their help on investigating this issue.
* bpo-44466: Faulthandler now detects the GC (GH-26823)Victor Stinner2021-06-215-14/+70
| | | | The faulthandler module now detects if a fatal error occurs during a garbage collector collection (only if all_threads is true).
* bpo-44337: Improve LOAD_ATTR specialization (GH-26759)Mark Shannon2021-06-213-72/+179
| | | | | | | | * Specialize obj.__class__ with LOAD_ATTR_SLOT * Specialize instance attribute lookup with attribute on class, provided attribute on class is not an overriding descriptor. * Add stat for how many times the unquickened instruction has executed.
* bpo-44297: Fix missing line number in generator expressions (GH-26801)Mark Shannon2021-06-214-952/+971
| | | * Make sure that line number is set when entering comprehension scope in compiler.
* bpo-44469: Fix tests for "async with" with bad object (GH-26817)Serhiy Storchaka2021-06-211-6/+12
| | | | Test for execution of the body was null. It would pass even if the code which should be skipped was executed.
* bpo-44077: Expose IP_RECVTOS in the socket module (GH-25992)Georg Sauthoff2021-06-204-0/+12
| | | Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
* Fix typos and grammatical changes in the 3.10 what's new document (GH-26319)Hemangii2021-06-201-1/+1
|