- 14 Jul, 2019 2 commits
-
-
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 8 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
-
Tal Einat authored
-
Jeroen Demeyer authored
-
Benjamin Peterson authored
-
- 10 Jul, 2019 4 commits
-
-
Tim Peters authored
uintptr_t is an integer type, and can't be compared to NULL directly.
-
Neil Schemenauer authored
Keeping an account of allocated blocks slows down _PyObject_Malloc() and _PyObject_Free() by a measureable amount. Have _Py_GetAllocatedBlocks() iterate over the arenas to sum up the allocated blocks for pymalloc.
-
Stefan Krah authored
-
Stefan Krah authored
-
- 09 Jul, 2019 8 commits
-
-
Terry Jan Reedy authored
After fcf1d003, IDLE startup failed with python compiled without docstrings.
-
Hai Shi authored
-
Victor Stinner authored
test_ssl.test_pha_required_nocert() now uses support.catch_threading_exception() to ignore the expected SSLError in ConnectionHandler of ThreadedEchoServer (it is only raised sometimes on Windows).
-
Carl Friedrich Bolz-Tereick authored
-
Victor Stinner authored
This reverts commit cf9c41c4.
-
Victor Stinner authored
Replace PyLong_FromLong() with PyLong_FromSize_t(): SSL_CTX_get_num_tickets() return type is size_t. https://bugs.python.org/issue37120
-
Victor Stinner authored
Context manager catching threading.Thread exception using threading.excepthook.
-
Victor Stinner authored
Close the TLS connection in test_pha_required_nocert() of test_ssl to fix a ResourceWarning.
-
- 08 Jul, 2019 5 commits
-
-
Carl Friedrich Bolz-Tereick authored
Nested BinOp instances (e.g. a+b+c) had a wrong col_offset for the second BinOp (e.g. 2 instead of 0 in the example). Fix it by using the correct st node to copy the line and col_offset from in ast.c.
-
Julien Palard authored
-
Julien Palard authored
Initial report by Michael Blankenship on docs@
-
Victor Stinner authored
test_concurrent_futures now explicitly stops the ForkServer instance if it's running.
-
Jeroen Demeyer authored
-