- 17 Jul, 2019 4 commits
-
-
Cheryl Sabella authored
Rename paragraph.py to format.py and add region formatting methods from editor.py. Add tests for the latter.
-
Inada Naoki authored
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.
-
Tal Einat authored
* 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
-
Joseph Fox-Rabinovitz authored
-
- 16 Jul, 2019 5 commits
-
-
Cheryl Sabella authored
-
Paul Ganssle authored
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
-
sgal authored
* 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
-
Ilya Kamenshchikov authored
-
David Jones authored
Replace backquotes with POSIXy command substitution in example.
-
- 15 Jul, 2019 3 commits
-
-
Victor Stinner authored
make install no longer installs "wininst-*.exe" files used by distutils bdist_wininst: bdist_wininst only works on Windows.
-
Giovanni Cappellotto authored
Add a brief note to indicate that any new required attributes must go through the PEP process. https://bugs.python.org/issue37284
-
Pablo Galindo authored
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
-
- 14 Jul, 2019 10 commits
-
-
Pablo Galindo authored
bpo-37593: Swap the positions of posonlyargs and args in the constructor of ast.parameters nodes (GH-14778) https://bugs.python.org/issue37593
-
Victor Stinner authored
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.
-
-
Collin Styles authored
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
-
Paul Monson authored
-
Hai Shi authored
-
Steve Dower authored
-
Michele Angrisano authored
Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
-
Carl Bordum Hansen authored
-
Zac Hatfield-Dodds authored
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
😄 And this is my first PR to CPython, so please let me know if I've missed anything! https://bugs.python.org/issue26967
-
- 13 Jul, 2019 10 commits
-
-
Mark Dickinson authored
-
Sviatoslav Sydorenko authored
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
-
-
Giovanni Cappellotto authored
-
Xtreak authored
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
-
Minmin Gong authored
-
Milan Oberkirch authored
[bpo-37580](https://bugs.python.org/issue37580): Markup typo in http.cookiejar doc https://bugs.python.org/issue37580
-
Steve Dower authored
-
Robert DiPietro authored
-
gescheit authored
-
- 12 Jul, 2019 3 commits
-
-
Brett Cannon authored
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
-
Kyle Stanley authored
Move `threaded_import_hangers`, a dependency of `test_threaded_import`, to the directory `test_importlib/`. Also update the import references for `threaded_import_hangers` in `test_threaded_import`. https://bugs.python.org/issue19696
-
Hai Shi authored
-
- 11 Jul, 2019 5 commits
-
-
Disconnect3d authored
The `arraymodule`'s `b_getitem` function returns a `PyLong` converted from `arrayobject`'s array, by dereferencing a pointer to `char`. When the `char` type is `signed char`, the `if (x >= 128) x -= 256;` comparison/code is redundant because a `signed char` will have a value of `[-128, 127]` and so `x` will never be greater or equal than 128. This check was indeed needed for situations where a given compiler would assume `char` being `unsigned char` which would make `x` in `[0, 256]` range. However, the check can be removed if we cast the `ob_item` into a signed char pointer (`signed char*`) instead of `char*`. This PR/commit introduces this change.
-
Jakub Kulík authored
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
-
-
Jeroen Demeyer authored
-
Tal Einat authored
-