Commit Graph

103441 Commits

Author SHA1 Message Date
Miss Islington (bot) 97c301bfc5
bpo-36277: Add document for pdb debug and retval commands (GH-12872)
https://bugs.python.org/issue36277

Automerge-Triggered-By: @csabella
(cherry picked from commit 9391f6c3ef)

Co-authored-by: Dave Nguyen <dv@dvnguyen.com>
2019-11-20 17:56:43 -08:00
Miss Islington (bot) 7efeb75b72
Fixed an incorrect sentence in the docs (GH-17205)
Fixed an incorrect sentence in Doc/c-api/mapping.rst I fell on
while translating the file.

skip issue

Automerge-Triggered-By: @csabella
(cherry picked from commit 06ca2a2be9)

Co-authored-by: Aveheuzed <a.masson555@ntymail.com>
2019-11-20 17:24:51 -08:00
Miss Islington (bot) ecb2afc1bc
bpo-38821: Fix crash in argparse when using gettext (GH-17192)
(cherry picked from commit be5c79e033)

Co-authored-by: Federico Bond <federicobond@gmail.com>
2019-11-20 05:48:20 -08:00
Miss Islington (bot) 1d7245c3e0
bpo-38823: Fix refleak in _tracemalloc init error handling (GH-17235)
(cherry picked from commit d51a363a43)

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
2019-11-20 02:26:54 -08:00
Miss Islington (bot) 63f09e7628
bpo-38823: Fix refleak in marshal init error path (GH-17260)
(cherry picked from commit 33b671e724)

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
2019-11-20 02:15:22 -08:00
Miss Islington (bot) 755caaa753
bpo-38636: Fix IDLE tab toggle and file indent width (GH-17008)
These Format menu functions (default shortcuts Alt-T and Alt-U)
were mistakenly disabled in 3.7.5 and 3.8.0.
(cherry picked from commit b8462477bf)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-11-19 22:37:09 -08:00
Miss Islington (bot) 5bd2af9c79
bpo-38823: Fix refleaks in faulthandler init error path on Windows (GH-17250)
(cherry picked from commit ac2235432c)

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
2019-11-19 15:30:02 -08:00
Miss Islington (bot) 4ffc569b47
bpo-35409: Ignore GeneratorExit in async_gen_athrow_throw (GH-14755)
Ignore `GeneratorExit` exceptions when throwing an exception into the `aclose` coroutine of an asynchronous generator.

https://bugs.python.org/issue35409
(cherry picked from commit 8e0de2a480)

