Anthony Sottile
5b94f3578c
Fix `SyntaxError` indicator printing too many spaces for multi-line strings (GH-14433)
2019-07-29 14:59:13 +01:00
Steve Dower
e1b9002472
bpo-36044: Avoid warnings in Windows PGO build and add lzma, bz2 and sqlite coverage (GH-14985)
...
https://bugs.python.org/issue36044
Automerge-Triggered-By: @zooba
2019-07-28 18:01:12 -07:00
Jason R. Coombs
049460da9c
bpo-37697: Sync with importlib_metadata 0.19 ( #14993 )
...
* bpo-37697: Sync with importlib_metadata 0.19
* Run make regen-importlib
* 📜 🤖 Added by blurb_it.
2019-07-28 14:59:24 -04:00
Terry Jan Reedy
b222955355
bpo-37692: Improve highlight config sample ( #14983 )
...
Use an example shell interaction in the sample and better labels for shell elements.
2019-07-28 12:04:31 -04:00
Nick Coghlan
17a058ed6f
Remove trailing .0 from version changed note (GH-14987)
2019-07-28 21:40:47 +10:00
Raymond Hettinger
6b5f1b496f
bpo-37691: Let math.dist() accept sequences and iterables for coordinates (GH-14975)
2019-07-27 14:04:29 -07:00
Tal Einat
3221a63c69
bpo-37628: Fix IDLE config sample sizes ( #14958 )
...
The boxes for the font and highlight samples are now constrained by the overall config dialog size. They gain scrollbars when the when a large font size makes the samples too large for the box.
2019-07-27 12:57:48 -04:00
Vinay Sajip
1ed915e8ae
Add Qt GUI example to the logging cookbook. (GH-14978)
2019-07-27 13:46:53 +01:00
Tal Einat
46ebd4a6a2
bpo-17535: Increase line number horizontal padding by 2 pixels (GH-14959)
2019-07-26 23:24:36 -04:00
Derek Keeler
91e4957509
bpo-32910: Remove implementation detail in venv documentation. (GH-14968)
2019-07-26 14:57:11 -07:00
Steve Dower
9d9893a1c8
bpo-35524: Update Windows installer image in docs (GH-14966)
2019-07-26 13:03:58 -07:00
Steve Dower
b1eb20e68e
bpo-37664: Update regex for ignoring cache warning on some buildbots (GH-14960)
2019-07-26 09:06:04 -07:00
Inada Naoki
3e54b57531
bpo-37340: remove free_list for bound method objects (GH-14232)
2019-07-26 15:05:50 +09:00
Flavian Hautbois
76b645124b
bpo-29446: tkinter 'import *' only imports what it should (GH-14864)
...
Add __all__ to tkinter.__init__ and submodules. Replace 'import *'
with explicit imports in some submodules.
2019-07-25 21:30:33 -04:00
Bill Collins
c4cda4369f
bpo-37641 preserve relative file location in embeddable zip (GH-14884)
...
Previously, pyc files in the embeddable distribution reported their
location as <build path>/<file stem>.py. This causes a little confusion
when interpreting stack traces as the file is in a (almost certainly)
incorrect location, and lacks the full relative path to Lib (e.g.
email/mime/image.py will only show image.py).
This change preserves the Lib relative location of the source file as a
path so that stack traces are (hopefully) less misleading and more
informative.
Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
2019-07-25 14:36:58 -07:00
Tzu-ping Chung
544fa15ea1
Swap 'if' branches so content matches to condition in importlib example (GH-14947)
...
Prior to this change the guard on an 'elif' used an assignment expression whose value was used in a later 'else' block, causing some confusion for people.
(Discussion on Twitter: https://twitter.com/brettsky/status/1153861041068994566 .)
Automerge-Triggered-By: @brettcannon
2019-07-25 10:20:33 -07:00
Markus Mohrhard
898318b53d
bpo-37502: handle default parameter for buffers argument of pickle.loads correctly (GH-14593)
2019-07-25 18:00:34 +02:00
Benjamin Peterson
93e8aa62cf
closes bpo-37675: Use pkgutil.iter_modules to find fixers in a package rather than listdir. (14942)
2019-07-24 16:38:50 -07:00
Steve Dower
123536fdab
bpo-37672: Switch Windows Store package to use pip.ini for user mode (GH-14939)
2019-07-24 15:13:22 -07:00
Hansraj Das
e018dc52d1
Remove duplicate call to strip method in Parser/pgen/token.py (GH-14938)
2019-07-24 21:31:19 +01:00
Pradyun Gedam
5380def826
bpo-37664: Update bundled pip to 19.2.1 and setuptools to 41.0.1 (GH-14934)
2019-07-24 12:08:02 -07:00
Stefan Behnel
a3697db010
bpo-34160: explain how to deal with attribute order in ElementTree (GH-14867)
...
* Fix the formatting in the documentation of the tostring() functions.
* bpo-34160: Document that the tostring() and tostringlist() functions also preserve the attribute order now.
* bpo-34160: Add an explanation of how users should deal with the attribute order.
2019-07-24 20:22:50 +02:00
Stefan Behnel
c6cb4cdd21
bpo-37399: Correctly attach tail text to the last element/comment/pi (GH-14856)
...
* bpo-37399: Correctly attach tail text to the last element/comment/pi, even when comments or pis are discarded.
Also fixes the insertion of PIs when "insert_pis=True" is configured for a TreeBuilder.
2019-07-24 20:08:02 +02:00
Jeroen Demeyer
151b91dfd2
bpo-29548: deprecate PyEval_Call* functions (GH-14804)
2019-07-24 21:02:49 +09:00
Gregory P. Smith
e95ac20103
bpo-37667: Add regression test for regrtest. (GH-14929)
...
Verify that it appears to find roughly the right number of tests in the stdlib's testsuite.
2019-07-23 22:28:48 -07:00
Gregory P. Smith
f0807ab24c
Only setup PGO tests when --pgo is enabled. (GH-14927)
2019-07-23 21:33:48 -07:00
Brett Cannon
2f224a077a
Touch up venv docs (GH-14922)
2019-07-23 14:34:32 -07:00
Terry Jan Reedy
c6fd6c83b7
bpo-29446: IDLE -- add explicit imports (GH-14919)
...
Stop depending on tkinter import *.
2019-07-23 16:14:59 -04:00
Erlend Egeberg Aasland
387c3c5a04
bpo-37653: Fix libinstall target in Makefile (GH-14911)
2019-07-23 18:11:50 +02:00
Tal Einat
7123ea009b
bpo-17535: IDLE editor line numbers (GH-14030)
2019-07-23 15:22:11 +03:00
Tal Einat
1ebee37dde
bpo-33610: validate non-negative integer inputs in IDLE's config (GH-14822)
2019-07-23 13:02:11 +03:00
Neil Schemenauer
4e16a4a311
bpo-36044: Reduce number of unit tests run for PGO build (GH-14702)
...
Reduce the number of unit tests run for the PGO generation task. This
speeds up the task by a factor of about 15x. Running the full unit test
suite is slow. This change may result in a slightly less optimized build
since not as many code branches will be executed. If you are willing to
wait for the much slower build, the old behavior can be restored using
'./configure [..] PROFILE_TASK="-m test --pgo-extended"'. We make no
guarantees as to which PGO task set produces a faster build. Users who
care should run their own relevant benchmarks as results can depend on
the environment, workload, and compiler tool chain.
2019-07-22 12:54:25 -07:00
Vinay Sajip
d309352c6f
Update logging cookbook to show multiple worker processes using the concurrent.futures module. ( #14905 )
2019-07-22 12:14:50 +01:00
Xtreak
7397cda997
bpo-21478: Record calls to parent when autospecced objects are used as child with attach_mock (GH 14688)
...
* Clear name and parent of mock in autospecced objects used with attach_mock
* Add NEWS entry
* Fix reversed order of comparison
* Test child and standalone function calls
* Use a helper function extracting mock to avoid code duplication and refactor tests.
2019-07-22 08:38:22 +01:00
Raymond Hettinger
b530a4460b
Add examples to elucidate the formulas (GH-14898)
2019-07-21 16:32:00 -07:00
Terry Jan Reedy
4214f1ec3b
bpo-37627: Add acknowledgment ( #14883 )
2019-07-21 16:26:24 -04:00
Min ho Kim
96e12d5f4f
Fix typos in docs, comments and test assert messages ( #14872 )
2019-07-21 16:12:33 -04:00
Terry Jan Reedy
8e3a7380ec
Fix typo found by Min ho Kim ( #14879 )
2019-07-21 15:24:45 -04:00
Raymond Hettinger
1c0e9bb94b
Minor whitespace, indentation, and quoting changes to improve internal consistency and appease linters (GH-14888)
2019-07-21 12:13:07 -07:00
Ned Deily
22f0483d44
Bpo-37644: update suspicious.csv for distutils/examples (GH-14885)
2019-07-21 20:01:56 +02:00
Ngalim Siregar
35b87e6001
bpo-37627: Initialize IDLE Custom Run dialog with previous entries ( #14870 )
...
Repeat the command line arguments most recently entered before so the user can edit them.
2019-07-21 11:37:28 -04:00
Raymond Hettinger
02c91f59b6
bpo-36324: Make internal attributes for statistics.NormalDist() private. (GH-14871)
...
* Make internals private
* Finish making mu and sigma private
* Add missing __hash__() method
* Add blurb
2019-07-21 00:34:47 -07:00
Hai Shi
5623ac87bb
bpo-37476: Adding tests for asutf8 and asutf8andsize (GH-14531)
2019-07-20 15:56:23 +08:00
Raymond Hettinger
eed5e9a956
bpo-36546: Clean-up comments (GH-14857)
2019-07-19 01:57:22 -07:00
Raymond Hettinger
8dbe563aa6
bpo-37624: Document weight assumptions for random.choices() (GH-14855)
2019-07-19 01:56:42 -07:00
Zackery Spytz
d395209653
bpo-37547: Fix a compiler warning in winconsoleio.c (GH-14785)
...
The compiler warning was introduced in
59ad110d7a
.
2019-07-19 15:07:06 +09:00
aldwinaldwin
8f040b7a9f
bpo-37610: improve Using Python doc wrt Editors & IDE (GH-14850)
...
Move the Editors and IDE section out of the Unix section, to its own section.
https://bugs.python.org/issue37610
2019-07-18 18:23:17 -07:00
Tal Einat
e0a1f8fb5c
bpo-33610: IDLE's code-context always shows current context immediately (GH-14821)
...
Eliminate delay of up to 100ms and accompanying visual artifact.
Fix bug of never showing context when hide and show.
2019-07-18 16:03:18 -04:00
Walter Dörwald
323842c279
bpo-34443: Use __qualname__ instead of __name__ in enum exception messages. (GH-14809)
...
* Use __qualname__ instead of __name__ in enum exception messages.
2019-07-18 11:37:13 -07:00
Sergey Fedoseev
af2f5b1723
Adjust builtins.zip() docstring to better communicate its signature (GH-14833)
2019-07-18 11:19:25 -07:00