Commit Graph

102919 Commits

Author SHA1 Message Date
Miss Islington (bot) 95dc4577c3
bpo-34055: Revert deletion of line in IDLE's PyShell (GH-11346)
The attribute is still used in other modules.
(cherry picked from commit 4bc246786f)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2018-12-28 17:19:32 -08:00
Miss Islington (bot) b716c716b5
bpo-28097: IDLE - Add Previous/Next History to Shell menu (GH-11325)
(cherry picked from commit c0381aaea4)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2018-12-28 12:29:44 -08:00
Miss Islington (bot) 61775c313f
IDLE: Create function to update menu item state. (GH-11343)
This will be needed for other menu items.  Change outwin to call the function instead of updating the menu item directly.
(cherry picked from commit 804a5d94b6)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2018-12-28 10:29:06 -08:00
Miss Islington (bot) 098bb249e9
bpo-35591: IDLE Find Selection now works when selection not found (GH-11339)
(cherry picked from commit c465682718)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2018-12-28 02:31:34 -08:00
Miss Islington (bot) 4c7f34f73d
bpo-35598: IDLE: Update config_key.py with PEP8 names (GH-11330)
A few other changes make the code easier to follow.
(cherry picked from commit 55698cc395)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2018-12-27 20:08:03 -08:00
Miss Islington (bot) bbf695441a
bpo-35596: Fix vcruntime140.dll being added to embeddable distro multiple times. (GH-11329)
https://bugs.python.org/issue35596
(cherry picked from commit 59c2aa25ff)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
2018-12-27 17:04:07 -08:00
Miss Islington (bot) 705b599803 Speed-up building enums by value, e.g. http.HTTPStatus(200) (GH-11318) (GH-11324)
bpo-35585: Speed up enum by-value lookup
(cherry picked from commit 34ae04f74d)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2018-12-26 22:48:55 +02:00
Miss Islington (bot) dcf14d1a98
bpo-35579: Fix typo in in asyncio-task documentation (GH-11321)
https://bugs.python.org/issue35579

https://bugs.python.org/issue35579
(cherry picked from commit 3a81076bbf)

