Commit Graph

103539 Commits

Author SHA1 Message Date
Miss Islington (bot) 2469066a4b
Fix asyncio.get_event_loop() documentation (GH-18051)
Mention that the function implicitly creates new event loop only if called from the main thread.
(cherry picked from commit 2c49becc69)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2020-01-20 14:51:57 -08:00
Miss Islington (bot) a360070121
bpo-38400 Don't check for NULL linked list pointers in _PyObject_IsFreed (GH-16630)
Some objects like Py_None are not initialized with conventional means
that prepare the circular linked list pointers, leaving them unlinked
from the rest of the objects. For those objects, NULL pointers does
not mean that they are freed, so we need to skip the check in those
cases.
(cherry picked from commit 36e33c360e)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-01-19 15:43:12 -08:00
Miss Islington (bot) 296383b6d0
bpo-35561: Supress valgrind false alarm on epoll_ctl(event) (GH-18060)
Update Misc/valgrind-python.supp to suppress the false alarm.
(cherry picked from commit d8ef64422a)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-01-19 14:44:04 -08:00
Miss Islington (bot) d96b7ddae9
Fix typo from base to based (GH-18055)
(cherry picked from commit 558f078911)

Co-authored-by: Michael Haas <micha2718l@gmail.com>
2020-01-19 02:48:40 -08:00
Miss Islington (bot) 504605576d Fix Lock.locked() to remove extra bold highlighting (GH-18042) (#18044)
(cherry picked from commit ef8844f1bc)

Co-authored-by: Grant Jenks <grant.jenks@gmail.com>

Co-authored-by: Grant Jenks <grant.jenks@gmail.com>
2020-01-17 15:00:47 -08:00
Miss Islington (bot) 970188c2d7
bpo-39348: Fix code highlight for the SOCK_NONBLOCK example (GH-18018)
The previous double colon was wrongly place directly after Therefore.
Which produced a block without syntax highlighting. This fixes it
by separating the double colon from the text. As a result, sphinx now
properly highlights the python code.

https://bugs.python.org/issue39348
(cherry picked from commit fad8b5674c)

Co-authored-by: Oz N Tiram <oz.tiram@noris.de>
2020-01-15 16:00:32 -08:00
Miss Islington (bot) 74b95b6b32
[3.7] Fix typo in multiprocessing.pool.AsyncResult.successful doc. (GH-17932) (GH-18016)
Since 3.7 `successful` raises a `ValueError` as explained in the next text block from the documentation:

_Changed in version 3.7: If the result is not ready, ValueError is raised instead of AssertionError._

No issue associated with this PR.
Should be backported in 3.7 and 3.8.
(cherry picked from commit dc0284ee8f)


Co-authored-by: Antoine <43954001+awecx@users.noreply.github.com>

Automerge-Triggered-By: @pitrou
2020-01-15 12:19:39 -08:00
Miss Islington (bot) 5c08bfe867
Fix documentation in code.py (GH-17988)
(cherry picked from commit b4cdb3f60e)

Co-authored-by: Kyle Pollina <kylepollina@protonmail.com>
2020-01-14 12:14:56 -08:00
Miss Islington (bot) dfe159ca55
bpo-39310: Update sys.float_info documentation (GH-17982)
Specify that sys.float_info.min is only the minimum normalized float.
(cherry picked from commit 9362f8526e)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-01-13 11:30:00 -08:00
Vinay Sajip 9dbf5d3bc2
[3.7] bpo-16575: Disabled checks for union types being passed by value. (GH-17960) (GH-17970)
Although the underlying libffi issue remains open, adding these
checks have caused problems in third-party projects which are in
widespread use. See the issue for examples.

The corresponding tests have also been skipped.
(cherry picked from commit c12440c371)
2020-01-12 20:55:54 +00:00
Miss Islington (bot) e222b4c69f
bpo-3530: Add advice on when to correctly use fix_missing_locations in the AST docs (GH-17172)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
(cherry picked from commit 6680f4a9f5)

Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
2020-01-12 12:44:22 -08:00
Miss Islington (bot) 4be9726035
bpo-38293: Allow shallow and deep copying of property objects (GH-16438)
Copying property objects results in a TypeError. Steps to reproduce:

```
>>> import copy
>>> obj = property()
>>> copy.copy(obj)
````

This affects both shallow and deep copying.
My idea for a fix is to add property objects to the list of "atomic" objects in the copy module.
These already include types like functions and type objects.

I also added property objects to the unit tests test_copy_atomic and test_deepcopy_atomic. This is my first PR, and it's highly likely I've made some mistake, so please be kind :)

https://bugs.python.org/issue38293
(cherry picked from commit 9f3fc6c5b4)

Co-authored-by: Guðni Natan Gunnarsson <1493259+GudniNatan@users.noreply.github.com>
2020-01-12 10:00:27 -08:00
Miss Islington (bot) a993658f94
[3.7] Add test cases for dataclasses. (GH-17909) (GH-17920)
* Add test cases for dataclasses.

* Add test for repr output of field.
* Add test for ValueError to be raised when both default and default_factory are passed.
(cherry picked from commit eef1b027ab)


Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>

Automerge-Triggered-By: @ericvsmith
2020-01-10 04:12:30 -08:00
Miss Islington (bot) 00ac28ac4d
bpo-39242: Updated the Gmane domain into news.gmane.io (GH-17903)
(cherry picked from commit 2e6a8efa83)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
2020-01-08 07:47:25 -08:00
Miss Islington (bot) 535a3c4e3d
bpo-38871: Fix lib2to3 for filter-based statements that contain lambda (GH-17780)
Correctly parenthesize filter-based statements that contain lambda
expressions in lib2to3.
(cherry picked from commit b821173b54)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
2020-01-07 09:47:51 -08:00
Miss Islington (bot) d46dec981a bpo-39198: Ensure logging global lock is released on exception in isEnabledFor (GH-17689) (GH-17898)
(cherry picked from commit 950c6795aa)
2020-01-07 17:03:49 +00:00
Miss Islington (bot) 72995c5cdd
bpo-38623: Doc: Add section for site module CLI. (GH-17858)
(cherry picked from commit ca94677a62)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2020-01-07 00:04:32 -08:00
Miss Islington (bot) 3218520524
Doc: Change Python 2 status to EOL. (GH-17885)
(cherry picked from commit f4800b8ed3)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2020-01-06 22:58:19 -08:00
Miss Islington (bot) 676b16c140
bpo-39041: Fix coverage upload command for GitHub Actions (GH-17873)
https://bugs.python.org/issue39041

Automerge-Triggered-By: @zooba
(cherry picked from commit b1ce22d086)

Co-authored-by: Steve Dower <steve.dower@python.org>
2020-01-06 13:42:37 -08:00
Miss Islington (bot) acf5e5f3f4 bpo-39041: Add GitHub Actions support (GH-17594)
(cherry picked from commit a76ba362c4)

Co-authored-by: Steve Dower <steve.dower@python.org>
2020-01-06 08:47:06 -08:00
Miss Islington (bot) 54bcd656a2
Minor formatting improvements and fixes to idle.rst (GH-17165)
(cherry picked from commit d6c08db853)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
2020-01-06 00:24:25 -08:00
Miss Islington (bot) b853a7c6c0
Fix the parameter list of object. _rpow_ (GH-GH-16477)
(cherry picked from commit abc0c4fa99)

Co-authored-by: HongWeipeng <961365124@qq.com>
2020-01-05 14:37:37 -08:00
Miss Islington (bot) cb4ed24a38
Replace links in howto/pyporting.rst with sphinx references (GH-17781)
Signed-off-by: Oleg Höfling <oleg.hoefling@gmail.com>
(cherry picked from commit e6ae90dede)

Co-authored-by: Oleg Höfling <hoefling@users.noreply.github.com>
2020-01-05 14:13:44 -08:00
Miss Islington (bot) 6234301bb5
bpo-39152: add missing ttk.Scale.configure return value (GH-17815)
tkinter.ttk.Scale().configure([name]) now returns a configuration tuple for name
or a list thereof for all options. Based on patch Giovanni Lombardo.
(cherry picked from commit 5ea7bb25e3)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-01-05 08:49:48 -08:00
Miss Islington (bot) 43fbc70360
bpo-39056: Fix handling invalid warning category in the -W option. (GH-17618)
No longer import the re module if it is not needed.
(cherry picked from commit 41ec17e45d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-01-05 04:34:58 -08:00
Miss Islington (bot) 3bdb2d9daf
bpo-39055: Reject a trailing \n in base64.b64decode() with validate=True. (GH-17616)
(cherry picked from commit b19c0d77e6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-01-05 04:32:45 -08:00
Miss Islington (bot) 880a17af7d
bpo-39057: Fix urllib.request.proxy_bypass_environment(). (GH-17619)
Ignore leading dots and no longer ignore a trailing newline.
(cherry picked from commit 6a265f0d0c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-01-05 04:31:44 -08:00
Andrew Svetlov 9c145e19fb
[3.7] bpo-39191: Don't spawn a task before failing (GH-17796) (#17821)
(cherry picked from commit 3a5de51159)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2020-01-04 11:49:32 +02:00
Miss Islington (bot) 83638fe0a7
Update copyright year in macOS installer license copy (GH-17806)
(cherry picked from commit 32f1443aa9)

Co-authored-by: Ned Deily <nad@python.org>
2020-01-02 19:47:00 -08:00
Benjamin Peterson 8978ae9705 [3.7] Bring Python into the next decade. (GH-17801). (GH-17803)
(cherry picked from commit 946b29ea0b)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2020-01-02 22:39:21 -05:00
Miss Islington (bot) 3959638ba1
bpo-39183: Fix formatting in library/ensurepip (GH-17787)
Remove extra space to fix formatting and avoid from splitting text in to strings.

https://bugs.python.org/issue39183
(cherry picked from commit 149175c6df)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
2020-01-01 14:32:17 -08:00
Miss Islington (bot) 0e0e4acaab bpo-39142: Avoid converting namedtuple instances to ConvertingTuple. (GH-17773) (GH-17786)
(cherry picked from commit 46abfc1416)
2020-01-01 20:07:31 +00:00
Miss Islington (bot) 88938e415f
Fix idlelib README typo. (GH-17770)
(cherry picked from commit ba82ee894c)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-12-31 10:51:23 -08:00
Dong-hee Na 53f11ba7b1 [3.7] bpo-38588: Fix possible crashes in dict and list when calling P… (GH-17765)
* [3.7] bpo-38588: Fix possible crashes in dict and list when calling PyObject_RichCompareBool (GH-17734)

Take strong references before calling PyObject_RichCompareBool to protect against the case
where the object dies during the call..
(cherry picked from commit 2d5bf568ea)

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

* methane's suggestion

methane's suggestion

Co-Authored-By: Inada Naoki <songofacandy@gmail.com>

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2019-12-31 04:15:10 +00:00
Miss Islington (bot) c9c17cc933
bpo-34118: memoryview, range, and tuple are classes (GH-17761)
Tag memoryview, range, and tuple as classes, the same as list, etcetera, in
the library manual built-in functions list.
(cherry picked from commit ee9ff05ec2)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-12-30 14:22:24 -08:00
Pablo Galindo 296d45ec10
[3.7] bpo-38610: Fix possible crashes in several list methods (GH-17022) (GH-17759)
Hold strong references to list elements while calling PyObject_RichCompareBool()..
(cherry picked from commit d9e561d23d)

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

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2019-12-30 19:58:31 +00:00
Miss Islington (bot) 177bda9d51
Fix typos and remove deprecated deprecation warning. (GH-17741)
(cherry picked from commit 32a12aed6d)

Co-authored-by: Antoine <43954001+awecx@users.noreply.github.com>
2019-12-29 14:19:54 -08:00
Terry Jan Reedy d7947280a4
[3.7] bpo-39136: Fixed typos (GH-17720)
focusses -> focuses; follwing -> following; Excape -> Escape.

(cherry picked from commit 6c7bb38)
2019-12-29 01:40:49 -05:00
Éric Araujo eeebc44db4
Reorder entries in Misc/ACKS (GH-17663) (GH-17672) 2019-12-28 15:41:48 -05:00
Miss Islington (bot) d7aa3d2684
bpo-39144 Align ctags and etags behaviours in the makefile and include Python stdlib files (GH-17721)
(cherry picked from commit ef7eaafc9d)

Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
2019-12-27 18:51:37 -08:00
Miss Islington (bot) 5641b6d311
closes bpo-30364: Replace deprecated no_address_safety_analysis attribute. (GH-17702)
(cherry picked from commit c0052f3fe3)

Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
2019-12-26 19:08:30 -08:00
Miss Islington (bot) 090bc14883 Minor C API documentation improvements. (GH-17698)
The added parentheses around the PyIter_Next assignment suppress the following warning which gcc throws without:
```
warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
```
The other change is a typo fix
(cherry picked from commit 5c7ed7550e)

Co-authored-by: William Ayd <william.ayd@icloud.com>
2019-12-24 22:35:20 -06:00
Bar Harel 59d06b987d [3.7] bpo-38878: Fix os.PathLike __subclasshook__ (GH-17336) (GH-17685)
https://bugs.python.org/issue38878
2019-12-23 18:31:15 +00:00
Miss Islington (bot) 0ffc90031c
bpo-38918: Add __module__ entry for function & method type in inspect docs table (GH-17408)
Adds` __module__ ` entries for function & method types in inspect docs table.

https://bugs.python.org/issue38918
(cherry picked from commit f522a6ddb6)

Co-authored-by: Parth Sharma <parthsharma2@users.noreply.github.com>
2019-12-20 11:26:16 -08:00
Batuhan Taşkaya 917419f58b [3.7] bpo-38316: Fix co_stacksize documentation (GH-16983). (GH-17660)
(cherry picked from commit d587272fe3)

Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>





https://bugs.python.org/issue38316



Automerge-Triggered-By: @vstinner
2019-12-19 06:41:49 -08:00
Ned Deily 54bd737d3b Post release updates 2019-12-18 20:47:58 -05:00
Ned Deily e5c7f464d1 Python 3.7.6
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEDZbfTUEQ5cQ/v7F/LTR+pqplQh0FAl36dZcACgkQLTR+pqpl
 Qh28TQ//b6hLzrMwMWUrIAntsmbR6qhkLEOZnuUyRKrFe9lF+CMP+7vzyPftYy0T
 hF0SbOOTryP9uV0XIDqlXIPq7NeB5qL8Ny4BByldWHy87mSxsExkf44F6T+KfFbT
 UX3qjq9jN+MBekbz84CBtlQkr1XHiNt6UUXhWfQ+4lVnyATYcx7CMWt6A6gQ1j9n
 Yq8ig9cnAfJKeyFwujfgJmP28uxK2dydpJ2bw3uyPMSYCjGlJP1fAev81QDYCbPC
 g6F7hcbJ655jdR6rBT3djJuXT0CHNo3alVM0hySmy7y/rzeWgIJ4y+9dJcigewKo
 TUbWbEMAXVSrwjnGD0E3Etvf+Qz61+F4sRrduIbPCO4B/+2KB8TUomXEZJc9288l
 XNq5OXBOuT0e4Ananu+rHzDWQ8PZ66T75u+UVdQZ0oJGOypbaXljyowS0MxUxMTY
 YY6mVnVS9KvDI2KLiXhzxegdvtUInN0SMUuHSLnv2R70nE2DANlCYzqZzxe90HkC
 TVBfteKBT6B5dPRrg9vCZxJ9TlT5vKqPUrYdtL6xgHXfcAXRcn1NbCM6RVTAxoEG
 Eq0tHNIdyn8hDNjHGb9/Mj0V+k8vS817uHYzilxRg80whfKnvcPELEfLyOVepUnb
 H2smkjT3ZcWRfWDUrwe7DLqlEk0SXSG7L1PK14ts3D3TChMhC20=
 =EL/k
 -----END PGP SIGNATURE-----

Merge tag 'v3.7.6' into 3.7
2019-12-18 20:41:32 -05:00
Miss Islington (bot) b8bbdf049b
bpo-38546: Fix concurrent.futures test_ressources_gced_in_workers() (GH-17652) (GH-17655)
Fix test_ressources_gced_in_workers() of test_concurrent_futures:
explicitly stop the manager to prevent leaking a child process
running in the background after the test completes.

(cherry picked from commit 673c39331f)
(cherry picked from commit b0eb046cbd)

Co-authored-by: Victor Stinner <vstinner@python.org>
2019-12-18 12:51:09 -08:00
Ned Deily 43364a7ae0 3.7.6 2019-12-18 13:48:49 -05:00
Miss Islington (bot) 13ee023c03 bpo-38295: prevent test_relative_path of test_py_compile failure on macOS Catalina (GH-17636)
(cherry picked from commit bf3aa1060a)

Co-authored-by: Ned Deily <nad@python.org>
2019-12-18 13:39:27 -05:00