Commit Graph

45328 Commits

Author SHA1 Message Date
Miss Skeleton (bot) 8b4642d328
bpo-41939: always enable test_site.test_license_exists_at_url (GH-22688)
(cherry picked from commit 6a48518e8d)

Co-authored-by: Ned Deily <nad@python.org>
2020-10-13 18:59:12 -07:00
Dong-hee Na 76b1913daf
[3.8] bpo-32793: Fix a duplicate debug message in smtplib (GH-15341) (GH-22683)
_get_socket() already prints a debug message for the host and port.

https://bugs.python.org/issue32793

Automerge-Triggered-By: @maxking
(cherry picked from commit 46a7564578)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-10-14 00:18:58 +09:00
Miss Skeleton (bot) 33057c7092
bpo-41739: Fix test_logging.test_race_between_set_target_and_flush() (GH-22655) (GH-22656) (GH-22662)
The test now waits until all threads complete to avoid leaking
running threads.

Also, use regular threads rather than daemon threads.

(cherry picked from commit 13ff396c01)
(cherry picked from commit f5393dc2a0)

Co-authored-by: Victor Stinner <vstinner@python.org>

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-10-12 10:51:10 +02:00
Miss Skeleton (bot) f8ebb7b62e
bpo-41831: Restore str implementation of __str__ in tkinter.EventType (GH-22355)
(cherry picked from commit eb38c6b7aa)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-10-09 13:21:15 -07:00
Miss Skeleton (bot) 86938548d5
bpo-41831: Add tests for tkinter.Event.__repr__ (GH-22354)
(cherry picked from commit f25323a307)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-10-09 12:05:26 -07:00
Pablo Galindo 6ceb5232ae
[3.8] bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 (GH-22598). (GH-22600)
(cherry picked from commit 27ac19cca2)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-10-08 19:50:28 +01:00
Miss Skeleton (bot) 3d103e0695
bpo-41306: Allow scale value to not be rounded (GH-21715)
This fixes the test failure with Tk 6.8.10 which is caused by changes to how Tk rounds the `from`, `to` and `tickinterval` arguments. This PR uses `noconv` if the patchlevel is greater than or equal to 8.6.10 (credit to Serhiy for this idea as it is much simpler than what I previously proposed).

Going into more detail for those who want it, the Tk change was made in [commit 591f68c](591f68cb38) and means that the arguments listed above are rounded relative to the value of `from`. However, when rounding the `from` argument ([line 623](591f68cb38/generic/tkScale.cGH-L623)), it is rounded relative to itself (i.e. rounding `0`) and therefore the assigned value for `from` is always what is given (no matter what values of `from` and `resolution`).

