Raymond Hettinger
fafcfff926
bpo-44310: Note that lru_cache keep references to both arguments and results (GH-26715)
...
* Simplify the count_vowels example
* Hits and misses are fetched while a lock is held
* Add note that references are kept for arguments and return values
* Clarify behavior when *typed* is false.
2021-06-14 00:47:26 -05:00
Christian Heimes
bf527277d4
bpo-44389: Fix deprecation of OP_NO_TLSv1_3 (GH-26700)
...
Signed-off-by: Christian Heimes <christian@python.org>
2021-06-13 13:46:07 +02:00
Mark Dickinson
5924243199
Fix a potential reference-counting bug in long_pow (GH-26690)
2021-06-13 08:19:29 +01:00
Binbin
17b16e13bb
Fix typos in multiple files (GH-26689)
...
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-06-12 22:47:44 -04:00
Dong-hee Na
736ed6f7a9
bpo-43425: Update test_c_parser not to use TempdirManager (GH-26693)
2021-06-13 07:07:24 +09:00
Erlend Egeberg Aasland
cb7230c7a7
bpo-44389: Remove duplicate SSL_OP_NO_TLSv1_2 flag (GH-26680)
2021-06-12 17:17:58 -03:00
Pablo Galindo
a342cc5891
bpo-44396: Update multi-line-start location when reallocating tokenizer buffers (GH-26676)
...
Automerge-Triggered-By: GH:pablogsal
2021-06-12 10:53:49 -07:00
Tim Peters
9d8dd8f08a
bpo-44376 - reduce pow() overhead for small exponents (GH-26662)
...
Greatly reduce pow() overhead for small exponents.
2021-06-12 11:29:56 -05:00
Serhiy Storchaka
be8b631b7a
Add more const modifiers. (GH-26691)
2021-06-12 16:11:59 +03:00
Serhiy Storchaka
9f1c5f6e8a
bpo-43475: Fix the Python implementation of hash of Decimal NaN (GH-26679)
2021-06-12 15:15:17 +03:00
Mark Dickinson
4a42cebf6d
bpo-44339: Fix math.pow corner case to comply with IEEE 754 (GH-26606)
...
Change the behaviour of `math.pow(0.0, -math.inf)` and `math.pow(-0.0, -math.inf)` to return positive infinity instead of raising `ValueError`. This makes `math.pow` consistent with the built-in `pow` (and the `**` operator) for this particular special case, and brings the `math.pow` special-case handling into compliance with IEEE 754.
2021-06-12 10:23:02 +01:00
Kaustubh J
3ec3ee7d2e
bpo-40128: Fix IDLE autocomplete on macOS (GH-26672)
...
In particular, when running with tk8.6.8, as in PSF 3.9.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-06-11 18:55:32 -04:00
Steve Dower
5af56c6f2a
bpo-44381: Windows build now allows enabling control flow guard (GH-26645)
2021-06-11 21:35:40 +01:00
huzhaojie
4cb6ba1432
bpo-43318: Fix a bug where pdb does not always echo cleared breakpoints (GH-24646)
2021-06-11 16:17:56 +01:00
Lumír 'Frenzy' Balhar
fc98266ff6
bpo-44351: Restore back parse_makefile in distutils.sysconfig (GH-26637)
...
The function uses distutils.text_file.TextFile and therefore
behaves differently than _parse_makefile in sysconfig.
2021-06-11 17:08:00 +02:00
Ethan Furman
c956734d7a
bpo-44242: [Enum] improve error messages (GH-26669)
2021-06-11 02:44:43 -07:00
Victor Stinner
304dfec8d3
bpo-44378: Fix a compiler warning in Py_IS_TYPE() (GH-26644)
...
Py_IS_TYPE() no longer uses Py_TYPE() to avoid a compiler warning:
no longer cast "const PyObject*" to "PyObject*".
2021-06-11 10:35:36 +02:00
Ethan Furman
3a7cccfd6c
bpo-44342: [Enum] fix data type search (GH-26667)
...
In an inheritance chain of
int -> my_int -> final_int
the data type is now final_int (not my_int)
2021-06-11 01:25:14 -07:00
Christian Heimes
e26014f1c4
bpo-44362: ssl: improve deprecation warnings and docs (GH-26646)
...
Signed-off-by: Christian Heimes <christian@python.org>
2021-06-11 09:15:48 +02:00
Julien Palard
c4955e2c4f
Doc: Prettier exception hierarchy. (GH-26533)
2021-06-11 08:53:52 +02:00
Ethan Furman
62f1d2b3d7
bpo-44342: [Enum] changed pickling from by-value to by-name (GH-26658)
...
by-value lookups could fail on complex enums, necessitating a check for
__reduce__ and possibly sabotaging the final enum;
by-name lookups should never fail, and sabotaging is no longer necessary
for class-based enum creation.
2021-06-10 15:52:09 -07:00
Pablo Galindo
05073036dc
bpo-44368: Improve syntax errors with invalid as pattern targets (GH-26632)
2021-06-10 23:50:32 +01:00
Lysandros Nikolaou
e7b4644607
bpo-44385: Remove unused grammar rules (GH-26655)
...
Automerge-Triggered-By: GH:lysnikolaou
2021-06-10 15:05:06 -07:00
Daniel Hahler
6544b2532d
bpo-37022: Fix bug where pdb's do_p/do_pp commands swallow exceptions from repr (GH-18180)
2021-06-10 21:32:04 +01:00
Ethan Furman
8a4f0850d7
bpo-44356: [Enum] allow multiple data-type mixins if they are all the same (GH-26649)
...
This enables, for example, two base Enums to both inherit from `str`, and then both be mixed into the same final Enum:
class Str1Enum(str, Enum):
# some behavior here
class Str2Enum(str, Enum):
# some more behavior here
class FinalStrEnum(Str1Enum, Str2Enum):
# this now works
2021-06-10 13:30:41 -07:00
Mark Roseman
42d5a4fc3b
bpo-33962: Use ttk spinbox for IDLE indent space config (GH-22954)
...
If ttk.Spinbox is not available (Tk < 8.5.9) use readonly ttk.Combobox.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-06-10 15:13:55 -04:00
Pablo Galindo
f82262b186
Run address sanitiser in the GitHub CI (GH-26640)
2021-06-10 18:47:53 +01:00
Ajith Ramachandran
ac867f10b4
bpo-44357:Add `math.cbrt()` function: Cube Root (GH-26622)
...
* Add math.cbrt() function: Cube Root
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
2021-06-10 17:42:09 +01:00
Ajith Ramachandran
90cd433032
bpo-44364:Add non integral tests for `sqrt()` ( #26625 )
...
* Add non integral tests for `sqrt()`
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
2021-06-10 17:27:26 +01:00
Mark Shannon
31aa0dbff4
bpo-44363: Get test_capi passing with address sanitizer (GH-26639)
2021-06-10 12:37:22 +01:00
Mark Shannon
54cb63863f
bpo-44348: Move trace-info to thread-state (GH-26623)
...
* Move trace-info to thread state.
* Correct output for pdb when turning on tracing in middle of line
2021-06-10 08:46:59 +01:00
Mark Shannon
e117c02837
bpo-44337: Port LOAD_ATTR to PEP 659 adaptive interpreter (GH-26595)
...
* Specialize LOAD_ATTR with LOAD_ATTR_SLOT and LOAD_ATTR_SPLIT_KEYS
* Move dict-common.h to internal/pycore_dict.h
* Add LOAD_ATTR_WITH_HINT specialized opcode.
* Quicken in function if loopy
* Specialize LOAD_ATTR for module attributes.
* Add specialization stats
2021-06-10 08:46:01 +01:00
Dong-hee Na
309ab61602
bpo-35800: Remove smtpd.MailmanProxy since 3.11 (GH-26617)
2021-06-10 08:12:41 +09:00
Pablo Galindo
457ce60fc7
bpo-44368: Ensure we don't raise incorrect custom syntax errors with soft keywords (GH-26630)
2021-06-09 22:20:01 +01:00
Furkan Onder
878d7e4ee4
bpo-21760: fix __file__ description (GH-19097)
2021-06-09 14:10:20 -07:00
Terry Jan Reedy
275d5f7957
bpo-40468: Split IDLE settings General tab (GH-26621)
...
Replace it with Windows tab for Shell and Editor options
and Shell/Ed for options exclusive to one of them.
Create room for more options and make dialog shorter,
to better fit small windows.
2021-06-09 16:17:58 -04:00
Eric Snow
e6e34e4522
bpo-43693: Do not check co_cell2arg if a non-cell offset. (gh-26626)
...
This is the same fix as for PyFrame_LocalsToFast() in gh-26609, but applied to PyFrame_FastToLocalsWithError(). (It should have been in that PR.)
https://bugs.python.org/issue43693
2021-06-09 11:40:49 -06:00
Ethan Furman
eea8148b7d
bpo-44242: [Enum] remove missing bits test from Flag creation (GH-26586)
...
Move the check for missing named flags in flag aliases from Flag creation
to a new *verify* decorator.
2021-06-09 09:03:55 -07:00
Mark Shannon
6f84656dc1
Delete line that was accidentally copied. (GH-26624)
2021-06-09 15:55:35 +01:00
Akira Nonaka
aef1b58dc8
bpo-44345: Fix 'generated by' comment in parser.c (GH-26615)
2021-06-09 16:38:53 +02:00
Terry Jan Reedy
5571cabf1b
bpo-40468: Factor out class ExtPage in idlelib.configdialog (GH-26618)
2021-06-08 21:43:49 -04:00
Pablo Galindo
9fd21f649d
bpo-44349: Fix edge case when displaying text from files with encoding in syntax errors (GH-26611)
2021-06-09 00:54:29 +01:00
Serhiy Storchaka
2ea6d89028
bpo-43833: Emit warnings for numeric literals followed by keyword (GH-25466)
...
Emit a deprecation warning if the numeric literal is immediately followed by
one of keywords: and, else, for, if, in, is, or. Raise a syntax error with
more informative message if it is immediately followed by other keyword or
identifier.
Automerge-Triggered-By: GH:pablogsal
2021-06-08 16:31:10 -07:00
Eric Snow
3e1c7167d8
bpo-43693: Un-revert commit f3fa63e
. ( #26609 )
...
This was reverted in GH-26596 (commit 6d518bb
) due to some bad memory accesses.
* Add the MAKE_CELL opcode. (gh-26396)
The memory accesses have been fixed.
https://bugs.python.org/issue43693
2021-06-08 16:01:34 -06:00
Terry Jan Reedy
ab36b9f834
bpo-40468: Move IDLE helplist settings to extensions page of dialog. (GH-26593)
...
These are the settings that extend the help menu. Moving them shortens the dialog and will help with it being too tall for small screens.
2021-06-08 15:35:10 -04:00
Pablo Galindo
bafe0aade5
bpo-44335: Ensure the tokenizer doesn't go into Python with the error set (GH-26608)
2021-06-08 20:02:03 +01:00
Batuhan Taskaya
8004c4570b
bpo-11105: document the new test.support.infinite_recursion context manager (GH-26604)
2021-06-08 20:39:03 +03:00
Batuhan Taskaya
e58d762c1f
bpo-11105: reduce the recursion limit for tests (GH-26550)
2021-06-08 19:55:10 +03:00
Petr Viktorin
257e400a19
bpo-43795: Note Stable ABI PEP in What's New (GH-26479)
...
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2021-06-08 17:20:07 +02:00
Erlend Egeberg Aasland
1c02655fb0
bpo-44329: Refactor sqlite3 statement creation (GH-26566)
...
Call SQLite API's first, and return early in case of error. At the end,
allocate the object and initialise members. We now avoid unneeded
alloc/dealloc's in case the statement creation fails.
2021-06-08 16:00:56 +01:00