Brandt Bucher
c7e5bbaee8
GH-95150: Use position and exception tables for code hashing and equality (GH-95509)
2022-08-01 11:02:56 -07:00
Eugene Triguba
a95e60db74
gh-91447: Fix findtext to only give an empty string on None (GH-91486)
...
The API documentation for [findtext](https://docs.python.org/3/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.findtext ) states that this function gives back an empty string on "no text content." With the previous implementation, this would give back a empty string even on text content values such as 0 or False. This patch attempts to resolve that by only giving back an empty string if the text attribute is set to `None`. Resolves #91447 .
Automerge-Triggered-By: GH:gvanrossum
2022-08-01 09:52:39 -07:00
Oleg Iarygin
858c9a58bf
gh-95417: Quick fix for "ULONG_PTR differs in levels of indirection from void *" (GH-95538)
2022-08-01 17:30:15 +01:00
Jacob Walls
c0cd790219
gh-95173: Add a regression test for sorting tuples containing None ( #95464 )
2022-08-01 18:02:09 +02:00
neonene
7d8973870b
gh-95445: Ensure Windows msi uninstalls document folder successfully (GH-95465)
2022-08-01 16:37:32 +01:00
Alex Hedges
d965d1995e
no-issue: Fix typo of "thrid" instead of "third" in dis docs (gh-95510)
2022-08-02 00:06:43 +09:00
Mark Shannon
de388c0a7b
GH-95245: Store object values and dict pointers in single tagged pointer. (GH-95278)
2022-08-01 14:34:54 +01:00
Dong-hee Na
fb75d015f4
gh-91146: More reduce allocation size of list from str.split/rsplit (gh-95493)
...
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2022-08-01 22:15:07 +09:00
Noam Cohen
347c783673
gh-95007: Remove the NoneType return converter from Argument Clinic Doc ( #95529 )
...
The converter was removed in 74b5e4ce80
2022-08-01 15:07:35 +02:00
Petr Viktorin
664e96a98f
gh-93649: Split heaptype tests from _testcapimodule.c (GH-95386)
...
This removes the unused negative_dictoffset function:
the type this function would create is available as
_testcapi.HeapCTypeWithNegativeDict
2022-08-01 15:04:14 +02:00
Erlend Egeberg Aasland
bc7c7cd18a
gh-77617: Add sqlite3 command-line interface ( #95026 )
...
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-08-01 12:25:16 +02:00
Erlend Egeberg Aasland
1e6b63542e
gh-95273: Clarify when sqlite_* attributes are added to sqlite3 exceptions ( #95523 )
2022-08-01 11:15:07 +02:00
Terry Jan Reedy
fc31a13dc1
gh-95511: IDLE - fix Shell context menu copy-with-prompts bug ( #95512 )
...
If one selects whole lines, as the sidebar makes easy, do not
add an extra line. Only move the end of a selection to the
beginning of the next line when not already at the beginning
of a line. (Also improve the surrounding code.)
2022-08-01 01:06:13 -04:00
markus-sus
d29e279de3
bpo-42037: Corrected request dependencies in CookieJar functions (GH-23112)
2022-08-01 10:42:13 +08:00
Serhiy Storchaka
0f17a754d9
IDLE: Fix docs URL in the About window ( #28417 )
2022-07-31 16:47:28 -04:00
Pablo Galindo Salgado
aa37ffda29
bpo-45445: Revert "bpo-45445: Fail if an invalid X-option is provided in the command line (GH-28823)" ( #94745 )
2022-07-31 16:33:56 +01:00
Dong-hee Na
50b2261bda
gh-91146: Reduce allocation size of list from str.split()/rsplit() (gh-95473)
2022-07-31 12:14:53 +09:00
Terry Jan Reedy
53357b3ee5
gh-95471: IDLE - Tweak Edit menu ( #95481 )
...
Move `Select All` above `Cut` as it is used with `Cut` and `Copy` but not `Paste`. Add a separator between `Replace` and `Go to Line` to separate items that belong to the 'Edit-find' (above) and 'Edit-show' (below) IDLE github project topics.
2022-07-30 21:09:07 -04:00
Erlend Egeberg Aasland
6c439b978b
gh-94635: Add Reference, How-to, and Concepts headings to sqlite3 docs ( #94636 )
...
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-07-31 01:24:15 +02:00
Zachary Ware
82814624bf
Doctest cleanups (GH-95436)
...
* GHA: Don't hide doctest output
* Enable doctests in math.rst
* Squash warnings in nntplib.rst doctests
* Squash warning in turtle.rst doctest
* Squash warnings in whatsnew/3.2.rst doctests
* Treat warnings as errors in Doc/ doctests
2022-07-30 17:21:08 -05:00
Terry Jan Reedy
9ec6abf6dc
gh-90654: IDLE - Insert blank line in NEWS.txt ( #95478 )
...
Needed for backports.
2022-07-30 15:57:37 -04:00
Robert O'Shea
cd26595232
gh-95454: Replace truthy/falsy with true/false (GH-95456)
2022-07-30 00:42:21 -07:00
Serhiy Storchaka
0956b6d9c4
gh-94938: Fix test (GH-95396)
2022-07-30 09:16:22 +03:00
Erlend Egeberg Aasland
7e19e417b5
gh-95411: IDLE - Enable using the module browser with .pyw files ( #95397 )
...
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-07-30 00:42:13 -04:00
Erlend Egeberg Aasland
d92b19e1b5
gh-95273: Relocate sqlite3 enable load extension note ( #95430 )
2022-07-29 21:27:15 +02:00
Steve Dower
e3bae80e70
gh-94302: Clarify use of the 'open' operation in os.startfile (GH-95441)
2022-07-29 17:24:56 +01:00
Christian Heimes
f81a6c5fc7
gh-95415: Make availability directive consistent (GH-95416)
2022-07-29 16:42:09 +02:00
Erlend Egeberg Aasland
2fbee85931
gh-95432: Fixup sqlite3 tutorial example ( #95431 )
...
- the insert statement should have five placeholders, not four
- missing ... in the multiline row list
2022-07-29 14:31:41 +02:00
Oleg Iarygin
a739ee412c
gh-94512: Fix forced arg format in AC-processed resource (GH-94515)
2022-07-29 12:48:11 +01:00
Erlend Egeberg Aasland
e003b64f40
gh-95273: Improve sqlite3 class descriptions ( #95379 )
...
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-07-29 11:53:23 +02:00
Erlend Egeberg Aasland
f0bf7956e6
gh-95273: Move sqlite3 executemany examples from reference to tutorial ( #95351 )
2022-07-29 09:42:22 +02:00
Erlend Egeberg Aasland
e9c8de669d
gh-95273: Condense sqlite3 executescript example ( #95383 )
2022-07-29 09:40:44 +02:00
Eric Snow
3e7cad3bca
gh-94673: Add Per-Interpreter tp_weaklist for Static Builtin Types ( #95302 )
...
* Store tp_weaklist on the interpreter state for static builtin types.
* Factor out _PyStaticType_GET_WEAKREFS_LISTPTR().
* Add _PyStaticType_ClearWeakRefs().
* Add a comment about how _PyStaticType_ClearWeakRefs() loops.
* Document the change.
* Update Doc/whatsnew/3.12.rst
* Fix a typo.
2022-07-28 19:23:47 -06:00
BenjaminHelyer
6e44bf9558
Improve documentation for adding datetime and timedelta (gh-95403)
2022-07-28 20:09:51 -04:00
Erlend Egeberg Aasland
06fc249135
gh-89610: Add .pyi as a recognised extension for IDLE on macOS ( #95393 )
...
This allows opening stub files by double clicking on them in the Finder.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-07-28 19:04:26 -04:00
Raghunandan Bhat
edb72047f3
gh-43414: os.get_terminal_size() now uses the actual file descriptor on Windows instead of mapping to standard handles ( #93203 )
2022-07-28 23:48:33 +01:00
Jingxuan He
390847922c
Fix misused variable that was preventing permutations of classes from being tested (GH-93935)
2022-07-28 23:42:51 +01:00
[object Object]
7df2f4d787
gh-86128: Add warning to ThreadPoolExecutor docs about atexit behaviour (GH-94008)
2022-07-28 23:38:56 +01:00
Pamela Fox
70068b9336
Fix Unicode doc and replace use of macro with PyMem_New function (GH-94088)
2022-07-28 23:32:16 +01:00
JustAnotherArchivist
03da5d0f5b
gh-59200: Clarify `PyLong_FromString` documentation (GH-94363)
2022-07-28 23:12:27 +01:00
Oleg Iarygin
26d4af0ba5
gh-94512: Fix forced arg format in AC-processed overlapped (GH-94516)
2022-07-28 23:09:46 +01:00
Steve Dower
38bb2068fe
gh-95359: Fix py.exe launcher handling of per-user py.ini and command names (GH-95399)
2022-07-28 21:11:17 +01:00
Ken Jin
a1daf6e5cc
Update link to faster cpython benchmarks (GH-95391)
2022-07-29 00:22:24 +08:00
Kumar Aditya
54f48844d1
GH-95097: fix `asyncio.run` for tasks without `uncancel` method ( #95211 )
...
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
2022-07-28 08:47:54 -07:00
Irit Katriel
bceb197947
gh-95369: add missing decref in error case of exception group's split (GH-95370)
2022-07-28 11:38:46 +01:00
Honglin Zhu
b946f529ef
gh-95355: Check tokens[0] after allocating memory (GH-95356)
...
#95355
Automerge-Triggered-By: GH:pablogsal
2022-07-28 03:00:34 -07:00
Thomas Grainger
e16d4ed590
gh-95166: cancel map waited on future on timeout (GH-95169)
...
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-07-28 11:20:10 +02:00
Mark Shannon
b8b2990fb3
GH-90081: Run python tracers at full speed (GH-95328)
2022-07-28 10:17:22 +01:00
Erlend Egeberg Aasland
ea269b9a38
Docs: Fix refs & tweak wording in sqlite3 'Using shortcut methods'
...
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-07-28 07:38:36 +02:00
Serhiy Storchaka
ebad53a4dc
gh-94938: Fix errror detection of unexpected keyword arguments (GH-94999)
...
When keyword argument name is an instance of a str subclass with
overloaded methods __eq__ and __hash__, the former code could not find
the name of an extraneous keyword argument to report an error, and
_PyArg_UnpackKeywords() returned success without setting the
corresponding cell in the linearized arguments array. But since the number
of expected initialized cells is determined as the total number of passed
arguments, this lead to reading NULL as a keyword parameter value, that
caused SystemError or crash or other undesired behavior.
2022-07-28 07:40:36 +03:00