Automerge-Triggered-By: @pablogsal
(cherry picked from commit aecf036738)

Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
2020-10-08 09:14:33 -07:00
Miss Skeleton (bot) 6c6c256df3
bpo-41944: No longer call eval() on content received via HTTP in the CJK codec tests (GH-22566) (GH-22577)
(cherry picked from commit 2ef5caa58f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-10-06 14:38:54 +02:00
Miss Skeleton (bot) 78bddc7794
bpo-41939: Fix test_site.test_license_exists_at_url() (GH-22559)
Call urllib.request.urlcleanup() to reset the global
urllib.request._opener.
(cherry picked from commit 1fce240d6c)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-10-06 00:03:27 -07:00
Serhiy Storchaka 09a7b3b618
[3.8] bpo-41909: Enable previously disabled recursion checks. (GH-22536) (GH-22551)
Enable recursion checks which were disabled when get __bases__ of
non-type objects in issubclass() and isinstance() and when intern
strings. It fixes a stack overflow when getting __bases__ leads
to infinite recursion.

Originally recursion checks was disabled for PyDict_GetItem() which
silences all errors including the one raised in case of detected
recursion and can return incorrect result. But now the code uses
PyDict_GetItemWithError() and PyDict_SetDefault() instead.
(cherry picked from commit 9ece9cd65c)
2020-10-05 01:28:00 +03:00
Pablo Galindo 28cd96f2e5
[3.8] bpo-41490: Bump vendored pip to version 20.2.3 (GH-22527). (GH-22545)
(cherry picked from commit 2cc6dc9896)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-10-04 19:11:31 +02:00
Miss Skeleton (bot) c5f12126e9
Delete extra 'the' from `Formatter` class docstring (GH-22530) (GH-22543)
(cherry picked from commit a619af43cc)
2020-10-04 17:32:15 +01:00
Pablo Galindo fd22823991
[3.8] bpo-41840: Report module-level globals as both local and global in the symtable module (GH-22391). (GH-22529)
(cherry picked from commit fb0a4651f1)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-10-03 22:50:00 +01:00
Miss Skeleton (bot) 9aa34f1bbb
bpo-41867: List options for timespec in docstrings of isoformat methods (GH-22418)
(cherry picked from commit 52301312bb)

Co-authored-by: Ram Rachum <ram@rachum.com>
2020-10-03 04:01:41 -07:00
Miss Skeleton (bot) 4b982e0dd7
bpo-40833: Clarify Path.rename doc-string regarding relative paths (GH-20554)
(cherry picked from commit f97e42ef4d)

Co-authored-by: Ram Rachum <ram@rachum.com>
2020-10-03 03:11:39 -07:00
Miss Skeleton (bot) cfed534333
bpo-41900: C14N 2.0 serialisation failed for unprefixed attributes when a default namespace was defined. (GH-22474) (GH-22508)
(cherry picked from commit 6a412c94b6)
2020-10-03 08:42:38 +02:00
Miss Skeleton (bot) d5c5f79552
Typo fix - "mesasge" should be "message" (GH-22498)
* Correct at 2 places in email module
(cherry picked from commit 9cd01ece78)

Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
2020-10-02 14:05:36 -07:00
Miss Islington (bot) e4008404fb
bpo-40105: ZipFile truncate in append mode with shorter comment (GH-19337)
(cherry picked from commit ff9147d93b)

Co-authored-by: Jan Mazur <16736821+mzr@users.noreply.github.com>
2020-09-28 12:18:39 -07:00
Miss Islington (bot) 18e59f587b
bpo-41775: Make 'IDLE Shell' the shell title (GH-22399)
'Python Shell' may have contributed to some beginners confusing 'IDLE' with ' Python'.
(cherry picked from commit 05cc881cbc)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-09-24 13:08:06 -07:00
Thomas Grainger ae462297c0
[3.8] bpo-41602: raise SIGINT exit code on KeyboardInterrupt from pymain_run_module (GH-21956) (#22398)
Closes bpo issue 41602.
(cherry picked from commit a68a2ad19c)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
2020-09-24 18:44:14 +02:00
Łukasz Langa e1e6a8ef9a Python 3.8.6
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAl9rQW8ACgkQsmmV4xAl
 BWhUqA//TA8BDtUp4v5AiBzUl3oBRqcNbQMkaTwB7w3g+rla1S5bC/SjBoO8K7jP
 ++Id+Y+wdGLsd6pvMfauWcxHC9dS8J080kS5tBoqGv8QPXSBqUGNnR0ya/b5mTQX
 GUIXcUe6GZ6GsI3MRSmaQ0jgSLDcW06O/TGJIpVYTxV/S1auVROA3DjQvPmObxf2
 MityVK7EtNjI65RiM6Oexxps6oYFbqTtbPQMc7y3AwgNK8su1GvLBY6pjuvGv/x/
 9ZpHz3Q6QI5pT1Di0w1W88utel1KuC/uoKiV4xvnsGuG1PVQesQ/GMLiNoEim21/
 jt24hwRkdad39vnbC8D1BhUvFi9VvKaLQLQyfBnCjLAXnGpq5BCtymKVv8mMAmtI
 6QTsQaAZvl7hiIQmIrUbBv1kku8hyeqxLl3vzXZXk7sfA0BBGQbpAinEEtc7TwAz
 237bJu21+rUy3wVqDH1SdYCuAtG/udrm8W2Se2s7TA5xwN2fcvaR7Gj3w7j3hmW0
 x+v9ZUFjWoNHw66p16O2yIkTPWa37MgCPLqcA2i0TOBwNzadGx2h+XNaMWzTLF1D
 Zk0yKfV+k51g8vejv2bP5YmtUVsvWy8XAFmwmTJVIr10I5a9TadhI+US5+tKQIlv
 Uz/IVs4+L3/S1rteMM9QgEwdjaPmjXkquDogVl9cCOP15vySi2o=
 =zBy3
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJEBAABCAAuFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAl9sdcwQHGx1a2FzekBs
 YW5nYS5wbAAKCRCyaZXjECUFaMgoD/9Qv++u0vRWCgNUfzAlNyAjy8CR7F3iYtfF
 bMancL26DT8EiM3MULlr7VkTTa4WLRp5/ogr0Fuju+TdK8eKG9C/d6lBC9b08ASu
 KW7bgzp5AVjqQYMJUMSCazzEs8TaBXw/kxCmOGArfs5KwqT+HnFpQap+0Ln3+D2h
 fvclvCzYqaaPWEg6ylJ50AeWPl2Sfyus4HizZWjtuAnZK1znYLOhE9AUImy4aCLH
 MatpcvjLpCtNff5F5qLrtSQDm4B24S6QHja5kpAT8GGjch0Zrt8lbnaAnvS4r+gL
 mwFsnZ/tm3xHIsKlZtayBPwXZFncCjwqnbyy7+8pPdn9Gzp++gBAyxP0e/jNfFtH
 XQtti5NTBPXqW2JyJkMr89sWuFrky0yhnXc7uqJS33CNKRWjRY1FCJAFeDPSL/yG
 XmDxftmAFFJJhv5xQhMlPs3ZxqzwOVDiQxKwfQtmNNGzH433Tpp8/EI57Ho4L57n
 ZZNTvcZkhAJVPZ448J39QIfevrpbdIpfVL2rcw2ySMdm+7T96PquuUeX+VAD9EIG
 ML86hg8UP5iDCd70EU6kmK4wibMcUzdv3WywNJ1Lz9+hAWP64O6A/vZ5ccdiPjaZ
 0ANwrDxBlmBAzXvyIeHS5W4qK/4lOueeAj9QhhtwEFc3fTX9MWVg26Qr7AGi81zT
 qmpp65WfXQ==
 =v4xV
 -----END PGP SIGNATURE-----

Merge tag 'v3.8.6' into 3.8

Python 3.8.6
2020-09-24 12:32:42 +02:00
Terry Jan Reedy 0a2e11aecf
[3.8] bpo-41841: Prepare IDLE News for 3.8.7 (GH-22381) 2020-09-23 10:34:56 -04:00
Łukasz Langa db455296be
Python 3.8.6 2020-09-23 14:36:32 +02:00
Miss Islington (bot) 2466a7ae6b
bpo-35764: Rewrite the IDLE Calltips doc section (GH-22363)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-09-22 14:36:02 -04:00
Miss Islington (bot) 6d372ef194
fix `EventType` bases
`StrEnum` does not exist in 3.8, so use original `(str, enum.Enum)` bases.
2020-09-22 11:30:47 -07:00
Miss Islington (bot) 7bcbb536dd
bpo-40181: Remove '/' reminder in IDLE calltips. (GH-22350)
The marker was added to the language in 3.8 and
3.7 only gets security patches.
(cherry picked from commit 40a0625792)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-09-21 23:02:45 -07:00
Miss Islington (bot) ca2d99d091
bpo-41815: SQLite: segfault if backup called on closed database (GH-22322)
GH- [bpo-41815](): SQLite: fix segfault if backup called on closed database

Attempting to backup a closed database will trigger segfault:

```python
import sqlite3
target = sqlite3.connect(':memory:')
source = sqlite3.connect(':memory:')
source.close()
source.backup(target)
```
(cherry picked from commit bfee9fad84)

Co-authored-by: Peter McCormick <peter@pdmccormick.com>
2020-09-21 15:00:34 -07:00
Miss Islington (bot) 488e3eb70d
bpo-41811: create SortKey members using first given value (GH-22316) (GH-22326)
(cherry picked from commit ae0d2a33ec)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2020-09-19 12:56:30 -07:00
Ethan Furman 5efb1a77e7
[3.8] bpo-39728: Enum: fix duplicate `ValueError` (GH-22277) (GH-22283)
fix default `_missing_` to return `None` instead of raising a `ValueError`
Co-authored-by: Andrey Darascheka <andrei.daraschenka@leverx.com>.
(cherry picked from commit c95ad7a91f)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2020-09-16 17:38:14 -07:00
Miss Islington (bot) 007eddad3b
_auto_called cleanup (GH-22285)
(cherry picked from commit fc23a9483e)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2020-09-16 17:28:32 -07:00
Miss Islington (bot) 3f4012117b
bpo-41517: do not allow Enums to be extended (GH-22271)
fix bug that let Enums be extended via multiple inheritance
(cherry picked from commit 3064dbf5df)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2020-09-16 07:30:54 -07:00
Miss Islington (bot) 929112ef81
bpo-41789: honor object overrides in Enum classes (GH-22250)
EnumMeta double-checks that `__repr__`, `__str__`, `__format__`, and `__reduce_ex__` are not the same as `object`'s, and replaces them if they are -- even if that replacement was intentionally done in the Enum being constructed.  This patch fixes that.

Automerge-Triggered-By: @ethanfurman
(cherry picked from commit 22415ad625)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2020-09-15 17:16:36 -07:00
Miss Islington (bot) 8f8ebcca95
bpo-39587: Enum - use correct mixed-in data type (GH-22263)
(cherry picked from commit bff01f3a3a)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2020-09-15 16:23:57 -07:00
Ethan Furman 38c8d3930e
[3.8] bpo-37479: Enum - use correct __format__ (GH-14545)
* bpo-37479: on Enum subclasses with mixins, __format__ uses overridden __str__.
(cherry picked from commit 2f19e82fbe)

Co-authored-by: thatneat <thatneat@users.noreply.github.com>
2020-09-13 13:47:43 -07:00
Miss Islington (bot) 530d1105ed
bpo-39651: Fix asyncio proactor _write_to_self() (GH-22197)
Fix a race condition in the call_soon_threadsafe() method of
asyncio.ProactorEventLoop: do nothing if the self-pipe socket has
been closed.
(cherry picked from commit 1b0f0e3d7d)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-09-12 00:09:54 -07:00
Miss Islington (bot) 77901dc6c3
bpo-41731: Make test_cmd_line_script pass with -vv (GH-22206)
Argument script_exec_args is usually an absolute file name,
but twice has form ['-m', 'module_name'].
(cherry picked from commit 7e711ead26)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-09-11 23:43:27 -07:00
Miss Islington (bot) 9133b01b58
Update idlelib/help.html to current IDLE doc (GH-22181)
(cherry picked from commit 471247150e)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-09-09 16:10:09 -07:00
Miss Islington (bot) 9171dc2827
bpo-41525: Make the Python program help ASCII-only (GH-21836)
(cherry picked from commit 58de1dd6a8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-09-08 17:46:41 -07:00
Mariatta 7799dd38e7
[3.8] Fix typo in typing.py (GH-22121) (GH-22158)
This is a trivial PR to fix a typo in a docstring in typing.py. From reverences -> references.
(cherry picked from commit 84ef33c511)

Co-authored-by: Graham Bleaney <gbleaney@gmail.com>

Automerge-Triggered-By: @Mariatta
2020-09-08 16:28:02 -07:00
Łukasz Langa 7c6dc8517e Python 3.8.6rc1
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAl9WV1gACgkQsmmV4xAl
 BWhaFA/+MhK/h03WVVmcmK53W3aU70AHhLLlRhftYSxN6hUgEYWt8VFupOtD8947
 56RDjlpDKxeRiErjxT2ymLCdkiLCbXSfVD2aKY2H76370On4SKMjAB2VcPa2dsA9
 cw8HPjc3CzXxSYBz1+aKc5OJsw+Bv+T+7wlfbJSlzSnP3E71Ny/Esko5bVqzwj1B
 cUT6y0Pt+Vwb0lJQEDtVaPGRNqBuJjc6yi0EScz0WIXQlBR+eialYMHb8IbNGsrR
 2FT2K8gktXltpfsMSb2eInj6YaZNsshNwoCyCuT2iPC+482i4m3U20oNWhlPxL0G
 +159C9fGTrJ4uFu2CC85CWjB2lZQ6ArB/odsdfixlaQOruGkVMWQBCF2bvYaJqqT
 n80n6tzfhIYVcV8SpjrdkrsurmUTcwdZN2WTdZLBE6S5c8O/XEYgvSOoy6f2E/aH
 IYlQrZrBlnyBctgHFNYnACetIcsyYByqH6XehLHzLIvoY4ncJTLoDPCJrg/opRw7
 zgIYFBK2Bf8GlG6tdmi50+uD+8VIK8YkeH7RgE3X7SW55xzA6xyXPUIf5TNHCHCe
 4hsy7oFj4pxogGx1NvJ6jpThang0EHMsubVICT4Ieej56ye7R8hHQ8rHPxRSveVD
 IqhmZmDjai2xx3DaTV5wfNqEsDPzOgOlgZJVr5R4Tefe0z4PEs8=
 =Fzio
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJEBAABCAAuFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAl9XUS4QHGx1a2FzekBs
 YW5nYS5wbAAKCRCyaZXjECUFaMx/EACO5v/JZDPrw3yREKhPXvAUZH3+AtAeKT+C
 SLm4cD1UzzI2JwgO62N3ilVAQ43xw2eCV6DvOmPGKI+Bn4KVRlNAjD63WEfYm8WB
 RseLVTih1eumTAVHlMj1zv3TN8XQOPg9vNtwx4GI7WF+b66v912orJBw6zYEiInm
 MtNNfPMzNBgc6WPRrMOTwNd7eXwPo+VvUWtneryLKtdIa6tREubLW6qjFCjTqSzn
 S5y1VuBoEbTpUVwDYChexdErEzHJ84jJ46gow0D/0j2pUcU9Huw08zN/Ztb0eElM
 0v64m/WGJ5Y8se1BDPBE9aFdn20l32ANKE3pLwopiuhjZU3rS/fJvjSxdLNn/49a
 Y7Jvib4SfWTb87qOv2f0hzZTrx1xB1UYplljaXFPeD6DsrkrHm2YgqytGuE0768X
 9tAInVlLWQ0MCxO0OeyVJpV0Mi2NapG+hqRY3UlRcsLQdoK9grMZxTdyCqGJcYCK
 CyiL13etXP6kHsAa6PwgxTCL/HyE25ZgRyc0ZVEolELx3eGZR9UyQg/l8KJpOLQI
 tMnTMIxuoLzPEBvFtHHp7L7/V11OmWl4ojW8Vl3thYbXGScjtHVEXh4GRm0dT1br
 VigswpqDx+Njj/XqNUanZo59rtWiLB6b5b6z0y4JvPxF3BX6GFRRsUOO8ILUENma
 bf0QNqrN1Q==
 =/G5i
 -----END PGP SIGNATURE-----

Merge tag 'v3.8.6rc1' into 3.8

Python 3.8.6rc1
2020-09-08 11:38:51 +02:00
Miss Islington (bot) ebef6c0b50
bpo-41720: Add "return NotImplemented" in turtle.Vec2D.__rmul__(). (GH-22092)
(cherry picked from commit fd4cafd470)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-09-07 09:28:04 -07:00
Łukasz Langa 08bd63da6e
Python 3.8.6rc1 2020-09-07 17:52:19 +02:00
Victor Stinner 84105cbaa3
bpo-41401: Fix test_fspath_support in test_io. (GH-21640) (GH-22133) (GH-22135)
The error is exposed on non-UTF-8 locales.

(cherry picked from commit 67987acd5d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit c73ee5acc9)
2020-09-07 17:27:03 +02:00
Miss Islington (bot) 4bcff52447
bpo-41700: Skip test if the locale is not supported (GH-22081) (GH-22086)
(cherry picked from commit 54a66ade20)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
2020-09-04 18:55:44 +09:00
Miss Islington (bot) 40e2444c36
bpo-39010: Improve test shutdown (GH-22066) (#22083)
Simply closing the event loop isn't enough to avoid warnings. If we
don't also shut down the event loop's default executor, it sometimes
logs a "dangling thread" warning.

Follow-up to GH-22017
(cherry picked from commit be435ae2b0)

Co-authored-by: Ben Darnell <ben@bendarnell.com>

Co-authored-by: Ben Darnell <ben@bendarnell.com>
2020-09-03 13:54:36 -07:00
Miss Islington (bot) 1f5f127377
bpo-41696: Fix handling of debug mode in asyncio.run (GH-22069) (#22072)
* bpo-41696: Fix handling of debug mode in asyncio.run

This allows PYTHONASYNCIODEBUG or -X dev to enable asyncio debug mode
when using asyncio.run

* 📜🤖 Added by blurb_it.

Co-authored-by: hauntsaninja <>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit 0770ad948c)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2020-09-03 13:54:06 -07:00
Miss Islington (bot) a986b061a3
bpo-39010: Fix errors logged on proactor loop restart (GH-22017) (#22035)
Stopping and restarting a proactor event loop on windows can lead to
spurious errors logged (ConnectionResetError while reading from the
self pipe). This fixes the issue by ensuring that we don't attempt
to start multiple copies of the self-pipe reading loop.
(cherry picked from commit ea5a6363c3)

Co-authored-by: Ben Darnell <ben@bendarnell.com>

Co-authored-by: Ben Darnell <ben@bendarnell.com>
2020-09-03 12:38:34 -07:00
Pablo Galindo 77f4000ae0
[3.8] [3.9] bpo-41654: Fix deallocator of MemoryError to account for subclasses (GH-22020) (GH-22046)
When allocating MemoryError classes, there is some logic to use
pre-allocated instances in a freelist only if the type that is being
allocated is not a subclass of MemoryError. Unfortunately in the
destructor this logic is not present so the freelist is altered even
with subclasses of MemoryError..
(cherry picked from commit 9b648a95cc)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>.
(cherry picked from commit 87e91ae2e5)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-09-01 21:40:48 +01:00
Miss Islington (bot) 38e32872eb
bpo-41344: Raise ValueError when creating shared memory of size 0 (GH-21556) (GH-22019)
(cherry picked from commit 475a5fbb56)

Co-authored-by: Vinay Sharma <vinay04sharma@icloud.com>

Co-authored-by: Vinay Sharma <vinay04sharma@icloud.com>
2020-08-30 20:42:27 +01:00
Miss Islington (bot) 641279e6e5
bpo-41609: Fix output of pdb's whatis command for instance methods (GH-21935) (#21976)
(cherry picked from commit 022bc7572f)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
2020-08-27 03:17:05 +02:00