Commit Graph

103675 Commits

Author SHA1 Message Date
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
Miss Skeleton (bot) 5207cc0ef0
Fix typo in formatter_unicode (GH-16831)
numbers's -> number's
(cherry picked from commit 7320ec05f7)

Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
2019-10-25 10:02:47 -07:00
Miss Skeleton (bot) 0160a70acb
bpo-33348: parse expressions after * and ** in lib2to3 (GH-6586)
These are valid even in python 2.7

https://bugs.python.org/issue33348

Automerge-Triggered-By: @gpshead
(cherry picked from commit 96b06aefe2)

Co-authored-by: Zsolt Dollenstein <zsol.zsol@gmail.com>
2019-10-23 23:36:26 -07:00
Miss Skeleton (bot) dd81b7adce
Update URL in macOS installer copy of license (GH-16905)
(cherry picked from commit 01659ca62c)

Co-authored-by: Ned Deily <nad@python.org>
2019-10-23 13:27:22 -07:00
Miss Skeleton (bot) 2e7eaf9ff0 Spell Bitbucket correctly. (GH-16862) (GH-16899)
(cherry picked from commit d34ac30532)

Co-authored-by: Peter Bittner <django@bittner.it>
2019-10-23 14:45:09 +03:00
Miss Skeleton (bot) b102e4f052
bpo-37415: Fix stdatomic.h header check for ICC compiler (GH-16717)
Fix stdatomic.h header check for ICC compiler: the ICC implementation
lacks atomic_uintptr_t type which is needed by Python.

Test:

* atomic_int and atomic_uintptr_t types
* atomic_load_explicit() and atomic_store_explicit()
* memory_order_relaxed and memory_order_seq_cst constants

But don't test ATOMIC_VAR_INIT(): it's not used in Python.
(cherry picked from commit 028f7349a0)

Co-authored-by: Victor Stinner <vstinner@python.org>
2019-10-22 13:17:21 -07:00
Miss Skeleton (bot) d4dc4a58f5
Fix Zope URL (GH-16880)
(cherry picked from commit dfe726b1ac)

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
2019-10-22 02:49:32 -07:00
Serhiy Storchaka 928c68eee6
bpo-38540: Revert a warning if PY_SSIZE_T_CLEAN is not defined. (GH-16876) 2019-10-21 21:41:09 +03:00
Miss Skeleton (bot) 175abccbbf
bpo-31202: Preserve case of literal parts in Path.glob() on Windows. (GH-16860)
(cherry picked from commit 10ecbadb79)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2019-10-21 11:12:17 -07:00
Miss Skeleton (bot) 3dec84f40e
bpo-38540: Fix possible leak in PyArg_Parse for "esGH-" and "etGH-". (GH-16869)
(cherry picked from commit 5bc6a7c06e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2019-10-21 01:56:50 -07:00
Miss Islington (bot) e945052e07
Remove doc reference to unmaitained Nose package (GH-16849)
The Nose package is no longer maintained.
(cherry picked from commit 88eeda6311)

Co-authored-by: Jon Dufresne <jon.dufresne@gmail.com>
2019-10-19 12:29:20 -07:00
Miss Islington (bot) 82b5f6b16e
bpo-27657: Fix urlparse() with numeric paths (GH-661)
* bpo-27657: Fix urlparse() with numeric paths

Revert parsing decision from bpo-754016 in favor of the documented
consensus in bpo-16932 of how to treat strings without a // to
designate the netloc.

* bpo-22891: Remove urlsplit() optimization for 'http' prefixed inputs.
(cherry picked from commit 5a88d50ff0)

Co-authored-by: Tim Graham <timograham@gmail.com>
2019-10-18 06:24:28 -07:00
Victor Stinner 1bceb0e589
bpo-35998: Fix test_asyncio.test_start_tls_server_1() (GH-16815) (GH-16818)
main() is now responsible to send the ANSWER, rather than
ServerProto. main() now waits until it got the HELLO before sending
the ANSWER over the new transport.

Previously, there was a race condition between main() replacing the
protocol and the protocol sending the ANSWER once it gets the HELLO.

TLSv1.3 was disabled for the test: reenable it.

(cherry picked from commit fab4ef2df0)
2019-10-16 11:44:30 +02:00
Miss Islington (bot) 5ff8e2dfbe
Update doc switcher list for 3.8.0 (GH-16809)
(cherry picked from commit 3f36043db2)

Co-authored-by: Ned Deily <nad@python.org>
2019-10-15 14:31:51 -07:00
Miss Islington (bot) 079a1e6307
Typo fix - implemention should be implementation (GH-16806)
(cherry picked from commit 2798b60c55)

Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
2019-10-15 14:07:40 -07:00
Ned Deily e48589d265 Post release updates 2019-10-15 03:28:42 -04:00
Ned Deily 1f187714be Python 3.7.5
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEDZbfTUEQ5cQ/v7F/LTR+pqplQh0FAl2k+McACgkQLTR+pqpl
 Qh3v2xAAgF1LyLY/T9nqtWGsbnTLsFSINUpeLS9g2ccrxA2iBq8rs6BcQ6FhZpRS
 y1PHRnnEwqNYDvRyo9HmfAjUb2uqXDSEO6SbEkp38GkU1kh2Vubyp8DENF0M6UH3
 hOTWBEpXof9PTqXXM9nNf/D556HoBt31FJcyHV6SCteF8pbkmMdNM+kfuP1BP1RI
 LLYg/EvH21C/Y0Dutmgo62yt+2mOsJH8gqL14WP93fFRrnoW4TsgYqbQXUC3IaVV
 G6pp5EMWZ6s3M7rWSyNMSs00fV0Rh/CUJimUwk0JmmJdYdrmC0aUkXbMFOcmGS/C
 fK8YlwagB4R6RnHjEScoZlVoQSqQOMOJpEyIZYZ4rb4FqgTGS1R7weFbya7kAmma
 1x4WhN/U0OOi7G1btLyNis9yz4I1ho2PNIWnuozOqSJ04NMm6bGYsdHvWpawmQTg
 01Ndh5EhXYlIneFKkW2fewGqY/HrACNEXMS8VqC6Bgm8h+quUXyzOxsUB3ErP50+
 gGIDzBEajZg22Z+Ei3+bD0z2t6v7wfa3JiS52oQBfPTCDHXyHBDl6YQqcR3A5emR
 rPJp4ix0jo74KPq7+WOoBvriEaUsUzj/G6j8MvaTLIpr07Vn83dVyXPEFgkozFl5
 L/cSxDzoFTkuScsdLlb6bbpEBO9wo+7fnZApBt3WjdhsrtxDzMg=
 =Ro62
 -----END PGP SIGNATURE-----

Merge tag 'v3.7.5' into 3.7
2019-10-15 03:15:46 -04:00