summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-37251: Removes __code__ check from _is_async_obj. (GH-15830)Lisa Roach2019-09-103-3/+20
|
* bpo-38069: Convert _posixsubprocess to PEP-384 (GH-15780)Dino Viehland2019-09-102-8/+59
| | | | | | | | | | Summary: Eliminate uses of `_Py_IDENTIFIER` from `_posixsubprocess`, replacing them with interned strings. Also tries to find an existing version of the module, which will allow subinterpreters. https://bugs.python.org/issue38069
* bpo-36373: Deprecate explicit loop parameter in all public asyncio APIs ↵Emmanuel Arias2019-09-107-265/+419
| | | | | | | | | | | | | | | [locks] (GH-13920) This PR deprecate explicit loop parameters in all public asyncio APIs This issues is split to be easier to review. Third step: locks.py https://bugs.python.org/issue36373
* bpo-36971: add subsections in C API "Common Object Structures" page (#13446)Jeroen Demeyer2019-09-101-0/+10
|
* bpo-38068: Clean up gettimeofday configure logic. (GH-15775)Benjamin Peterson2019-09-105-59/+1
| | | Assume gettimeofday exists and takes two arguments.
* bpo-37052: Add examples for mocking async iterators and context managers ↵Xtreak2019-09-101-0/+39
| | | | | | | | (GH-14660) Add examples for mocking asynchronous iterators and asynchronous context managers. https://bugs.python.org/issue37052
* bpo-38071: Make termios PEP-384 compatible (GH-15785)Dino Viehland2019-09-102-20/+48
| | | | Make the termios module PEP-384 compatible.
* bpo-38072: PEP-384 grpmodule (GH-15788)Dino Viehland2019-09-102-19/+41
| | | | Make the grp module PEP-384 compliant.
* Fix calling order of PyEval_InitThreads. (GH-4602)Kenta Murata2019-09-101-1/+1
| | | | As described in Doc/c-api/init.rst, PyEval_InitThreads() cannot be called before Py_Initialize() function.
* Remove macOS tests from Travis. (GH-15809)Benjamin Peterson2019-09-101-10/+0
| | | Azure runs macOS, so we don't need Travis to do it.
* Skip zoneinfo tests on VxWorks (#13535)hliu02019-09-102-0/+3
|
* bpo-38074: Make zlib extension module PEP-384 compatible (GH-15792)Dino Viehland2019-09-102-73/+87
| | | | Updated zlibmodule.c to be PEP 384 compliant.
* bpo-38076: Make struct module PEP-384 compatible (#15805)Dino Viehland2019-09-103-147/+177
| | | | | | | | | | * PEP-384 _struct * More PEP-384 fixes for _struct Summary: Add a couple of more fixes for `_struct` that were previously missed such as removing `tp_*` accessors and using `PyBytesWriter` instead of calling `PyBytes_FromStringAndSize` with `NULL`. Also added a test to confirm that `iter_unpack` type is still uninstantiable. * 📜🤖 Added by blurb_it.
* bpo-38083: Minor improvements in asdl_c.py and Python-ast.c. (GH-15824)Serhiy Storchaka2019-09-102-141/+322
| | | | | * Use the const qualifier for constant C strings. * Intern field and attribute names. * Temporary incref a borrowed reference to a list item.
* Fix typo in dict object comment (#15814)dalgarno2019-09-101-1/+1
|
* bpo-37725: have "make clean" remove PGO task data (#15033)Neil Schemenauer2019-09-102-6/+18
| | | | | Change "clean" makefile target to also clean the program guided optimization (PGO) data. Previously you would have to use "make clean" and "make profile-removal", or "make clobber".
* bpo-38043: Move unicodedata.normalize tests into test_unicodedata. (GH-15712)Greg Price2019-09-104-130/+102
| | | | | | | | | | | | | | | | | | | | | | Having these in a separate file from the one that's named after the module in the usual way makes it very easy to miss them when looking for tests for these two functions. (In fact when working recently on is_normalized, I'd been surprised to see no tests for it here and concluded the function had evaded being tested at all. I'd gone as far as to write up some tests myself before I spotted this other file.) Mostly this just means moving all the one file's code into the other, and moving code from the module toplevel to inside the test class to keep it tidily separate from the rest of the file's code. There's one substantive change, which reduces by a bit the amount of code to be moved: we drop the `x > sys.maxunicode` conditional and all the `RangeError` logic behind it. Now if that condition ever occurs it will cause an error at `chr(x)`, and a test failure. That's the right result because, since PEP 393 in Python 3.3, there is no longer such a thing as an "unsupported character".
* Expand comment explaining update_one_slot (GH-14810)Jeroen Demeyer2019-09-101-9/+59
|
* bpo-25237: Documentation for tkinter modules (GH-1870)Nikhil2019-09-1010-15/+479
|
* Cut tricky `goto` that isn't needed, in _PyBytes_DecodeEscape. (GH-15825)Greg Price2019-09-101-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the sort of `goto` that requires the reader to stare hard at the code to unpick what it's doing. On doing so, the answer is... not very much! * It jumps from the bottom of the loop to almost the top; the effect is to bypass the loop condition `s < end` and also the `if`-condition `*s != '\\'`, acting as if both are true. * We've just decremented `s`, after incrementing it in the `switch` condition. So it has the same value as when `s == end` failed. Before that was another increment... and before that we had `s < end`. So `s < end` true, then increment, then `s == end` false... that means `s < end` is still true. * Also this means `s` points to the same character as it did for the `switch` condition. And there was a `case '\\'`, which we didn't hit -- so `*s != '\\'` is also true. * That means this has no effect on the behavior! The most it might do is an optimization -- we get to skip those two checks, because (as just proven above) we know they're true. * But gosh, this is the *invalid escape sequence* path. This does not seem like the kind of code path that calls for extreme optimization tricks. So, take the `goto` and the label out. Perhaps the compiler will notice the exact same facts we showed above, and generate identical code. Or perhaps it won't! That'll be OK. But then, crucially, if some future edit to this loop causes the reasoning above to *stop* holding true... the compiler will adjust this jump accordingly. One of us fallible humans might not.
* bpo-38018: Fix test for multiprocessing.shared_memory in BSD systems (GH-15821)Vinay Sharma2019-09-101-2/+7
|
* bpo-38077: IDLE no longer adds 'argv' to the user namespace (GH-15818)Terry Jan Reedy2019-09-103-1/+6
| | | | This only happened when initializing the subprocess to run a module. This recent bug only affected 3.7.4 and 3.8.0b2 to 3.8.0b4.
* bpo-34293: Fix PDF documentation paper size (GH-8585)Jean-François B2019-09-092-1/+6
| | | | | The "A4" pdfs were previously the wrong size due to a change in the options in Sphinx 1.5. See also sphinx-doc/sphinx#5235
* bpo-36511: clean up python process before deploy on ARM Windows buildbots ↵Paul Monson2019-09-091-0/+7
| | | | (GH-14431)
* Correct overflow check in PyTuple_New() (GH-14838)Sergey Fedoseev2019-09-091-2/+2
|
* bpo-38049: Add command-line interface for the ast module. (GH-15724)Serhiy Storchaka2019-09-093-0/+61
|
* bpo-37383: Updates docs to reflect AsyncMock call_count after await. (#15761)Lisa Roach2019-09-091-0/+14
| | | | | | | | | | * bpo-351428: Updates documentation to reflect AsyncMock call_count after await. * Adds skip and fixes warning. * Removes extra >>>. * Adds ... in front of await mock().
* bpo-38018: Increase code coverage for multiprocessing.shared_memory (GH-15662)Vinay Sharma2019-09-092-0/+25
|
* bpo-36502: Update link to UAX #44, the Unicode doc on the UCD. (GH-15301)Greg Price2019-09-091-1/+1
| | | | | | | The link we have points to the version from Unicode 6.0.0, dated 2010. There have been numerous updates to it since then: https://www.unicode.org/reports/tr44/#Modifications Change the link to one that points to the current version. Also, use HTTPS.
* bpo-37995: Add an option to ast.dump() to produce a multiline output. (GH-15631)Serhiy Storchaka2019-09-095-12/+118
|
* bpo-37840: Fix handling of negative indices in bytearray_getitem() (GH-15250)Sergey Fedoseev2019-09-094-2/+24
|
* bpo-35941: Fix performance regression in new code (GH-12610)Christian Heimes2019-09-092-30/+29
| | | | | | | | Accumulate certificates in a set instead of doing a costly list contain operation. A Windows cert store can easily contain over hundred certificates. The old code would result in way over 5,000 comparison operations Signed-off-by: Christian Heimes <christian@python.org>
* bpo-37649: Fix exec_prefix check (GH-14897)Orivej Desh2019-09-091-1/+1
|
* Fix punctuation in `os.execvpe` docstring. (GH-15051)Hasan Ramezani2019-09-091-1/+1
|
* bpo-35803: Document and test dir=PathLike for tempfile (GH-11644)Anthony Sottile2019-09-093-2/+22
| | | Co-Authored-By: Ammar Askar <ammar_askar@hotmail.com>
* Clarify that shutil's copy functions can accept path-like values (GH-15141)Boris Verhovsky2019-09-092-4/+7
|
* Fix docs bz.open default mode (GH-15100)Richard Sanger2019-09-091-1/+1
| | | bz2.open()'s default mode is rb, not r
* bpo-36279: Ensure os.wait3() rusage is initialized (GH-15111)Zackery Spytz2019-09-093-0/+25
| | | Co-Authored-By: David Wilson <dw@botanicus.net>
* bpo-38070: visit_decref() calls _PyObject_IsFreed() (GH-15782)Victor Stinner2019-09-091-0/+2
| | | | | | In debug mode, visit_decref() now calls _PyObject_IsFreed() to ensure that the object is not freed. If it's freed, the program fails with an assertion error and Python dumps informations about the freed object.
* bpo-37758: Cut always-constant conditionals on sys.maxunicode. (GH-15302)Greg Price2019-09-092-5/+2
| | | | | | | | | Since PEP 393 in Python 3.3, this value is always 0x10ffff, the maximum codepoint in Unicode; there's no longer such a thing as a UCS-2 build of Python, which couldn't properly represent some characters. There are a couple of spots left where we still condition on the value of this constant. Take them out.
* bpo-20490: Improve circular import error message (GH-15308)Anthony Sottile2019-09-095-4/+27
|
* Minor changes in Doc/faq/library. (#15449)Antoine2019-09-091-14/+15
| | | | | | | | | | | | | | | | * Minor changes. * Update Doc/faq/library.rst Co-Authored-By: Kyle Stanley <aeros167@gmail.com> * Apply suggestions from aeros167. * Update Doc/faq/library.rst Co-Authored-By: Kyle Stanley <aeros167@gmail.com> * Apply suggestions from aeros167 + re-add a "a" that was accidentally deleted.
* bpo-38006: Avoid closure in weakref.WeakValueDictionary (GH-15641)Victor Stinner2019-09-093-2/+10
| | | | | weakref.WeakValueDictionary defines a local remove() function used as callback for weak references. This function was created with a closure. Modify the implementation to avoid the closure.
* bpo-37876: Tests for ROT-13 codec (GH-15314)Zeth2019-09-092-0/+38
| | | | The Rot-13 codec is for educational use but does not have unit tests, dragging down test coverage. This adds a few very simple tests.
* docs: Add references to AsyncMock in unittest.mock.patch (#13681)Mario Corchero2019-09-092-8/+21
| | | | Update the docs as patch can now return an AsyncMock if the patched object is an async function.
* Mark files as executable that are meant as scripts. (GH-15354)Greg Price2019-09-0911-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | This is the converse of GH-15353 -- in addition to plenty of scripts in the tree that are marked with the executable bit (and so can be directly executed), there are a few that have a leading `#!` which could let them be executed, but it doesn't do anything because they don't have the executable bit set. Here's a command which finds such files and marks them. The first line finds files in the tree with a `#!` line *anywhere*; the next-to-last step checks that the *first* line is actually of that form. In between we filter out files that already have the bit set, and some files that are meant as fragments to be consumed by one or another kind of preprocessor. $ git grep -l '^#!' \ | grep -vxFf <( \ git ls-files --stage \ | perl -lane 'print $F[3] if (!/^100644/)' \ ) \ | grep -ve '\.in$' -e '^Doc/includes/' \ | while read f; do head -c2 "$f" | grep -qxF '#!' \ && chmod a+x "$f"; \ done
* bpo-38059: Using sys.exit() over exit() in inspect.py (GH-15666)Alan Yee2019-09-092-2/+3
| | | Constants added by the site module like exit() "should not be used in programs"
* bpo-38053 Update documentation for plistlib (GH-15727)Jon Janzen2019-09-092-4/+19
| | | | | | * Update documentation for plistlib - Update "Mac OS X" to "Apple" since plists are used more widely than just macOS - Re-add the UID class documentation (oops, removed in GH-15615)
* Fix typo in the algorithm description (GH-15774)Pablo Galindo2019-09-091-1/+1
|
* bpo-34596: Fallback to a default reason when @unittest.skip is uncalled (#9082)Naitree Zhu2019-09-093-0/+18
| | | | | | | | * bpo-34596: Fallback to a default reason when @unittest.skip is uncalled * Change default reason to empty string * Fix rst formatting of NEWS entry