summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos in comments, docs and test names (#15018)Min ho Kim2019-07-309-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | * Fix typos in comments, docs and test names * Update test_pyparse.py account for change in string length * Apply suggestion: splitable -> splittable Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu> * Apply suggestion: splitable -> splittable Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu> * Apply suggestion: Dealloccte -> Deallocate Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu> * Update posixmodule checksum. * Reverse idlelib changes.
* bpo-37707: Exclude expensive unit tests from PGO task (GH-15009)Neil Schemenauer2019-07-301-0/+3
| | | | | Mark some individual tests to skip when --pgo is used. The tests marked increase the PGO task time significantly and likely don't help improve optimization of the final executable.
* bpo-37704: Remove Tools/scripts/h2py.py (GH-15000)Victor Stinner2019-07-301-0/+1
| | | Use cffi to access a C API in Python.
* bpo-37587: Make json.loads faster for long strings (GH-14752)Marco Paolini2019-07-301-0/+1
| | | | | | | | | | When scanning the string, most characters are valid, so checking for invalid characters first means never needing to check the value of strict on valid strings, and only needing to check it on invalid characters when doing non-strict parsing of invalid strings. This provides a measurable reduction in per-character processing time (~11% in the pre-merge patch testing).
* bpo-37268: Add deprecation notice and a DeprecationWarning for the parser ↵Pablo Galindo2019-07-301-0/+2
| | | | | | | | | | | | | | | module (GH-15017) Deprecate the parser module and add a deprecation warning triggered on import and a warning block in the documentation. https://bugs.python.org/issue37268 Automerge-Triggered-By: @pablogsal
* Fix `SyntaxError` indicator printing too many spaces for multi-line strings ↵Anthony Sottile2019-07-291-0/+1
| | | | (GH-14433)
* bpo-37697: Sync with importlib_metadata 0.19 (#14993)Jason R. Coombs2019-07-281-0/+1
| | | | | | | | * bpo-37697: Sync with importlib_metadata 0.19 * Run make regen-importlib * 📜🤖 Added by blurb_it.
* bpo-37692: Improve highlight config sample (#14983)Terry Jan Reedy2019-07-281-0/+2
| | | Use an example shell interaction in the sample and better labels for shell elements.
* bpo-37691: Let math.dist() accept sequences and iterables for coordinates ↵Raymond Hettinger2019-07-271-0/+2
| | | | (GH-14975)
* bpo-37628: Fix IDLE config sample sizes (#14958)Tal Einat2019-07-271-0/+1
| | | | 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.
* bpo-32910: Remove implementation detail in venv documentation. (GH-14968)Derek Keeler2019-07-261-0/+1
|
* bpo-37340: remove free_list for bound method objects (GH-14232)Inada Naoki2019-07-261-0/+3
|
* bpo-29446: tkinter 'import *' only imports what it should (GH-14864)Flavian Hautbois2019-07-262-0/+2
| | | | Add __all__ to tkinter.__init__ and submodules. Replace 'import *' with explicit imports in some submodules.
* bpo-37502: handle default parameter for buffers argument of pickle.loads ↵Markus Mohrhard2019-07-251-0/+1
| | | | correctly (GH-14593)
* closes bpo-37675: Use pkgutil.iter_modules to find fixers in a package ↵Benjamin Peterson2019-07-241-0/+1
| | | | rather than listdir. (14942)
* bpo-37672: Switch Windows Store package to use pip.ini for user mode (GH-14939)Steve Dower2019-07-241-0/+2
|
* bpo-37664: Update bundled pip to 19.2.1 and setuptools to 41.0.1 (GH-14934)Pradyun Gedam2019-07-241-0/+1
|
* bpo-29548: deprecate PyEval_Call* functions (GH-14804)Jeroen Demeyer2019-07-241-0/+3
|
* bpo-17535: IDLE editor line numbers (GH-14030)Tal Einat2019-07-231-0/+4
|
* bpo-36044: Reduce number of unit tests run for PGO build (GH-14702)Neil Schemenauer2019-07-221-0/+9
| | | | | | | | | | | | 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.
* bpo-21478: Record calls to parent when autospecced objects are used as child ↵Xtreak2019-07-221-0/+2
| | | | | | | | | | | | | | 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.
* 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-215-5/+5
|
* bpo-37627: Initialize IDLE Custom Run dialog with previous entries (#14870)Ngalim Siregar2019-07-211-0/+3
| | | 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-211-0/+1
| | | | | | | | | | | | (GH-14871) * Make internals private * Finish making mu and sigma private * Add missing __hash__() method * Add blurb
* bpo-33610: IDLE's code-context always shows current context immediately ↵Tal Einat2019-07-181-0/+1
| | | | | | | (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-181-0/+2
| | | | | (GH-14809) * Use __qualname__ instead of __name__ in enum exception messages.
* bpo-36390: Gather IDLE Format menu functions into format.py (#14827)Terry Jan Reedy2019-07-181-2/+2
| | | | | | 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-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | 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-171-0/+2
| | | | 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-171-0/+2
| | | | | | | | | | (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-171-0/+2
| | | | | 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-171-0/+1
| | | | | | 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-171-0/+3
| | | | | | | | | | | * 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
* bpo-27452: IDLE: Cleanup config.py code (GH-14577)Cheryl Sabella2019-07-161-0/+1
|
* Fix infinite loop in email folding logic (GH-12732)Paul Ganssle2019-07-161-0/+3
| | | | | | | | | | 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-37468: make install no longer install wininst-*.exe files (GH-14511)Victor Stinner2019-07-151-0/+2
| | | | 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-151-0/+1
| | | | | | | | | Add a brief note to indicate that any new required attributes must go through the PEP process. https://bugs.python.org/issue37284
* bpo-37593: Swap the positions of posonlyargs and args in the constructor of ↵Pablo Galindo2019-07-141-0/+2
| | | | | ast.parameters nodes (GH-14778) https://bugs.python.org/issue37593
* bpo-34749: Improved performance of binascii.a2b_base64(). (GH-9444)Sergey Fedoseev2019-07-141-0/+2
| | | https://bugs.python.org/issue34749
* bpo-26967: fix flag grouping with allow_abbrev=False (GH-14316)Zac Hatfield-Dodds2019-07-142-0/+4
| | | | | | | | | | | 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
* bpo-30088: Document that existing dir structure isn't verified by ↵Sviatoslav Sydorenko2019-07-132-0/+2
| | | | | | | | | | | | | | | | | | | | | 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
* bpo-37358: Use vectorcall for functools.partial (GH-14284)Jeroen Demeyer2019-07-131-0/+1
| | | https://bugs.python.org/issue37358
* bpo-37548: Document range of atan, acos and asin (GH-14717)Giovanni Cappellotto2019-07-131-0/+1
|
* bpo-37579: Improve equality behavior for pure Python datetime and time ↵Xtreak2019-07-131-0/+4
| | | | | | | | | | (GH-14726) Returns NotImplemented for timedelta and time in __eq__ for different types in Python implementation, which matches the C implementation. This also adds tests to enforce that these objects will fall back to the right hand side's __eq__ and/or __ne__ implementation. bpo-37579
* bpo-28269: Replace strcasecmp with system function _stricmp. (GH-13095)Minmin Gong2019-07-131-0/+1
|
* closes bpo-37347: Fix refcount problem in sqlite3. (GH-14268)gescheit2019-07-132-0/+7
|
* bpo-37521: No longer treat insertion into sys.modules as optional in ↵Brett Cannon2019-07-121-0/+5
| | | | | | | | | | importlib examples (GH-14723) Fix importlib examples to insert any newly created modules via importlib.util.module_from_spec() immediately into sys.modules instead of after calling loader.exec_module(). Thanks to Benjamin Mintz for finding the bug. https://bugs.python.org/issue37521
* bpo-37558: Shared memory tests are failing due to double slashes (GH-14703)Jakub Kulík2019-07-111-0/+1
| | | | | | With the addition of shared memory into Python 3.8, we now have three tests failing on Solaris, namely `test_multiprocessing_fork`, `test_multiprocessing_forkserver` and `test_multiprocessing_spawn`. The reason seems to be incorrect name handling which results in two slashes being prepended. https://bugs.python.org/issue37558
* bpo-37547: add _PyObject_CallMethodOneArg (GH-14685)Jeroen Demeyer2019-07-111-2/+2
|