Co-authored-by: Vincent Michel <vxgmichel@gmail.com>
2019-11-19 06:12:12 -08:00
Miss Islington (bot) 2b928d9bf7
bpo-38809: Windows build scripts use python.exe from virtual envs (GH-17164)
https://bugs.python.org/issue38809
(cherry picked from commit ee703cbb41)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
2019-11-18 09:53:14 -08:00
Miss Islington (bot) 3f4e7f7eb3
Correct the description of the 3.7 change in urllib.parse.quote (GH-17065)
`~` is now treated as an unreserved character (i.e. it doesn't get quoted), not a reserved one.
(cherry picked from commit f49f6baa6b)

Co-authored-by: Роман Донченко <dpb@corrigendum.ru>
2019-11-18 07:42:20 -08:00
Miss Islington (bot) 9e4d031210
bpo-38823: Clean up refleaks in _tkinter initialization. (GH-17206)
https://bugs.python.org/issue38823
(cherry picked from commit 289cf0fbf7)

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
2019-11-18 07:09:43 -08:00
Vinay Sajip 9a4c5c30d9
[3.7] bpo-38830: Correct slot signature in Qt example. (GH-17220) (GH-17222)
(cherry picked from commit 5383956583)
2019-11-18 12:24:16 +00:00
Miss Islington (bot) d2faac63af bpo-38678: Improve argparse example in tutorial (GH-17207) (GH-17213)
(cherry picked from commit 04c79d6088)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-11-17 22:17:28 -08:00
Miss Islington (bot) 72321c7be0 bpo-25866: Minor cleanups to "sequence" in docs (GH-17177) (GH-17209)
(cherry picked from commit 4544e78ec4)

Co-authored-by: alclarks <57201106+alclarks@users.noreply.github.com>
2019-11-17 14:07:48 -08:00
Miss Islington (bot) 8a334af133
bpo-38823: Clean up refleaks in _contextvars initialization. (GH-17198)
https://bugs.python.org/issue38823
(cherry picked from commit 143a97f641)

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
2019-11-16 16:14:45 -08:00
Miss Islington (bot) 825e91be04
bpo-38823: Clean up refleaks in _asyncio initialization. (GH-17195)
https://bugs.python.org/issue38823
(cherry picked from commit c3f6bdc332)

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
2019-11-16 14:45:24 -08:00
Miss Islington (bot) 5469bc0ea7
Fix typo in Lib/socketserver.py (GH-17024)
changed 'This is bad class design, but save some typing'
into 'This is bad class design, but saves some typing'.
(cherry picked from commit d0acdfcf34)

Co-authored-by: Jason (Perry) Taylor <jtaylor@seek.com.au>
2019-11-16 10:32:37 -08:00
Jules Lasne (jlasne) 208a6a1b13 [3.7] Updated missing periods in cmdline.rst (GH-17173). (GH-17182)
(cherry picked from commit 0fe0b88d6e)

Co-authored-by: Jules Lasne (jlasne) <jules.lasne@gmail.com>
2019-11-15 14:47:17 -08:00
Miss Islington (bot) fe67a53540
bpo-38351: Modernize email examples from %-formatting to f-strings (GH-17162)
(cherry picked from commit e8acc865a3)

Co-authored-by: Andrey Doroschenko <dorosch.github.io@yandex.ru>
2019-11-15 01:14:44 -08:00
Miss Islington (bot) 87b4d3994e
bpo-38785: Prevent asyncio from crashing (GH-17144)
if parent `__init__` is not called from a constructor of object derived from `asyncio.Future`

https://bugs.python.org/issue38785
(cherry picked from commit dad6be5ffe)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2019-11-13 13:54:50 -08:00
Miss Islington (bot) 753d0c05b3
bpo-4630: Add cursor no-blink option for IDLE (GH-16960)
This immediately toggles shell, editor, and output windows, but does not affect other input widgets.
(cherry picked from commit 9c2844927d)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2019-11-12 23:37:07 -08:00
Miss Islington (bot) 2e17b30ee3
Fix minor typos. (GH-17095)
(cherry picked from commit 2d56af7a94)

Co-authored-by: Shu <23287722+susan-shu-c@users.noreply.github.com>
2019-11-12 19:18:28 -08:00
Benjamin Peterson b8b3e4377e
[3.7] closes bpo-27805: Ignore ESPIPE in initializing seek of append-mode files. (GH-17137)
This change, which follows the behavior of C stdio's fdopen and Python 2's file object, allows pipes to be opened in append mode..
(cherry picked from commit 74fa9f723f)
2019-11-12 15:34:43 -08:00
Serhiy Storchaka 42b619ac9a
[3.7] bpo-38738: Fix formatting of True and False. (GH-17083) (GH-17128)
* "Return true/false" is replaced with "Return ``True``/``False``"
  if the function actually returns a bool.
* Fixed formatting of some True and False literals (now in monospace).
* Replaced "True/False" with "true/false" if it can be not only bool.
* Replaced some 1/0 with True/False if it corresponds the code.
* "Returns <bool>" is replaced with "Return <bool>".
(cherry picked from commit 138ccbb022)
2019-11-12 20:07:20 +02:00
Miss Islington (bot) eadddad6b0
[3.7] bpo-38421: Update email.utils documentation (GH-16678) (GH-17121)
Updates documentation around email.utils.parsedate_tz().

Currently, the documentation specifies that when a string without a is timezone passed to parsedate_tz(), the last tuple is returned as ```None```.

This is no longer true since Python 3.3


https://bugs.python.org/issue38421
(cherry picked from commit a12255d8de)


Co-authored-by: David K <dave@paddez.com>


https://bugs.python.org/issue38421



Automerge-Triggered-By: @encukou
2019-11-12 05:34:16 -08:00
Miss Islington (bot) 177b12682c
bpo-26353: IDLE adds an unneeded newline when saving a shell window (GH-17103)
(cherry picked from commit c8b53dc3d8)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2019-11-12 03:13:32 -08:00
Miss Islington (bot) 832341a071
[3.8] bpo-37309: idlelib/NEWS.txt - add missing period. (GH-17115)
(cherry picked from commit 8341a4d918)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-11-12 02:21:06 -08:00
Miss Islington (bot) cb1c06e3bf bpo-38771: Explict test for None in code example (GH-17108) (GH-17110)
(cherry picked from commit 98480cef9d)

Co-authored-by: Jonathan Scholbach <j.scholbach@posteo.de>
2019-11-11 16:58:49 -08:00
Miss Islington (bot) 917dbe350a
bpo-22367: Add tests for fcntl.lockf(). (GH-17010)
(cherry picked from commit befa032d88)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
2019-11-09 03:12:35 -08:00
Ammar Askar 484edbf9bf bpo-16575: Fix refleak on passing unions in ctypes (GH-17064)
The master and 3.8 versions of the previous change work as expected
because we perform the lookup for the `from_param` after the union
check. However, in 3.7, this lookup happens before the union
validation and so we must decrease the reference for `cnv` before
returning.
2019-11-06 15:40:06 +00:00
Miss Islington (bot) 91f4b9282f
bpo-38696: Fix usage example of HTTPStatus (GH-17066)
(cherry picked from commit 56698d5769)

Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
2019-11-06 06:27:17 -08:00
Jules Lasne (jlasne) 1bfc56759f [3.7] [3.8] Update interpreter.rst (GH-17059) (GH-17060) (GH-17061)
Fixed what seemed to be a weird phrasing.

(cherry picked from commit 5e01a6542a)

Co-authored-by: Jules Lasne (jlasne) <jules.lasne@gmail.com>.
(cherry picked from commit 1eac437e8d)

Co-authored-by: Jules Lasne (jlasne) <jules.lasne@gmail.com>
2019-11-05 15:02:09 +01:00
Miss Islington (bot) 4342af00d8
[3.7] bpo-38159: Clarify documentation of PyState_AddModule (GH-16101) (GH-17027)
This was never intented to be called manually from PyInit_*.

Also, clarify PyState_RemoveModule return value.
(cherry picked from commit 9bc94eca0c)


Co-authored-by: Petr Viktorin <encukou@gmail.com>


https://bugs.python.org/issue38159



Automerge-Triggered-By: @encukou
2019-11-05 05:36:09 -08:00
Miss Islington (bot) 1f9148bdb4
Fix a typo in wave module docstring (GH-17009)
s/pathing/patching/
(cherry picked from commit 25fa3ecb98)

Co-authored-by: Michael Haas <micha2718l@gmail.com>
2019-11-04 20:50:01 -08:00
Miss Skeleton (bot) 72b874a2ac
bpo-38422: Clarify docstrings of pathlib suffix(es) (GH-16679)
Whenever I use `path.suffix` I have to check again whether it includes the dot or not. I decided to add it to the docstring so I won't have to keep checking.

https://bugs.python.org/issue38422

Automerge-Triggered-By: @pitrou
(cherry picked from commit 8d4fef4ee2)

Co-authored-by: Ram Rachum <ram@rachum.com>
2019-11-02 10:04:18 -07:00
Vinay Sajip 0118d109d5
[3.7] bpo-16575: Add checks for unions passed by value to functions. (GH-16799) (GH-17017)
(cherry picked from commit 79d4ed102a)
2019-10-31 14:15:04 +00:00
Miss Skeleton (bot) a28cf14dea Add docstring for shlex.split (GH-16740) (GH-17012)
(cherry picked from commit 65c7382c47)

Co-authored-by: MaT1g3R <peijun.ma@protonmail.com>
2019-10-31 12:50:32 +00:00
Miss Skeleton (bot) f3aa1dc3b3
Update the URL for the requests package (GH-17006)
Change the url from docs.python-requests.org to requests.readthedocs.io
(cherry picked from commit 112f2b805b)

Co-authored-by: Simon Legner <Simon.Legner@gmail.com>
2019-10-31 05:09:57 -07:00
Serhiy Storchaka 951b6c314a
[3.7] bpo-38600: NULL -> ``NULL``. (GH-17001) (GH-17004)
Also fix some other formatting.
(cherry picked from commit e835b31d2b)
2019-10-30 22:45:14 +02:00
Serhiy Storchaka 7f7f986cc4
[3.7] bpo-38600: Change the mark up of NULL in the C API documentation. (GH-16950) (GH-17000)
Replace all *NULL* with ``NULL``.
(cherry picked from commit 25fc088607)
2019-10-30 21:36:19 +02:00
Miss Skeleton (bot) 4cb08b6c0a
bpo-37330: open(): "U" mode is removed in Python 3.9 (GH-16972)
Update open() documentation.
(cherry picked from commit 1d2862a323)

Co-authored-by: Victor Stinner <vstinner@python.org>
2019-10-29 02:38:37 -07:00
Miss Skeleton (bot) f7d50f8f99
bpo-36993: Improve error reporting for zipfiles with bad zip64 extra data. (GH-14656)
(cherry picked from commit da6ce58dd5)

Co-authored-by: Daniel Hillier <daniel.hillier@gmail.com>
2019-10-29 00:43:37 -07:00
Miss Skeleton (bot) 379b55b526
bpo-38589: Fixes HTML Help shortcut when Windows is not installed to C drive (GH-16968)
(cherry picked from commit 0ac6137dd3)

Co-authored-by: Steve Dower <steve.dower@python.org>
2019-10-28 14:52:00 -07:00
Miss Skeleton (bot) 155a9dc129 bpo-38592 Add pt-br switcher to Python Docs website (GH-16924) (GH-16954)
(cherry picked from commit 85c6f8c65c)

Co-authored-by: Marco Rougeth <marco@rougeth.com>
2019-10-27 11:13:10 +01:00
Miss Skeleton (bot) ed2db3113d
bpo-38334: Fix seeking backward on an encrypted zipfile.ZipExtFile. (GH-16937)
Test by Daniel Hillier.
(cherry picked from commit 5c32af7522)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2019-10-27 01:41:27 -07:00
Terry Jan Reedy baf2657eff
[3.7] bpo-37309: First idlelib/NEWS.txt for 3.7.6 (GH-) (#16949) 2019-10-27 02:38:20 -04:00
Miss Skeleton (bot) bc30db1ee7
bpo-34162: Last idlelib/NEWS.txt items for 3.8.0. (GH-16943)
(cherry picked from commit e31a79a5b4)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-10-26 19:38:26 -07:00
Miss Skeleton (bot) 849b1b9f6c
bpo-38598: Do not try to compile IDLE shell or output windows (GH-16939)
(cherry picked from commit e3f90b217a)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-10-26 18:32:11 -07:00
Miss Skeleton (bot) 334fc923b3
bpo-38557: Improve documentation for list and tuple C API. (GH-16925)
(cherry picked from commit d898d20e8c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2019-10-26 13:05:18 -07:00
Serhiy Storchaka 91fc9cf43c
[3.7] bpo-38535: Fix positions for AST nodes for calls without arguments in decorators. (GH-16861). (GH-16930)
(cherry picked from commit 26ae9f6d3d)
2019-10-26 17:30:14 +03:00