Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-39901: Move `pathlib.Path.owner()` and `group()` implementations into ↵ | Barney Gale | 2020-04-17 | 1 | -10/+16 |
| | | | | the path accessor. (GH-18844) | ||||
* | bpo-40300: Allow empty logging.Formatter.default_msec_format. (GH-19551) | Mariusz Felisiak | 2020-04-17 | 3 | -2/+19 |
| | |||||
* | bpo-40302: Add pycore_byteswap.h header file (GH-19552) | Victor Stinner | 2020-04-17 | 13 | -112/+219 |
| | | | | | | | | | | | | | | Add a new internal pycore_byteswap.h header file with the following functions: * _Py_bswap16() * _Py_bswap32() * _Py_bswap64() Use these functions in _ctypes, sha256 and sha512 modules, and also use in the UTF-32 encoder. sha256, sha512 and _ctypes modules are now built with the internal C API. | ||||
* | bpo-40287: Fix SpooledTemporaryFile.seek() return value (GH-19540) | Inada Naoki | 2020-04-17 | 3 | -3/+6 |
| | | | It has not returned the file position after the seek. | ||||
* | Minor modernization and readability improvement to the tokenizer example ↵ | Raymond Hettinger | 2020-04-17 | 1 | -2/+6 |
| | | | | (GH-19558) | ||||
* | bpo-40294: Fix _asyncio when module is loaded/unloaded multiple times (GH-19542) | Jeffrey Quesnelle | 2020-04-17 | 1 | -0/+2 |
| | |||||
* | Fix parameter names in assertIn() docs (GH-18829) | Christoph Zwerschke | 2020-04-17 | 1 | -3/+3 |
| | | | The names "member" and "container" for the arguments are also used in the module and shown with the help() function, and are immediately understandable in this context, contrary to "first" and "second". | ||||
* | bpo-39793: use the same domain on make_msgid tests (#18698) | Batuhan Taşkaya | 2020-04-16 | 2 | -4/+7 |
| | | | | | * bpo-39793: use same domain on make_msgid tests * apply suggestions | ||||
* | bpo-40290: Add zscore() to statistics.NormalDist. (GH-19547) | Raymond Hettinger | 2020-04-16 | 4 | -0/+37 |
| | |||||
* | bpo-35967 resolve platform.processor late (GH-12239) | Jason R. Coombs | 2020-04-16 | 3 | -86/+96 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Replace flag-flip indirection with direct inspection * Use any for simpler code * Avoid flag flip and set results directly. * Resolve processor in a single function. * Extract processor handling into a namespace (class) * Remove _syscmd_uname, unused * Restore platform.processor behavior to match prior expectation (reliant on uname -p in a subprocess). * Extract '_unknown_as_blank' function. * Override uname_result to resolve the processor late. * Add a test intended to capture the expected values from 'uname -p' * Instead of trying to keep track of all of the possible outputs on different systems (probably a fool's errand), simply assert that except for the known platform variance, uname().processor matches the output of 'uname -p' * Use a skipIf directive * Use contextlib.suppress to suppress the error. Inline strip call. * 📜🤖 Added by blurb_it. * Remove use of contextlib.suppress (it would fail with NameError if it had any effect). Rely on _unknown_as_blank to replace unknown with blank. Co-authored-by: blurb-it[bot] <blurb-it[bot]@users.noreply.github.com> | ||||
* | bpo-40209: Use tokenize.open in test_unparse (GH-19399) | Hakan Çelik | 2020-04-16 | 1 | -5/+2 |
| | |||||
* | Fix typo in exception thrown by ast.unparse (GH-19534) | Shantanu | 2020-04-16 | 1 | -1/+1 |
| | |||||
* | bpo-35967: Make test_platform.test_uname_processor more lenient to satisfy ↵ | Jason R. Coombs | 2020-04-15 | 1 | -4/+6 |
| | | | | | | | | | | | | | build bots. (GH-19544) * bpo-35967: Make test more lenient to satisfy build bots. * Update Lib/test/test_platform.py Co-Authored-By: Kyle Stanley <aeros167@gmail.com> * Expect '' for 'unknown' Co-authored-by: Kyle Stanley <aeros167@gmail.com> | ||||
* | bpo-40270: Enable json extension in Windows sqlite extension (GH-19528) | Ammar Askar | 2020-04-15 | 2 | -1/+3 |
| | |||||
* | bpo-40257: Output object's own docstring in pydoc (GH-19479) | Serhiy Storchaka | 2020-04-15 | 7 | -32/+61 |
| | |||||
* | bpo-29255: Wait in KqueueSelector.select when no fds are registered (GH-19508) | Russell Davis | 2020-04-15 | 3 | -1/+18 |
| | | | | Also partially fixes bpo-25680 (there's still a discrepancy in behavior on Windows that needs to be fixed). | ||||
* | bpo-35967: Baseline values for uname -p (GH-12824) | Jason R. Coombs | 2020-04-15 | 1 | -0/+14 |
| | | | | | | | | | * Add a test intended to capture the expected values from 'uname -p' * Instead of trying to keep track of all of the possible outputs on different systems (probably a fool's errand), simply assert that except for the known platform variance, uname().processor matches the output of 'uname -p' * Use a skipIf directive * Use contextlib.suppress to suppress the error. Inline strip call. | ||||
* | bpo-40267: Fix message when last input character produces a SyntaxError ↵ | Lysandros Nikolaou | 2020-04-15 | 5 | -1/+13 |
| | | | | | | | | (GH-19521) When there is a SyntaxError after reading the last input character from the tokenizer and if no newline follows it, the error message used to be `unexpected EOF while parsing`, which is wrong. | ||||
* | Clean up compatibility code in importlib fixtures (#19156) | Jason R. Coombs | 2020-04-15 | 1 | -16/+2 |
| | |||||
* | bpo-40268: Reformat posixmodule.c includes (GH-19536) | Victor Stinner | 2020-04-15 | 1 | -172/+166 |
| | |||||
* | Optimize _Py_strhex_impl() (GH-19535) | Victor Stinner | 2020-04-15 | 1 | -24/+26 |
| | | | | | | | Avoid a temporary buffer to create a bytes string: use PyBytes_FromStringAndSize() to directly allocate a bytes object. Cleanup also the code: PEP 7 formatting, move variable definitions closer to where they are used. Fix assertion checking "j" index. | ||||
* | bpo-40277: Add a repr() to namedtuple's _tuplegetter to aid with ↵ | Ammar Askar | 2020-04-15 | 3 | -1/+23 |
| | | | | introspection (GH-19537) | ||||
* | bpo-40268: Remove unused imports in pylifecycle.c (GH-19533) | Victor Stinner | 2020-04-15 | 6 | -71/+59 |
| | | | | | | | | | | Remove unused imports in files: * initconfig.c * main.c * preconfig.h * pylifecycle.c * python.c * pythonrun.c | ||||
* | bpo-40268: Remove unused osdefs.h includes (GH-19532) | Victor Stinner | 2020-04-15 | 13 | -20/+18 |
| | | | When the include is needed, add required symbol in a comment. | ||||
* | bpo-40268: Remove unused pycore_pymem.h includes (GH-19531) | Victor Stinner | 2020-04-15 | 21 | -26/+13 |
| | |||||
* | bpo-40268: Remove unused structmember.h includes (GH-19530) | Victor Stinner | 2020-04-15 | 78 | -111/+99 |
| | | | | | | If only offsetof() is needed: include stddef.h instead. When structmember.h is used, add a comment explaining that PyMemberDef is used. | ||||
* | bpo-40268: Remove explicit pythread.h includes (#19529) | Victor Stinner | 2020-04-15 | 28 | -46/+7 |
| | | | | Remove explicit pythread.h includes: it is always included by Python.h. | ||||
* | bpo-39481: PEP 585 for dataclasses, mailbox, contextvars (GH-19425) | Ethan Smith | 2020-04-14 | 5 | -14/+24 |
| | |||||
* | bpo-39522: Always initialise kind attribute in constant ast nodes (GH-19525) | Pablo Galindo | 2020-04-14 | 1 | -0/+1 |
| | |||||
* | bpo-39522: Use _PyUnicodeWriter_WriteStr instead of PyUnicode_AS_DATA (GH-19523) | Batuhan Taşkaya | 2020-04-14 | 1 | -2/+4 |
| | |||||
* | bpo-9216: Nobody expects the geohashing FIPS inquisition (GH-19520) | Miro Hrončok | 2020-04-14 | 1 | -1/+1 |
| | | | Automerge-Triggered-By: @tiran | ||||
* | bpo-40260: Update modulefinder to use io.open_code() and respect coding ↵ | Barry | 2020-04-14 | 3 | -21/+75 |
| | | | | comments (GH-19488) | ||||
* | bpo-395222: Correctly unparse unicode prefix in ast_unparse.c (GH-19512) | Batuhan Taşkaya | 2020-04-14 | 3 | -0/+5 |
| | |||||
* | bpo-32033: Fix test_pwd failures on Android (GH-19502) | Zackery Spytz | 2020-04-14 | 1 | -1/+1 |
| | |||||
* | bpo-40170: Convert PyObject_IS_GC() macro to a function (GH-19464) | Hai Shi | 2020-04-14 | 7 | -15/+41 |
| | |||||
* | bpo-40221: Update multiprocessing to use _at_fork_reinit (GH-19511) | Dong-hee Na | 2020-04-14 | 2 | -9/+10 |
| | |||||
* | bpo-40268: Move struct _gc_runtime_state to pycore_gc.h (GH-19515) | Victor Stinner | 2020-04-14 | 6 | -105/+107 |
| | |||||
* | regrtest: log timeout at startup (GH-19514) | Victor Stinner | 2020-04-14 | 2 | -4/+15 |
| | | | Reduce also worker timeout. | ||||
* | bpo-40232: Update PyOS_AfterFork_Child() to use _PyThread_at_fork_reinit() ↵ | Dong-hee Na | 2020-04-14 | 6 | -13/+21 |
| | | | | (GH-19450) | ||||
* | bpo-40268: Remove a few pycore_pystate.h includes (GH-19510) | Victor Stinner | 2020-04-14 | 56 | -86/+78 |
| | |||||
* | bpo-40221: Update multiprocessing to use _at_fork_reinit (GH-19477) | Dong-hee Na | 2020-04-14 | 1 | -4/+4 |
| | |||||
* | bpo-40268: Rename _PyInterpreterState_GET_UNSAFE() (GH-19509) | Victor Stinner | 2020-04-14 | 23 | -52/+53 |
| | | | | | | | Rename _PyInterpreterState_GET_UNSAFE() to _PyInterpreterState_GET() for consistency with _PyThreadState_GET() and to have a shorter name (help to fit into 80 columns). Add also "assert(tstate != NULL);" to the function. | ||||
* | bpo-40268: Include explicitly pycore_interp.h (GH-19505) | Victor Stinner | 2020-04-14 | 19 | -13/+31 |
| | | | | pycore_pystate.h no longer includes pycore_interp.h: it's now included explicitly in files accessing PyInterpreterState. | ||||
* | bpo-39481: Make weakref and WeakSet generic (GH-19497) | Ethan Smith | 2020-04-14 | 3 | -1/+12 |
| | |||||
* | bpo-39481: Make functools.cached_property, partial, partialmethod generic ↵ | Ethan Smith | 2020-04-14 | 3 | -0/+10 |
| | | | | (#19427) | ||||
* | closes bpo-40266, closes bpo-39953: Use numeric lib code if compiling ↵ | Benjamin Peterson | 2020-04-14 | 2 | -1252/+1256 |
| | | | | against old OpenSSL. (GH-19506) | ||||
* | Fix typo from Lib/asyncio/events.py (GH-19410) | Galden | 2020-04-14 | 1 | -1/+1 |
| | |||||
* | bpo-40208: Remove deprecated has_exec method of SymbolTable (GH-19396) | Batuhan Taşkaya | 2020-04-13 | 5 | -9/+5 |
| | |||||
* | bpo-39380: Change ftplib encoding from latin-1 to utf-8 (GH-18048) | Sebastian Pedersen | 2020-04-13 | 5 | -54/+101 |
| | | | | | Add the encoding in ftplib.FTP and ftplib.FTP_TLS to the constructor as keyword-only and change the default from "latin-1" to "utf-8" to follow RFC 2640. | ||||
* | bpo-32894: Support unparsing of infinity numbers in ast_unparser.c (GH-17426) | Batuhan Taşkaya | 2020-04-13 | 3 | -5/+68 |
| |