summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-93259: Validate arg to ``Distribution.from_name``. (GH-94270)Jason R. Coombs2022-06-266-67/+135
| | | Syncs with importlib_metadata 4.12.0.
* gh-70474: [doc] fix wording of GET_ANEXT doc (GH-94048)Irit Katriel2022-06-251-2/+2
|
* bpo-39971: Change examples to be runnable (GH-32172)Stanley2022-06-251-11/+18
|
* gh-90016: Reword sqlite3 adapter/converter docs (#93095)Erlend Egeberg Aasland2022-06-255-122/+156
| | | | | | Also add adapters and converter recipes. Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com
* gh-77560: Report possible errors in restoring builtins at finalization ↵Serhiy Storchaka2022-06-251-1/+1
| | | | | | | (GH-94255) Seems in the past the copy of builtins was not made in some scenarios, and the error was silenced. Write it now to stderr, so we have a chance to see it.
* gh-94245: Test pickling and copying of typing.Tuple[()] (GH-94259)Serhiy Storchaka2022-06-251-2/+4
|
* gh-94207: Fix struct module leak (GH-94239)Mark Dickinson2022-06-253-2/+39
| | | | | | | | | | | | Make _struct.Struct a GC type This fixes a memory leak in the _struct module, where as soon as a Struct object is stored in the cache, there's a cycle from the _struct module to the cache to Struct objects to the Struct type back to the module. If _struct.Struct is not gc-tracked, that cycle is never collected. This PR makes _struct.Struct GC-tracked, and adds a regression test.
* gh-94199: Remove ssl.match_hostname() function (#94224)Victor Stinner2022-06-255-313/+14
|
* gh-70441: Fix test_tarfile on systems w/o bz2 (gh-2962) (#94258)Christian Heimes2022-06-251-0/+1
|
* bpo-26253: Add compressionlevel to tarfile stream (GH-2962)Yaron de Leeuw2022-06-254-11/+88
| | | | | | `tarfile` already accepts a compressionlevel argument for creating files. This patch adds the same for stream-based tarfile usage. The default is 9, the value that was previously hard-coded.
* bpo-46642: Explicitly disallow subclassing of instaces of TypeVar, ↵Gregory Beauregard2022-06-253-39/+81
| | | | | | | | ParamSpec, etc (GH-31148) The existing test covering this case passed only incidentally. We explicitly disallow doing this and add a proper error message. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-85308: Add argparse tests for reading non-ASCII arguments from file ↵Serhiy Storchaka2022-06-242-12/+28
| | | | (GH-94160)
* gh-94217: Skip import tests when _testcapi is a builtin (GH-94218)Christian Heimes2022-06-242-1/+13
|
* gh-93382: Sync up `co_code` changes with 3.11 (GH-94227)Ken Jin2022-06-244-3/+5
| | | Sync up co_code changes with 3.11 commit 852b4d4bcd12b0b6839a015a262ce976b134f6f3.
* Docs: Remove `Provides [...]` from `multiprocessing.shared_memory` ↵Oleg Iarygin2022-06-241-2/+2
| | | | description (#92761)
* IDLE: replace if statement with expression (#94228)Terry Jan Reedy2022-06-241-6/+2
|
* gh-94172: urllib.request avoids deprecated check_hostname (#94193)Victor Stinner2022-06-242-17/+23
| | | | | | | | | | | The urllib.request no longer uses the deprecated check_hostname parameter of the http.client module. Add private http.client._create_https_context() helper to http.client, used by urllib.request. Remove the now redundant check on check_hostname and verify_mode in http.client: the SSLContext.check_hostname setter already implements the check.
* gh-84461: Build Emscripten with WASM BigInt support (#94219)Christian Heimes2022-06-243-1/+8
|
* gh-94205: Ensures all required DLLs are copied on Windows for underpth tests ↵Steve Dower2022-06-241-0/+2
| | | | (GH-94206)
* gh-84461: Fix ctypes and test_ctypes on Emscripten (#94142)Christian Heimes2022-06-249-9/+26
| | | | | - c_longlong and c_longdouble need experimental WASM bigint. - Skip tests that need threading - Define ``CTYPES_MAX_ARGCOUNT`` for Emscripten. libffi-emscripten 2022-06-23 supports up to 1000 args.
* gh-93692: remove "build finished successfully" message from setup.py (#93693)Erlend Egeberg Aasland2022-06-241-1/+0
| | | | The message was only emitted when the build succeeded _and_ there were missing modules.
* gh-94196: Remove gzip.GzipFile.filename attribute (#94197)Victor Stinner2022-06-244-8/+14
| | | | | | gzip: Remove the filename attribute of gzip.GzipFile, deprecated since Python 2.6, use the name attribute instead. In write mode, the filename attribute added '.gz' file extension if it was not present.
* gh-94199: Remove ssl.RAND_pseudo_bytes() function (#94202)Victor Stinner2022-06-247-81/+11
| | | | Remove the ssl.RAND_pseudo_bytes() function, deprecated in Python 3.6: use os.urandom() or ssl.RAND_bytes() instead.
* gh-94169: Remove deprecated io.OpenWrapper (#94170)Victor Stinner2022-06-245-40/+10
| | | | | | Remove io.OpenWrapper and _pyio.OpenWrapper, deprecated in Python 3.10: just use :func:`open` instead. The open() (io.open()) function is a built-in function. Since Python 3.10, _pyio.open() is also a static method.
* Add more tests for throwing into yield from (GH-94097)Brandt Bucher2022-06-231-0/+527
|
* Add ABI dump script (#94135)Pablo Galindo Salgado2022-06-233-1/+12
|
* [Enum] Remove automatic docstring generation (GH-94188)Sam Ezeh2022-06-232-267/+4
|
* gh-91219: Add an index_pages default list and parameter to ↵Myron Walker2022-06-232-2/+6
| | | | | | | | SimpleHTTPRequestHandler (GH-31985) * Add an index_pages default list to SimpleHTTPRequestHandler and an optional constructor parameter that allows the default indexes pages list to be overridden. This makes it easy to set a new index page name without having to override send_head.
* gh-93771: Clarify how deepfreeze.py is run (#94150)Guido van Rossum2022-06-231-2/+4
|
* gh-92858: Improve error message for some suites with syntax error before ':' ↵wookie1842022-06-234-380/+542
| | | | (#92894)
* [Enum] fix typo (GH-94158)Ethan Furman2022-06-231-8/+8
|
* GH-91742: Fix pdb crash after jump (GH-94171)Kumar Aditya2022-06-233-1/+45
|
* gh-89121: Keep the number of pending SQLite statements to a minimum (#30379)Erlend Egeberg Aasland2022-06-231-22/+12
| | | | | Make sure statements that have run to completion or errored are reset and cleared off the cursor for all paths in execute() and executemany().
* gh-86404: [doc] Fix missing backtick and double target name. (#94120)Julien Palard2022-06-231-2/+2
|
* gh-84461: Fix test_sqlite for Emscripten/WASI (#94125)Christian Heimes2022-06-231-1/+8
|
* gh-91456: [Enum] Deprecate default auto() behavior with mixed value types ↵Oscar R2022-06-234-17/+89
| | | | | | | (GH-91457) When used with plain Enum, auto() returns the last numeric value assigned, skipping any incompatible member values (such as strings); starting in 3.13 the default auto() for plain Enums will require all the values to be of compatible types, and will return a new value that is 1 higher than any existing value. Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* Closes gh-94152: Update pyvideo.org URL (GH-94075)partev2022-06-231-1/+1
| | | The URL is now https://pyvideo.org, which uses HTTPS and avoids a redirect.
* gh-85308: argparse: Use filesystem encoding for arguments file (GH-93277)Inada Naoki2022-06-234-2/+23
|
* gh-84623: Remove unused imports in idlelib (#94143)Victor Stinner2022-06-223-17/+7
| | | | | Remove commented code in test_debugger_r.py. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Add ABI dump Makefile target (#94136)Pablo Galindo Salgado2022-06-221-0/+8
|
* gh-84623: Move imports in doctests (#94133)Victor Stinner2022-06-223-5/+5
| | | Move imports in doctests to prevent false alarms in pyflakes.
* gh-54781: Move Lib/tkinter/test/test_ttk/ to Lib/test/test_ttk/ (#94070)Victor Stinner2022-06-2229-109/+100
| | | | | | | | | | * Move Lib/tkinter/test/test_tkinter/ to Lib/test/test_tkinter/. * Move Lib/tkinter/test/test_ttk/ to Lib/test/test_ttk/. * Add Lib/test/test_ttk/__init__.py based on test_ttk_guionly.py. * Add Lib/test/test_tkinter/__init__.py * Remove old Lib/test/test_tk.py. * Remove old Lib/test/test_ttk_guionly.py. * Add __main__ sub-modules. * Update imports and update references to rename files.
* gh-84623: Remove unused imports (#94132)Victor Stinner2022-06-2228-43/+9
|
* gh-94114: Remove obsolete reference to python.org mirrors (GH-94115)partev2022-06-221-4/+1
| | | * gh-94114
* gh-91172: Create a workflow for verifying bundled pip and setuptools (GH-31885)Illia Volochii2022-06-223-0/+128
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-93951: In test_bdb.StateTestCase.test_skip, avoid including auxiliary ↵Jason R. Coombs2022-06-223-0/+21
| | | | | importers. (GH-93962) Co-authored-by: Brett Cannon <brett@python.org>
* Fix typo in _io.TextIOWrapper Clinic input (#94037)fikotta2022-06-221-2/+2
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-94101 Disallow instantiation of SSLSession objects (GH-94102)chgnrdv2022-06-222-1/+5
| | | | | Fixes #94101 Automerge-Triggered-By: GH:tiran
* gh-74696: Do not change the current working directory in ↵Serhiy Storchaka2022-06-224-52/+106
| | | | | | | | | | | shutil.make_archive() if possible (GH-93160) It is no longer changed when create a zip or tar archive. It is still changed for custom archivers registered with shutil.register_archive_format() if root_dir is not None. Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* Stats: Add summary of top instructions for misses and deferred ↵Mark Shannon2022-06-221-2/+20
| | | | specialization. (GH-94072)