summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [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
|
* bpo-44430: Refactor `sqlite3` threading tests (GH-26748)Erlend Egeberg Aasland2021-06-201-140/+36
| | | | | | | 1. Rewrite ThreadTests with a _run_test() helper method that does the heavy lifting 2. Add test.support.threading_helper.reap_threads to _run_test() 3. Use _run_test() in all threading tests 4. Add test case for sqlite3.Connection.set_trace_callback 5. Add test case for sqlite3.Connection.create_collation
* bpo-44087: Disallow instantiation of sqlite3.Statement (GH-26567)Erlend Egeberg Aasland2021-06-202-1/+6
|
* bpo-40956: Convert sqlite3.connect and sqlite3.Connection.__init__ to AC ↵Erlend Egeberg Aasland2021-06-206-71/+298
| | | | (GH-24421)
* bpo-38291: DeprecationWarning when importing typing.{io,re} (#26719)Sebastian Rittau2021-06-194-16/+35
|
* bpo-44426: Fix use of the C keyword 'default' as a variable name (GH-26798)Mark Dickinson2021-06-191-2/+2
|
* bpo-43298: Improved error message when building without the Windows SDK ↵Steve Dower2021-06-192-3/+13
| | | | installed (GH-26800)
* bpo-38820: Test with OpenSSL 3.0.0-beta1 (GH-26769)Christian Heimes2021-06-192-2/+2
| | | Signed-off-by: Christian Heimes <christian@python.org>
* Remove dubious suggestion (GH-26789)Raymond Hettinger2021-06-191-18/+0
| | | Remove the weakref example. If a new instance is created and the same arguments are passes, it raises a ReferenceError.
* Add a note about NameError/AttributeError suggestions with custom error ↵Pablo Galindo2021-06-181-0/+11
| | | | functions (GH-26794)
* bpo-43945: [Enum] reduce scope of new format() behavior (GH-26752)Ethan Furman2021-06-185-29/+225
| | | | | | | | | | | | | | | | | | | | | * [Enum] reduce scope of new format behavior Instead of treating all Enums the same for format(), only user mixed-in enums will be affected. In other words, IntEnum and IntFlag will not be changing the format() behavior, due to the requirement that they be drop-in replacements of existing integer constants. If a user creates their own integer-based enum, then the new behavior will apply: class Grades(int, Enum): A = 5 B = 4 C = 3 D = 2 F = 0 Now: format(Grades.B) -> DeprecationWarning and '4' 3.12: -> no warning, and 'B'
* bpo-44451: Reset DeprecationWarning filters in ↵Miro Hrončok2021-06-182-0/+4
| | | | | | | | | | | | | | | | | test_importlib.test_entry_points_by_index (GH-26784) This avoids the following error if DeprecationWarnings are ignored. ====================================================================== ERROR: test_entry_points_by_index (test.test_importlib.test_metadata_api.APITests) Prior versions of Distribution.entry_points would return a ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.10.0b3/Lib/test/test_importlib/test_metadata_api.py", line 145, in test_entry_points_by_index expected = next(iter(caught)) StopIteration ---------------------------------------------------------------------- Ran 1402 tests in 2.125s FAILED (errors=1, skipped=18, expected failures=1)
* Reorganize the pattern matching suite (GH-26661)Brandt Bucher2021-06-181-548/+497
|
* bpo-44032: Move pointer to code object from frame-object to frame specials ↵Mark Shannon2021-06-186-41/+59
| | | | array. (GH-26771)
* bpo-44310: Add a FAQ entry for caching method calls (GH-26731)Raymond Hettinger2021-06-171-0/+97
|
* bpo-43024: improve signature (in help, etc) for functions taking sent… ↵Irit Katriel2021-06-173-1/+21
| | | | | (GH-24331) …inel defaults
* Do not clear globals or builtins when calling clear() on a frame object. ↵Mark Shannon2021-06-172-5/+17
| | | | Reverts behavior to that of 3.10 and earlier. (GH-26768)
* bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351)Erlend Egeberg Aasland2021-06-1722-38/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Make functools types immutable * Multibyte codec types are now immutable * pyexpat.xmlparser is now immutable * array.arrayiterator is now immutable * _thread types are now immutable * _csv types are now immutable * _queue.SimpleQueue is now immutable * mmap.mmap is now immutable * unicodedata.UCD is now immutable * sqlite3 types are now immutable * _lsprof.Profiler is now immutable * _overlapped.Overlapped is now immutable * _operator types are now immutable * winapi__overlapped.Overlapped is now immutable * _lzma types are now immutable * _bz2 types are now immutable * _dbm.dbm and _gdbm.gdbm are now immutable
* bpo-44389: Fix typo in ssl deprecation warning message (GH-26754)Joe2021-06-172-2/+2
| | | `ssl.SSL_NO_TLS` should be `ssl.OP_NO_TLS`.
* bpo-44426: Use of 'complex' as a C variable name confuses Sphinx; change it ↵Mark Dickinson2021-06-161-2/+2
| | | | to 'num'. (GH-26744)
* bpo-44392: Add Py_GenericAlias to C API docs (GH-26724)Ken Jin2021-06-166-3/+53
| | | | Also fix stable ABI type definitions
* bpo-38211: Clean up type_init() (GH-16257)Sergey Fedoseev2021-06-161-19/+4
| | | | | 1. Remove conditions already checked by assert() 2. Remove object_init() call that effectively creates an empty tuple and checks that this tuple is empty
* bpo-44422: threading.Thread reuses the _delete() method (GH-26741)Victor Stinner2021-06-161-7/+1
| | | | | | | The _bootstrap_inner() method of threading.Thread now reuses its _delete() method rather than accessing _active() directly. It became possible since _active_limbo_lock became reentrant. Moreover, it no longer ignores any exception when deleting the thread from the _active dictionary.
* bpo-43795: Don't list private names in the limited API (GH-26740)Petr Viktorin2021-06-164-5/+17
| | | | | | | | | | | | | * Remove struct _node from the stable ABI list This struct was removed along with the old parser in Python 3.9 (PEP 617) * Stable ABI list: Use the public name "PyFrameObject" rather than "_frame" * Ensure limited API doesn't contain private names Names prefixed by an underscore are private by definition. * Add a blurb
* bpo-44342: [Enum] sync current docs to 3.10 (GH-26750)Ethan Furman2021-06-163-4/+4
|
* bpo-43693: Eliminate unused "fast locals". (gh-26587)Eric Snow2021-06-1512-4212/+4187
| | | | | Currently, if an arg value escapes (into the closure for an inner function) we end up allocating two indices in the fast locals even though only one gets used. Additionally, using the lower index would be better in some cases, such as with no-arg `super()`. To address this, we update the compiler to fix the offsets so each variable only gets one "fast local". As a consequence, now some cell offsets are interspersed with the locals (only when an arg escapes to an inner function). https://bugs.python.org/issue43693
* bpo-43475: Add what's new entry for NaN hash changes (GH-26725)Mark Dickinson2021-06-151-0/+7
|
* [Enum] improve test, add andrei kulakov to ACKS (GH-26726)Ethan Furman2021-06-152-0/+24
|
* bpo-44422: Fix threading.enumerate() reentrant call (GH-26727)Victor Stinner2021-06-152-3/+9
| | | | The threading.enumerate() function now uses a reentrant lock to prevent a hang on reentrant call.
* bpo-42972: _thread.RLock implements the GH protocol (GH-26734)Victor Stinner2021-06-152-1/+12
| | | | The _thread.RLock type now fully implement the GC protocol: add a traverse function and the Py_TPFLAGS_HAVE_GC flag.
* bpo-42064: Move sqlite3 types to global state (GH-26537)Erlend Egeberg Aasland2021-06-1512-70/+103
| | | | | | | | | * Move connection type to global state * Move cursor type to global state * Move prepare protocol type to global state * Move row type to global state * Move statement type to global state * ADD_TYPE takes a pointer * pysqlite_get_state is now static inline
* Add extra stats for attribute misses (GH-26732)Mark Shannon2021-06-152-2/+90
|