Co-authored-by: Vaibhav Gupta <vaibhgupt199@gmail.com>
2018-12-26 06:53:03 -08:00
Miss Islington (bot) 793ebdfc55 Redo PR 785 -- Add cross reference links (GH-11319) (#11320)
(cherry picked from commit 56edf3a4b1)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2018-12-25 18:00:20 -08:00
Serhiy Storchaka 74d914ecd5
[3.7] bpo-35578: Add an example file for testing Argument Clinic converters. (GH-11306) (GH-11311)
(cherry picked from commit 837c7dc)
2018-12-25 11:20:08 +02:00
Miss Islington (bot) 7085150cdc
Minor grammar improvement in types.rst (GH-11308)
defines utility function -> defines utility functions

Reported in https://mail.python.org/pipermail/docs/2018-December/038693.html
(cherry picked from commit 95327bc80d)

Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
2018-12-24 16:41:00 -08:00
Miss Islington (bot) 0e0cc553ab
bpo-35208: Fix IDLE Squeezer line counting (GH-10449)
(cherry picked from commit 44a79cc5b3)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
2018-12-24 04:21:11 -08:00
Ned Deily 4cb468d3a7 Post release bump 2018-12-24 04:29:05 -05:00
Ned Deily bb8b5314dc Merge release engineering branch '372final' into 3.7 2018-12-24 04:25:49 -05:00
Ned Deily 6c261c4415 Python 3.7.2
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEDZbfTUEQ5cQ/v7F/LTR+pqplQh0FAlwgAIkACgkQLTR+pqpl
 Qh3IyhAAlS5rZLfk0KrBG01T7a/i/JJ8QILcy5bbfFeQ46xRUHk3yPtp05oMd1u/
 zjcmD4UxExe2/dJGtmXfp86ZfzmvhlAfifzF0OV0G0cbXKnEtwHML1cPT/1mbyG3
 GcKnk1dO7OUR9IMw0KlYZpEfUHNPHKd/HrByJ7Tmd0FJxe8YExIBiyFWZFNds9cV
 cRo8bPfl/AawMN/K1ushwpyl1H0x3Qg+4huC4GRdrN6yLd/hnRFAUVNtft5trChy
 rNRRyk+Z1DPJZydu1mCpFip5bzSIdYQH1W/73gnBRMfG81NPgmkt9zLk0L3UB/gk
 24S2ChASdNKNSOBUiu/7J7RuSN05kIj4g2XH65gdKY+6u6nezfj3qvWMVrKkNa97
 lGOKc5KIjMaGRWGto0tsvSClM4FmtC5LDSnpGFA2e+7RzZJFj5Svy8E9jiUfbyLC
 yECdP21WIInHWWxWG3DD6ksVsyg197uoFm66eshrgnRlRQLzptrKe2WoTDkk6eTy
 VFJd638aLTxSKphfZI7SCiAU1Fm2Q8vUcTVKTY+cnd918aBsB2eEtLW8dzlFMzow
 JK+jjzqZQf1VjasTrPbiNrtt/7KxxzVcJbCu8OYRXUvjWf5gREYCAWT15sWpNuEH
 TCsgkCThQMdaFgqoCNYuzPkSx7k7c0zsaqVSHDCTvgHfrTJDLPU=
 =NTON
 -----END PGP SIGNATURE-----

Merge tag 'v3.7.2' into 3.7
2018-12-24 04:24:38 -05:00
Ned Deily 986a9ab09d Revert "bpo-35402: Update macOS installer to use Tcl 8.6.9 / Tk 8.6.9.1 (GH-11101)"
This reverts commit 3b9a0186c4.

Due to regressions found with using Tk 8.6.9.1, the python.org macOS
installers for 3.6.8 and 3.7.2 are shipping with Tcl/Tk 8.6.8 as used
in previous releases.
2018-12-24 02:04:44 -05:00
Miss Islington (bot) 00a48d57df bpo-34764: improve docs example of iter() with sentinel value (GH-11222) (#11301)
(cherry picked from commit d378b1f8ed)

Co-authored-by: Chris Rands <c_rands100@hotmail.com>
2018-12-23 21:19:57 -08:00
Miss Islington (bot) bc64123335 bpo-35566: Add links to annotation glossary term (GH-11291) (GH-11302) 2018-12-23 21:18:39 -08:00
Miss Islington (bot) d4f7616da3 bpo-35555: IDLE: Gray out Code Context menu item on non-editors (GH-11282) (GH-11300)
The Code Context menu item only works on Editor windows so disable it for others.
(cherry picked from commit 8874f511e7)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2018-12-23 17:14:59 -05:00
Ned Deily 9a3ffc0492 3.7.2final 2018-12-23 16:37:36 -05:00
Miss Islington (bot) 92f9024299 bpo-35257: fix broken BLDSHARED - needs LDFLAGS too (GH-11297)
`BLDSHARED` needs to have both `LDFLAGS` and `LDFLAGS_NODIST`, not just `LDFLAGS_NODIST`; `PY_CORE_LDFLAGS` provides both.  For example, as it stands now with just `LDFLAGS_NODIST`, macOS universal builds are broken as the necessary `-arch` flags are no longer passed to the standard library extension module link step from `setup.py` resulting in extension modules being single architecture only.

https://bugs.python.org/issue35257
(cherry picked from commit 44a3ee07e3)

Co-authored-by: Ned Deily <nad@python.org>
2018-12-23 15:53:07 -05:00
Miss Islington (bot) 26c94c3266 [3.7] Removed dangling `since Python` at the end of library/xml.rst. (GH-11201) (GH-11231)
(cherry picked from commit 82d73554e4)


Co-authored-by: Jules Lasne (jlasne) <jlasne@student.42.fr>
2018-12-23 15:48:39 -05:00
Miss Islington (bot) 3d4b4b80f2
bpo-35257: fix broken BLDSHARED - needs LDFLAGS too (GH-11297)
`BLDSHARED` needs to have both `LDFLAGS` and `LDFLAGS_NODIST`, not just `LDFLAGS_NODIST`; `PY_CORE_LDFLAGS` provides both.  For example, as it stands now with just `LDFLAGS_NODIST`, macOS universal builds are broken as the necessary `-arch` flags are no longer passed to the standard library extension module link step from `setup.py` resulting in extension modules being single architecture only.

https://bugs.python.org/issue35257
(cherry picked from commit 44a3ee07e3)

Co-authored-by: Ned Deily <nad@python.org>
2018-12-23 12:48:00 -08:00
Miss Islington (bot) ffc106c596 bpo-35259: Limit `Py_FinalizeEx()` to `Py_LIMITED_API >= 0x03060000`. (GH-10620)
(cherry picked from commit 3e8f962e63)

Co-authored-by: Arthur Neufeld <aneufeld@seinesoftware.ca>
2018-12-23 15:46:57 -05:00
Myles Borins 25ee15a15c [3.7] bpo-31715 Add mimetype for extension .mjs (GH-3908) (GH-10977)
(cherry picked from commit 0854b92cd2)
2018-12-23 15:46:40 -05:00
Miss Islington (bot) 4db9a3fffa bpo-35482: Fixes HTML escaping in CHM index and build location of NEWS file (GH-11224)
(cherry picked from commit afe17a7bee)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
2018-12-23 15:45:48 -05:00
Victor Stinner f14087a4a9 bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900) (GH-11264)
When compiling 3rd party C extensions, the linker flags used by the
compiler for the interpreter and the stdlib modules, will get
leaked into distutils. In order to avoid that, the PY_CORE_LDFLAGS
and PY_LDFLAGS_NODIST are introduced to keep those flags separated.

(cherry picked from commit cf10a750f4)
2018-12-23 15:45:10 -05:00
Julien Palard 371ca0bb8f bpo-35472: Doc: For Python 3.7 Sphinx 1.6.6 is enough. (GH-11192) 2018-12-23 15:41:55 -05:00
Miss Islington (bot) 7e4e4bd2b8 bpo-35499: make profile-opt don't override CFLAGS_NODIST (GH-11164) (GH-11179)
"make profile-opt" no longer replaces CFLAGS_NODIST with CFLAGS. It
now adds profile-guided optimization (PGO) flags to CFLAGS_NODIST,
existing CFLAGS_NODIST flags are kept.
(cherry picked from commit 640ed520dd)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2018-12-23 15:39:06 -05:00
Miss Islington (bot) a58c8442f1 Document that dict.fromkeys accepts any iterable for keys (GH-10998) (GH-11294)
(cherry picked from commit f06fba5965)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2018-12-22 20:56:01 -08:00
Miss Islington (bot) 48a206978c
bpo-22703: IDLE: Improve Code Context and Zoom Height menu labels (GH-11214)
The Code Context menu label now toggles between Show/Hide Code Context.
 The Zoom Height menu now toggles between Zoom/Restore Height.
 Zoom Height has moved from the Window menu to the Options menu.

https://bugs.python.org/issue22703
(cherry picked from commit c1b4b0f616)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2018-12-21 22:41:50 -08:00
Miss Islington (bot) c046d6b618
bpo-11566: Extension build errors on Windows for _hypot (GH-11283)
This addresses C extension build errors related to an undefined _hypot
symbol when building with the Microsoft Visual C++ Compiler for Python
2.7 [1] or MinGWPy [2]. It also addresses errors when building a C++
extension with MinGWPy and C++11 from cmath, 'error "::hypot' has not
been declared'

[1] https://www.microsoft.com/en-us/download/details.aspx?id=44266
[2] https://mingwpy.github.io/
(cherry picked from commit 87667c54c6)

Co-authored-by: Matt McCormick <matt@mmmccormick.com>
2018-12-21 17:56:58 -08:00
Miss Islington (bot) 97d9d90821
Fix typo in socketserver docstring (GH-11252)
Fix typo in the docstring of `service_actions`.
serve_forver -> serve_forever
(cherry picked from commit 6ded8986e0)

Co-authored-by: Christopher Hunt <chrahunt@gmail.com>
2018-12-21 15:01:34 -08:00
Miss Islington (bot) dd3b04ea8c
Enable signing Windows builds with SHA1 environment variable (GH-11279)
(cherry picked from commit d3bbc52413)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
2018-12-21 14:04:18 -08:00
Miss Islington (bot) c53e5f6ab9 Fixed missing colun in library/sys.po (GH-11153)
GH- Fixed missing colun in library/sys.po

[bpo-35492](https://bugs.python.org/issue35492): Fixed missing colun in library/sys.po
(cherry picked from commit cb0f5e29e3)

Co-authored-by: Jules Lasne (jlasne) <jlasne@student.42.fr>
2018-12-21 13:57:10 -05:00
Miss Islington (bot) aa7922ae79
[3.7] Removed dangling `since Python` at the end of library/xml.rst. (GH-11201) (GH-11231)
(cherry picked from commit 82d73554e4)


Co-authored-by: Jules Lasne (jlasne) <jlasne@student.42.fr>
2018-12-21 10:22:17 -08:00
Miss Islington (bot) 26ab036098
bpo-33830: Fix an example in http.client docs for 404. (GH-7780)
(cherry picked from commit f0af4c54e3)

Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
2018-12-21 07:41:01 -08:00
Miss Islington (bot) d1e7175887
bpo-35259: Limit `Py_FinalizeEx()` to `Py_LIMITED_API >= 0x03060000`. (GH-10620)
(cherry picked from commit 3e8f962e63)

Co-authored-by: Arthur Neufeld <aneufeld@seinesoftware.ca>
2018-12-20 13:39:35 -08:00
Myles Borins c7b7a43cd8 [3.7] bpo-31715 Add mimetype for extension .mjs (GH-3908) (GH-10977)
(cherry picked from commit 0854b92cd2)
2018-12-20 15:26:02 -05:00
Miss Islington (bot) aae2e85af7
bpo-35482: Fixes HTML escaping in CHM index and build location of NEWS file (GH-11224)
(cherry picked from commit afe17a7bee)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
2018-12-20 09:27:12 -08:00
Miss Islington (bot) 5fe170d9c1 Fix mock_open docstring to use readline (GH-11266)
(cherry picked from commit 71f82a2f20)

Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
2018-12-20 16:23:57 +00:00
Victor Stinner 0198f52ea2
bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900) (GH-11264)
When compiling 3rd party C extensions, the linker flags used by the
compiler for the interpreter and the stdlib modules, will get
leaked into distutils. In order to avoid that, the PY_CORE_LDFLAGS
and PY_LDFLAGS_NODIST are introduced to keep those flags separated.

(cherry picked from commit cf10a750f4)
2018-12-20 16:03:01 +01:00
Miss Islington (bot) 5d0498a696
bpo-35521: Add more cross-refs to IDLE docs (GH-11257)
Format menu and preferences.
(cherry picked from commit 292cd6e331)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2018-12-20 03:25:06 -08:00
Miss Islington (bot) 4b6caaca41
bpo-35529: Fix a reference counting bug in PyCFuncPtr_FromDll(). (GH-11229)
"dll" would leak if an error occurred in _validate_paramflags() or
GenericPyCData_new().
(cherry picked from commit d77d97c9a1)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2018-12-20 00:47:59 -08:00
Miss Islington (bot) a26201cd8e
bpo-5438: Update memory requirements and optimize test_bigmem.py. (GH-11123)
(cherry picked from commit b13a20f507)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-12-19 23:52:57 -08:00
Miss Islington (bot) 73fc14d1f8
bpo-18085: Update refcounts.dat. (GH-11247)
Fixed some errors in refcounts.dat, remove functions removed in
Python 3, and add more entries for documented functions. This will
add several automatically generated notes about return values.
(cherry picked from commit 83dd4e87a6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-12-19 23:43:22 -08:00
Terry Jan Reedy 93f5694bb0
[3.7] bpo-34162: Update idlelib/NEWS.txt to 2018-12-20 (GH-11255) (#11256)
Cherry-picked from  87ec110.
2018-12-20 02:12:08 -05:00
Miss Islington (bot) 3f93383127
bpo-35521: IDLE: Add code context section to docs (GH-11205)
Also add some internal cross-references.
(cherry picked from commit 01421bec1e)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2018-12-19 21:59:22 -08:00
Miss Islington (bot) 29d4e309b1
bpo-32077: Update refcounts.dat for Unicode object functions. (GH-11243)
Makes the documentation more comprehensive in terms of indicating
whether or not a function returns a new reference.

Also fixes some errors and adds missing functions.
(cherry picked from commit b2f642ccd2)

Co-authored-by: Mat M <mathew1800@gmail.com>
2018-12-19 12:03:20 -08:00
Miss Islington (bot) e2e6f907fd
Fix documented signatures for C API functions. (GH-11236)
(cherry picked from commit 57dd79e6f7)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-12-19 05:43:29 -08:00