summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-17535: IDLE editor line numbers (GH-14030)Tal Einat2019-07-2318-80/+891
|
* bpo-33610: validate non-negative integer inputs in IDLE's config (GH-14822)Tal Einat2019-07-231-7/+31
|
* bpo-36044: Reduce number of unit tests run for PGO build (GH-14702)Neil Schemenauer2019-07-227-4/+96
| | | | | | | | | | | | 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.
* Update logging cookbook to show multiple worker processes using the ↵Vinay Sajip2019-07-221-0/+35
| | | | concurrent.futures module. (#14905)
* bpo-21478: Record calls to parent when autospecced objects are used as child ↵Xtreak2019-07-223-11/+55
| | | | | | | | | | | | | | 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.
* Add examples to elucidate the formulas (GH-14898)Raymond Hettinger2019-07-211-6/+10
|
* bpo-37627: Add acknowledgment (#14883)Terry Jan Reedy2019-07-211-0/+1
|
* Fix typos in docs, comments and test assert messages (#14872)Min ho Kim2019-07-2121-24/+24
|
* Fix typo found by Min ho Kim (#14879)Terry Jan Reedy2019-07-211-1/+1
|
* Minor whitespace, indentation, and quoting changes to improve internal ↵Raymond Hettinger2019-07-211-53/+74
| | | | consistency and appease linters (GH-14888)
* Bpo-37644: update suspicious.csv for distutils/examples (GH-14885)Ned Deily2019-07-211-1/+1
|
* bpo-37627: Initialize IDLE Custom Run dialog with previous entries (#14870)Ngalim Siregar2019-07-214-10/+22
| | | Repeat the command line arguments most recently entered before so the user can edit them.
* bpo-36324: Make internal attributes for statistics.NormalDist() private. ↵Raymond Hettinger2019-07-213-49/+56
| | | | | | | | | | | | (GH-14871) * Make internals private * Finish making mu and sigma private * Add missing __hash__() method * Add blurb
* bpo-37476: Adding tests for asutf8 and asutf8andsize (GH-14531)Hai Shi2019-07-202-0/+72
|
* bpo-36546: Clean-up comments (GH-14857)Raymond Hettinger2019-07-191-9/+3
|
* bpo-37624: Document weight assumptions for random.choices() (GH-14855)Raymond Hettinger2019-07-191-1/+2
|
* bpo-37547: Fix a compiler warning in winconsoleio.c (GH-14785)Zackery Spytz2019-07-191-1/+1
| | | | The compiler warning was introduced in 59ad110d7a7784d53d0b502eebce0346597a6bef.
* bpo-37610: improve Using Python doc wrt Editors & IDE (GH-14850)aldwinaldwin2019-07-193-11/+15
| | | | | | Move the Editors and IDE section out of the Unix section, to its own section. https://bugs.python.org/issue37610
* bpo-33610: IDLE's code-context always shows current context immediately ↵Tal Einat2019-07-183-7/+22
| | | | | | | (GH-14821) Eliminate delay of up to 100ms and accompanying visual artifact. Fix bug of never showing context when hide and show.
* bpo-34443: Use __qualname__ instead of __name__ in enum exception messages. ↵Walter Dörwald2019-07-183-10/+13
| | | | | (GH-14809) * Use __qualname__ instead of __name__ in enum exception messages.
* Adjust builtins.zip() docstring to better communicate its signature (GH-14833)Sergey Fedoseev2019-07-181-1/+1
|
* bpo-37552: Skip failing tests in strptime/strftime with UCRT version ↵Paul Monson2019-07-183-1/+32
| | | | | 17763.615 (#14460) A bug in MSVC UCRT version 17763.615 (which has been fixed in newer versions) is causing test failures in some strptime/strftime tests when the default code page is c65001. This change selectively skips the tests affected by this.
* bpo-36390: Gather IDLE Format menu functions into format.py (#14827)Terry Jan Reedy2019-07-186-116/+114
| | | | | | Add two indent spec methods from editor and Rstrip to existing file. Tests are not added for indent methods because they need change in lights of 3.x's prohibition on mixing tabs and spaces.
* bpo-34155: Dont parse domains containing @ (GH-13079)jpic2019-07-175-1/+37
| | | | | | | | | | | | | | | | | | | | | | Before: >>> email.message_from_string('From: a@malicious.org@important.com', policy=email.policy.default)['from'].addresses (Address(display_name='', username='a', domain='malicious.org'),) >>> parseaddr('a@malicious.org@important.com') ('', 'a@malicious.org') After: >>> email.message_from_string('From: a@malicious.org@important.com', policy=email.policy.default)['from'].addresses (Address(display_name='', username='', domain=''),) >>> parseaddr('a@malicious.org@important.com') ('', 'a@') https://bugs.python.org/issue34155
* Fix IndexError when parsing unexpectedly ending quoted-string. (GH-14813)Abhilash Raj2019-07-173-1/+7
| | | | This exception was caused because the input ended unexpectedly with only one single quote instead of a pair with some value inside it.
* bpo-37461: Fix infinite loop in parsing of specially crafted email headers ↵Abhilash Raj2019-07-173-0/+12
| | | | | | | | | | (GH-14794) * bpo-37461: Fix infinite loop in parsing of specially crafted email headers. Some crafted email header would cause the get_parameter method to run in an infinite loop causing a DoS attack surface when parsing those headers. This patch fixes that by making sure the DQUOTE character is handled to prevent going into an infinite loop.
* bpo-36390: IDLE: Combine region formatting methods. (GH-12481)Cheryl Sabella2019-07-177-327/+589
| | | | | Rename paragraph.py to format.py and add region formatting methods from editor.py. Add tests for the latter.
* bpo-37543: optimize pymalloc (#14674)Inada Naoki2019-07-172-218/+227
| | | | | | PyObject_Malloc() and PyObject_Free() inlines pymalloc_alloc and pymalloc_free partially. But when PGO is not used, compiler don't know where is the hot part in pymalloc_alloc and pymalloc_free.
* bpo-37530: simplify, optimize and clean up IDLE code context (GH-14675)Tal Einat2019-07-175-99/+140
| | | | | | | | | | | * Only create CodeContext instances for "real" editors windows, but not e.g. shell or output windows. * Remove configuration update Tk event fired every second, by having the editor window ask its code context widget to update when necessary, i.e. upon font or highlighting updates. * When code context isn't being shown, avoid having a Tk event fired every 100ms to check whether the code context needs to be updated. * Use the editor window's getlineno() method where applicable. * Update font of the code context widget before the main text widget
* Docs: Correct formatting of a multiline code block (GH-13806)Joseph Fox-Rabinovitz2019-07-171-2/+4
|
* bpo-27452: IDLE: Cleanup config.py code (GH-14577)Cheryl Sabella2019-07-163-39/+10
|
* Fix infinite loop in email folding logic (GH-12732)Paul Ganssle2019-07-164-6/+35
| | | | | | | | | | As far as I can tell, this infinite loop would be triggered if: 1. The value being folded contains a single word (no spaces) longer than max_line_length 2. The max_line_length is shorter than the encoding's name + 9 characters. bpo-36564: https://bugs.python.org/issue36564
* bpo-37599: Remove a vague statement in documentation of Integer Objects (#14786)sgal2019-07-161-3/+1
| | | | | | | | | | | | | | | | * Remove a vague statement in documentation * Remove another vague sentence A sentence starting with "So it should be possible..." shouldn't be in the docs either. Co-Authored-By: Kyle Stanley <aeros167@gmail.com> * Include the removal of the previous line Co-Authored-By: Kyle Stanley <aeros167@gmail.com> * Remove an extra space
* bpo-37352: Minor word-smithing for design.rst (GH #14730)Ilya Kamenshchikov2019-07-161-5/+5
|
* Replace backquote with command substitution in subprocess doc example (GH-13941)David Jones2019-07-162-7/+5
| | | Replace backquotes with POSIXy command substitution in example.
* bpo-37468: make install no longer install wininst-*.exe files (GH-14511)Victor Stinner2019-07-152-0/+5
| | | | make install no longer installs "wininst-*.exe" files used by distutils bdist_wininst: bdist_wininst only works on Windows.
* bpo-37284: Add note to sys.implementation doc (GH-14328)Giovanni Cappellotto2019-07-152-0/+5
| | | | | | | | | Add a brief note to indicate that any new required attributes must go through the PEP process. https://bugs.python.org/issue37284
* bpo-37500: Make sure dead code does not generate bytecode but also detect ↵Pablo Galindo2019-07-154-18/+174
| | | | | | | | | | | | syntax errors (GH-14612) https://bugs.python.org/issue37500 Add a new field to the compiler structure that allows to be configured so no bytecode is emitted. In this way is possible to detect errors by walking the nodes while preserving optimizations. https://bugs.python.org/issue37500
* bpo-37593: Swap the positions of posonlyargs and args in the constructor of ↵Pablo Galindo2019-07-148-164/+168
| | | | | ast.parameters nodes (GH-14778) https://bugs.python.org/issue37593
* bpo-37473: Don't import importlib ASAP in tests (GH-14661)Victor Stinner2019-07-143-15/+7
| | | | | | | | | bpo-15386, bpo-37473: test_import, regrtest and libregrtest no longer import importlib as soon as possible, as the first import, "to test bpo-15386". It is tested by test_import.test_there_can_be_only_one(). Sort test_import imports.
* bpo-34749: Improved performance of binascii.a2b_base64(). (GH-9444)Sergey Fedoseev2019-07-142-86/+58
| | | https://bugs.python.org/issue34749
* Clarify that plistlib's load and dump functions take a binary file object ↵Collin Styles2019-07-141-3/+3
| | | | | | | | | | | (GH-9825) The documentation says that the fp parameter to plistlib.load "should be a readable and binary file object" but the docstring only mentions that it should be readable. Similarly, plistlib.dump's docstring only mentions "writable". This commit clarifies that fp should also be binary. https://docs.python.org/3/library/plistlib.html#plistlib.load https://docs.python.org/3/library/plistlib.html#plistlib.dump
* bpo-37553: SendfileUsingSendTest tests timeout too short for Windows ARM32 ↵Paul Monson2019-07-141-1/+2
| | | | (GH-14716)
* Remove redundant docs of PyEval_EvalFrameEx (GH-14765)Hai Shi2019-07-141-6/+6
|
* bpo-37571: Remove extra space in ctypes docs (GH14764)Steve Dower2019-07-141-1/+1
|
* bpo-37571: Add 'b' to prevent the TypeError exception. (GH-14721)Michele Angrisano2019-07-141-3/+8
| | | | Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
* bpo-36261: Improve example of the preamble field in email docs (GH-14751)Carl Bordum Hansen2019-07-141-1/+1
|
* bpo-26967: fix flag grouping with allow_abbrev=False (GH-14316)Zac Hatfield-Dodds2019-07-145-1/+28
| | | | | | | | | | | The `allow_abbrev` option for ArgumentParser is documented and intended to disable support for unique prefixes of --options, which may sometimes be ambiguous due to deferred parsing. However, the initial implementation also broke parsing of grouped short flags, such as `-ab` meaning `-a -b` (or `-a=b`). Checking the argument for a leading `--` before rejecting it fixes this. This was prompted by pytest-dev/pytest#5469, so a backport to at least 3.8 would be great :smile: And this is my first PR to CPython, so please let me know if I've missed anything! https://bugs.python.org/issue26967
* Fix inconsequential typo in math.remainder algorithm comments. (#14746)Mark Dickinson2019-07-131-1/+1
|
* bpo-30088: Document that existing dir structure isn't verified by ↵Sviatoslav Sydorenko2019-07-133-0/+5
| | | | | | | | | | | | | | | | | | | | | mailbox.Maildir (GH-1163) Hi, I've faced an issue w/ `mailbox.Maildir()`. The case is following: 1. I create a folder with `tempfile.TemporaryDirectory()`, so it's empty 2. I pass that folder path as an argument when instantiating `mailbox.Maildir()` 3. Then I receive an exception happening because "there's no such file or directory" (namely `cur`, `tmp` or `new`) during interaction with Maildir **Expected result:** subdirs are created during `Maildir()` instance creation. **Actual result:** subdirs are assumed as existing which leads to exceptions during use. **Workaround:** remove the actual dir before passing the path to `Maildir()`. It will be created automatically with all subdirs needed. **Fix:** This PR. Basically it adds creation of subdirs regardless of whether the base dir existed before. https://bugs.python.org/issue30088