Commit graph

108211 commits

Author SHA1 Message Date
Miss Islington (bot)
0874491bcc
bpo-41748: Handles unquoted attributes with commas (GH-24072)
* bpo-41748: Adds tests for unquoted attributes with comma

* bpo-41748: Handles unquoted attributes with comma

* bpo-41748: Addresses review comments

* bpo-41748: Addresses review comments

* Adds more test cases
* Simplifies the regex for handling spaces

* bpo-41748: Moves attributes tests under the right class

* bpo-41748: Addresses review about duplicate attributes

* bpo-41748: Adds NEWS.d entry for this patch
(cherry picked from commit 9eb11a139f)

Co-authored-by: Karl Dubost <karl+github@la-grange.net>
2021-02-01 12:54:43 -08:00
Miss Islington (bot)
304f9d2622
bpo-43016: Fix test_curses on platform without cursesw (GH-24405) (GH-24407)
(cherry picked from commit a1e9a1e120)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-02-01 09:37:29 +02:00
Miss Islington (bot)
7e729978fa
bpo-42688: Fix ffi alloc/free when using external libffi on macos (GH-23868) (GH-23888)
Automerge-Triggered-By: GH:ronaldoussoren
(cherry picked from commit b3c77ecbbe)

Co-authored-by: erykoff <erykoff@stanford.edu>
2021-02-01 00:15:23 -05:00
Miss Islington (bot)
d6675fee1a
bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string (GH-24341) (GH-24410)
* bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string
(cherry picked from commit 49926cf2bc)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
2021-01-31 23:22:48 -05:00
Serhiy Storchaka
3c8d693443
[3.9] bpo-41604: Don't decrement the reference count of the previous user_ptr when set_panel_usertpr fails (GH-21933). (GH-24403)
(cherry picked from commit 3243e8a4b4)

Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
2021-01-31 21:44:31 +02:00
Serhiy Storchaka
e9d4960d15
[3.9] bpo-43016: Rewrite tests for curses (GH-24312). (GH-24399)
(cherry picked from commit d64fd4bb5b)
2021-01-31 18:11:13 +02:00
Miss Islington (bot)
8a833a6f94
bpo-43083: Fix error handling in _sqlite3 (GH-24395)
(cherry picked from commit 9073180db5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-01-31 08:06:15 -08:00
Miss Islington (bot)
995a6c0150
bpo-43030: Fixed a compiler warning in Py_UNICODE_ISSPACE with signed wchar_t (GH-24350)
(cherry picked from commit 42b1806af9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-01-31 06:20:14 -08:00
Miss Islington (bot)
926ca51be4
bpo-43059: Remove reference to legacy external sqlite3 repository (GH-24364)
(cherry picked from commit e603443642)

Co-authored-by: L <3177243+LukeLR@users.noreply.github.com>
2021-01-31 07:21:28 +02:00
Miss Islington (bot)
08867a0bfc
[doc] Document VIRTUAL_ENV environment variable (GH-21970)
(cherry picked from commit 3584d4b64a)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2021-01-30 02:38:44 -08:00
Miss Islington (bot)
d34be1ed57
Fixing typos in turtle.rst (GH-24376)
Automerge-Triggered-By: GH:JulienPalard
(cherry picked from commit 6baaae589d)

Co-authored-by: Jules Lasne <jules.lasne@gmail.com>
2021-01-29 14:03:18 -08:00
Miss Islington (bot)
44cd24452a
Fixed typo in turtle.rst (GH-24371)
Found it while translating it to french 🤷

Automerge-Triggered-By: GH:JulienPalard
(cherry picked from commit 6372a4ceba)

Co-authored-by: Jules Lasne <jules.lasne@gmail.com>
2021-01-29 13:38:16 -08:00
Miss Islington (bot)
bf782b2636
bpo-43008: Add 'Patch by Ken Hilton' (GH-24370) (#24374)
(cherry picked from commit 11d75ec807)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-01-29 13:51:46 -05:00
Miss Islington (bot)
6d87dec581
bpo-23544: Disable IDLE Stack Viewer when running user code (GH-17163)
Starting stack viewer when user code is running, including when Debugger is active, hangs or crashes IDLE.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 23a567c11c)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2021-01-28 15:38:19 -08:00
Miss Islington (bot)
e9c6c26aff
bpo-29076: Add fish support to macOS installer (GH-23302) (GH-23937)
(cherry picked from commit 7f162e867c)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-01-28 09:54:03 -05:00
Miss Islington (bot)
895591c1f0
bpo-42979: _zoneinfo exec function checks for PyDateTime_IMPORT failure (GH-24333) (GH-24351)
Importing datetime can fail.
(cherry picked from commit eeb701adc0)

Co-authored-by: Hai Shi <shihai1992@gmail.com>

Co-authored-by: Hai Shi <shihai1992@gmail.com>
2021-01-27 12:08:45 +01:00
Miss Islington (bot)
cb77c5e1dd
bpo-43033: Fix the handling of PyObject_SetAttrString() in _zoneinfo.c (GH-24345) (GH-24349)
(cherry picked from commit 5327f37034)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2021-01-27 11:40:31 +02:00
Miss Islington (bot)
68102fb998
bpo-43008: Make IDLE respect sys.excepthook (GH-24302)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 7a34380ad7)

Co-authored-by: Ken <kenny2minecraft@gmail.com>
2021-01-26 16:24:14 -08:00
Terry Jan Reedy
fd668bc62b
[3.9] bpo-41841: Prepare IDLE NEWS for 3.9.2 (#GH-4343) 2021-01-26 13:59:18 -05:00
Andrey Bienkowski
f8cfe54e5a
[3.9] bpo-42383: pdb: do not fail to restart the target if the current directory changed (GH-23412) (#24322) 2021-01-26 07:57:58 -08:00
Andrey Bienkowski
f2df7958fb
[3.9] bpo-42384: pdb: correctly populate sys.path[0] (GH-23338) (#24321) 2021-01-25 13:08:41 -08:00
Miss Islington (bot)
26af2fae18
bpo-43013: Fix old tkinter module names in idlelib (GH-24326)
Lowercase 'tkColorChooser', 'tkFileDialog', 'tkSimpleDialog', and
'tkMessageBox' and remove 'tk'.  Just lowercase 'tkFont' as 'font'
is already used.  Adjust import.
(cherry picked from commit 879986d8a9)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-01-25 08:25:39 -05:00
Serhiy Storchaka
3d5434d5cb
[3.9] bpo-33289: Return RGB triplet of ints instead of floats from tkinter.colorchooser (GH-6578). (GH-24318)
(cherry picked from commit 6713e869c4)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2021-01-25 11:45:30 +02:00
Miss Islington (bot)
ff06957710
bpo-43013: Update idlelib code to 3.x (GH-24315)
Remove 9 remaining '(object)' occurrences in class headers in idlelib
and 25 '()' occurrences in idlelib.idle_test class headers.
(cherry picked from commit 8dfe15625e)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-01-24 15:36:02 -08:00
Miss Islington (bot)
00e24cdca4
closes bpo-43011: Fix DeprecationWarnings in test_ctypes (GH-24305)
(cherry picked from commit f7fa64f0e8)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2021-01-23 08:56:08 -08:00
Miss Islington (bot)
98e1f5c778
bpo-40304: Correct type(name, bases, dict) doc (GH-19553)
Co-authored-by: Éric Araujo <merwok@netwok.org>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
(cherry picked from commit 644d52818a)

Co-authored-by: Борис Верховский <boris.verk@gmail.com>
2021-01-21 22:09:50 -08:00
cptpcrd
6893523bed
bpo-42780: Fix set_inheritable() for O_PATH file descriptors on Linux (GH-24172) (GH-24278)
(cherry picked from commit 7dc71c425c)
2021-01-21 11:46:35 +01:00
Miss Islington (bot)
0654c4c4cc
bpo-42005: profile and cProfile catch BrokenPipeError (GH-22643)
(cherry picked from commit 3554fa4abe)

Co-authored-by: Zhiming Wang <i@zhimingwang.org>
2021-01-20 01:19:08 -08:00
Miss Islington (bot)
50938b63fb
bpo-41995: Handle allocation failure in _tracemalloc and _zoneinfo (GH-22635)
(cherry picked from commit f1ff800db1)

Co-authored-by: Yunlongs <lylgood@foxmail.com>
2021-01-20 01:03:28 -08:00
Miss Islington (bot)
c347cbe694
closes bpo-42938: Replace snprintf with Python unicode formatting in ctypes param reprs. (GH-24247)
(cherry picked from commit 916610ef90)

Co-authored-by: Benjamin Peterson <benjamin@python.org>

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2021-01-18 15:29:31 -06:00
Miss Islington (bot)
a90539f572
bpo-42944 Fix Random.sample when counts is not None (GH-24235) (GH-24243) 2021-01-18 10:36:07 -08:00
Jason R. Coombs
799722cb0d
[3.9] bpo-42163, bpo-42189, bpo-42659: Support uname_tuple._replace (for all but processor) (GH-23010) (#24232)
* Add test capturing missed expectation with uname_result._replace.

* bpo-42163: Override uname_result._make to allow uname_result._replace to work (for everything but 'processor'.

* Replace hard-coded length with one derived from the definition.

* Add test capturing missed expectation with copy/deepcopy on namedtuple (bpo-42189).

* bpo-42189: Exclude processor parameter when constructing uname_result.

* In _make, rely on __new__ to strip processor.

* Add blurb.

* iter is not necessary here.

* Rely on num_fields in __new__

* Add test for slices on uname

* Add test for copy and pickle.

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

* import pickle

* Fix equality test after pickling.

* Simply rely on __reduce__ for pickling.

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit a6fd0f414c)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
2021-01-16 14:45:30 -05:00
Miss Islington (bot)
17c1f0c8cb
bpo-42931: randbytes missing from random.__all__ (GH-24219) (GH-24225) 2021-01-15 10:21:52 -08:00
Miss Islington (bot)
ddc0fa3a1c
Docs: Remove stray semicolon in init.rst (GH-23974)
Removed stray semicolon which was causing the docs to render weirdly (it's the function right under the one [here](https://docs.python.org/3/c-api/init.htmlGH-c._PyInterpreterState_GetEvalFrameFunc)).
(cherry picked from commit 9712358277)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2021-01-14 08:17:44 -08:00
Miss Islington (bot)
799f8489d4
bpo-33065: Fix problem debugging user classes with __repr__ method (GH-24183)
If __repr__ uses instance attributes, as normal, and one steps
through the __init__ method, debugger may try to get repr before
the instance attributes exist.  reprlib.repr handles the error.
(cherry picked from commit 81f87bbf9f)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-01-09 23:30:43 -08:00
Ethan Furman
9ab4dd4522
[3.9] bpo-42851: [Enum] remove brittle __init_subclass__ support (GH-24154) (GH-24155)
Solution to support calls to `__init_subclass__` with members defined is too brittle and breaks with certain mixins..
(cherry picked from commit a581a868d9)
2021-01-07 13:55:59 -08:00
Yair Frid
8c3914aef4
[3.9] bpo-42811: Update importlib.utils.resolve_name() docs to use __spec__.parent (GH-24100) (GH-24149)
This is a backport of 
https://github.com/python/cpython/pull/24100

Automerge-Triggered-By: GH:brettcannon
2021-01-07 10:06:13 -08:00
Vladimir
49c150f1f1
bpo-38413: Remove outdated section about multithreading in sqlite3 (GH-23159)
(cherry picked from commit f9949f82e1)
2021-01-06 22:57:24 +02:00
Miss Islington (bot)
faf4957396
bpo-42528: Improve the docs of most Py*_Check{,Exact} API calls (GH-23602) (GH-24139)
I think that none of these API calls can fail, but only few of them are
documented as such. Add the sentence "This function always succeeds" (which is
the same already used e.g. by PyNumber_Check) to all of them.
(cherry picked from commit 315fc52db1)

Co-authored-by: Antonio Cuni <anto.cuni@gmail.com>

Co-authored-by: Antonio Cuni <anto.cuni@gmail.com>
2021-01-06 13:54:18 +01:00
Miss Islington (bot)
a3ca6747f5
bpo-14014: Clarify StreamWriter.reset() documentation (GH-13716)
(cherry picked from commit 1a9f51ed12)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
2021-01-06 04:27:30 +02:00
Steve Dower
77d5471050
bpo-42584: Update Windows installer to use SQLite 3.34.0 (GH-23675)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-01-06 00:09:08 +00:00
Steve Dower
c833393143
bpo-41837: Updated Windows installer to include OpenSSL 1.1.1i (GH-24125) 2021-01-05 23:37:29 +00:00
Erlend Egeberg Aasland
e9a71dab09
[3.9] bpo-42584: Update macOS installer to use SQLite 3.34.0 (GH-23674) (GH-24130)
(cherry picked from commit c94ee13ad5)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>

Automerge-Triggered-By: GH:ned-deily
2021-01-05 14:52:55 -08:00
Miss Islington (bot)
6e72ab909d
[3.9] bpo-40052: Fix alignment issue in PyVectorcall_Function() (GH-23999) (GH-24005)
```
In file included from /usr/include/python3.8/Python.h:147:
In file included from /usr/include/python3.8/abstract.h:837:
/usr/include/python3.8/cpython/abstract.h:91:11: error: cast from 'char *' to 'vectorcallfunc *'
(aka 'struct _object *(**)(struct _object *, struct _object *const *, unsigned long, struct _object *)')
increases required alignment from 1 to 8 [-Werror,-Wcast-align]

    ptr = (vectorcallfunc*)(((char *)callable) + offset);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-Authored-By: Andreas Schneider <asn@cryptomilk.org>
Co-Authored-By: Antoine Pitrou <antoine@python.org>
(cherry picked from commit 056c08211b)
2021-01-05 16:46:58 +01:00
Serhiy Storchaka
9b3a53a826
[3.9] bpo-42681: Fix test_curses failures related to color pairs (GH-24089) (GH-24113)
On ncurses 6.1 pair numbers are limited by SHORT_MAX-1.

Improve error reporting and tests for color functions.
(cherry picked from commit 59f9b4e450)
2021-01-05 14:23:19 +02:00
Terry Jan Reedy
d82392face
[3.9] bpo-32631: IDLE: Enable zzdummy example extension module (GH-14491)
Make menu items work with formatter, add docstrings, add 100% tests.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit e40e2a2cc9)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2021-01-05 03:25:57 -05:00
Miss Islington (bot)
30e9ee3f43
Fix broken NEWS markup (GH-24110)
(cherry picked from commit cde988e893)

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
2021-01-05 00:18:17 -08:00
Miss Islington (bot)
80e5732d31
bpo-40810: Fix CheckTraceCallbackContent for SQLite pre 3.7.15 (GH-20530)
Ref. [SQLite 3.7.15 changelog](https://sqlite.org/changes.htmlGH-version_3_7_15):
_"Avoid invoking the sqlite3_trace() callback multiple times when a statement is automatically reprepared due to SQLITE_SCHEMA errors."_
(cherry picked from commit f7f0ed59bc)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-01-04 15:41:03 -08:00
Miss Islington (bot)
def7dc3b71
Do not remove x bit from published directories (GH-24101)
(cherry picked from commit af4cd16479)

Co-authored-by: Steve Dower <steve.dower@python.org>
2021-01-04 13:17:05 -08:00
Julien Palard
e6d0107e13
Revert "[3.9] [doc] Fix erroneous backslashes in signatures and names (GH-23658)" (GH-24092)
This partially reverts commit
e89993cff4, which was removing
backslashes in documentations compiled with Sphinx < 3, used for
Python 3.8 and 3.9 docs.
2021-01-04 17:19:27 +01:00