4db9a7d | Victor Stinner | 22 November 2018, 01:56:20 UTC | bpo-35059: Cleanup usage of Python macros Don't pass complex expressions but regular variables to Python macros. * _datetimemodule.c: split single large "if" into two "if" in date_new(), time_new() and datetime_new(). * _pickle.c, load_extension(): flatten complex "if" expression into more regular C code. * _ssl.c: addbool() now uses a temporary bool_obj to only evaluate the value once. * weakrefobject.c: replace "Py_INCREF(result = proxy);" with "result = proxy; Py_INCREF(result);" | 22 November 2018, 02:11:22 UTC |
2ff8fb7 | Victor Stinner | 22 November 2018, 01:57:29 UTC | bpo-35059: Add _PyObject_CAST() macro (GH-10645) Add _PyObject_CAST() and _PyVarObject_CAST() macros to cast argument to PyObject* and PyVarObject* properly. | 22 November 2018, 01:57:29 UTC |
271753a | Victor Stinner | 22 November 2018, 00:02:54 UTC | bpo-35059: Convert _PyObject_GC_TRACK() to inline function (GH-10643) * Add _PyObject_ASSERT_FROM() and _PyObject_ASSERT_FAILED_MSG() macros. * PyObject_GC_Track() now calls _PyObject_ASSERT_FAILED_MSG(), instead of Py_FatalError(), if the object is already tracked, to dump more information on error. * _PyObject_GC_TRACK() no longer checks if the object is already tracked at runtime, use an assertion instead for best performances; PyObject_GC_Track() still checks at runtime. * pycore_object.h now includes pycore_pystate.h. * Convert _PyObject_GC_TRACK() and _PyObject_GC_UNTRACK() macros to inline functions. | 22 November 2018, 00:02:54 UTC |
f1d002c | Victor Stinner | 21 November 2018, 22:53:44 UTC | bpo-35059: Enhance _PyObject_AssertFailed() (GH-10642) Enhance _PyObject_AssertFailed() * Exchange 'expr' and 'msg' parameters * 'expr' and 'func' arguments can now be NULL | 21 November 2018, 22:53:44 UTC |
bcda8f1 | Victor Stinner | 21 November 2018, 21:27:47 UTC | bpo-35081: Add Include/internal/pycore_object.h (GH-10640) Move _PyObject_GC_TRACK() and _PyObject_GC_UNTRACK() from Include/objimpl.h to Include/internal/pycore_object.h. | 21 November 2018, 21:27:47 UTC |
aac1f81 | Victor Stinner | 21 November 2018, 15:33:13 UTC | bpo-35189: Fix eintr_tester.py (GH-10637) Call setitimer() before each test method, instead of once per test case, to ensure that signals are sent in each test method. Previously, only the first method of a testcase class got signals. Changes: * Replace setUpClass() with setUp() and replace tearDownClass() with tearDown(). * tearDown() now ensures that at least one signal has been sent. * Replace support.run_unittest() with unittest.main() which has a nicer CLI and automatically discover test cases. | 21 November 2018, 15:33:13 UTC |
361e868 | Zhiming Wang | 21 November 2018, 12:41:07 UTC | bpo-35035: Rename email.utils documentation to email.utils.rst (GH-10023) I'll watch for 404 on the old URL and will setup an HTTP redirection if needed. | 21 November 2018, 12:41:07 UTC |
7c2d570 | Victor Stinner | 21 November 2018, 11:21:25 UTC | bpo-35290: Add debug info to test_c_locale_coercion (GH-10631) In verbose mode, test_c_locale_coercion now dumps global variables at startup. | 21 November 2018, 11:21:25 UTC |
d936a8f | Julien Palard | 21 November 2018, 08:40:05 UTC | bpo-35221: Additional hint that the placeholder is to be replaced. (GH-10604) | 21 November 2018, 08:40:05 UTC |
3e21ad1 | Victor Stinner | 20 November 2018, 23:43:09 UTC | bpo-35081: Move _PyGC_FINALIZED() back to C API (GH-10626) Partially revert commit 1a6be91e6fd65ce9cb88cbbbb193db7e92ec6076, move back PyGC API from the internal API to the C API: * _PyGCHead_NEXT(g), _PyGCHead_SET_NEXT(g, p) * _PyGCHead_PREV(g), _PyGCHead_SET_PREV(g, p) * _PyGCHead_FINALIZED(g), _PyGCHead_SET_FINALIZED(g) * _PyGC_FINALIZED(o), _PyGC_SET_FINALIZED(o) * _PyGC_PREV_MASK_FINALIZED * _PyGC_PREV_MASK_COLLECTING * _PyGC_PREV_SHIFT * _PyGC_PREV_MASK _PyObject_GC_TRACK(o) and _PyObject_GC_UNTRACK(o) remain in the internal API. | 20 November 2018, 23:43:09 UTC |
c8fe9cc | Brendan Gerrity | 20 November 2018, 21:28:27 UTC | bpo-34532: Fixed exit code for py.exe list versions arg (GH-9039) | 20 November 2018, 21:28:27 UTC |
b1dede3 | Serhiy Storchaka | 20 November 2018, 18:45:40 UTC | bpo-25750: Fix a compiler warning introduced in GH-9084. (GH-10234) | 20 November 2018, 18:45:40 UTC |
3ec0f49 | Serhiy Storchaka | 20 November 2018, 18:41:09 UTC | bpo-35021: Fix assertion failures in _datetimemodule.c. (GH-10039) Fixes assertion failures in _datetimemodule.c introduced in the previous fix (see bpo-31752). Rather of trying to handle an int subclass as exact int, let it to use overridden special methods, but check the result of divmod(). | 20 November 2018, 18:41:09 UTC |
97f1efb | Serhiy Storchaka | 20 November 2018, 17:27:16 UTC | bpo-35169: Improve error messages for forbidden assignments. (GH-10342) | 20 November 2018, 17:27:16 UTC |
6c48bf2 | Serhiy Storchaka | 20 November 2018, 17:26:09 UTC | bpo-9842: Add references for using "..." as a placeholder to the index. (GH-10330) | 20 November 2018, 17:26:09 UTC |
6b73bb5 | Julien Palard | 20 November 2018, 16:18:30 UTC | bpo-31146: Don't fallback switcher to english on not-yet pusblished languages. (GH-10558) | 20 November 2018, 16:18:30 UTC |
02e6bf7 | Victor Stinner | 20 November 2018, 15:20:16 UTC | bpo-28604: Fix localeconv() for different LC_MONETARY (GH-10606) locale.localeconv() now sets temporarily the LC_CTYPE locale to the LC_MONETARY locale if the two locales are different and monetary strings are non-ASCII. This temporary change affects other threads. Changes: * locale.localeconv() can now set LC_CTYPE to LC_MONETARY to decode monetary fields. * Add LocaleInfo.grouping_buffer: copy localeconv() grouping string since it can be replaced anytime if a different thread calls localeconv(). * _Py_GetLocaleconvNumeric() now requires a "struct lconv *" structure, so locale.localeconv() now longer calls localeconv() twice. Moreover, the function now requires all arguments to be non-NULL. * Rename STATIC_LOCALE_INFO_INIT to LocaleInfo_STATIC_INIT. * Move _Py_GetLocaleconvNumeric() definition from fileutils.h to pycore_fileutils.h. pycore_fileutils.h now includes locale.h. * The _locale module is now built with Py_BUILD_CORE defined. | 20 November 2018, 15:20:16 UTC |
d5d3368 | Sanyam Khurana | 20 November 2018, 11:10:49 UTC | bpo-18859: Document --with-valgrind option in README.valgrind (#10591) | 20 November 2018, 11:10:49 UTC |
8b9c33e | Donald Stufft | 19 November 2018, 12:41:52 UTC | Upgrade pip to 18.1 and setuptools to 40.6.2 (#10598) | 19 November 2018, 12:41:52 UTC |
062a57b | Zackery Spytz | 18 November 2018, 16:45:57 UTC | bpo-35269: Fix a possible segfault involving a newly-created coroutine (GH-10585) coro->cr_origin wasn't initialized if compute_cr_origin() failed in PyCoro_New(), which would cause a crash during the coroutine's deallocation. https://bugs.python.org/issue35269 | 18 November 2018, 16:45:57 UTC |
177a41a | Steve Dower | 18 November 2018, 04:41:48 UTC | bpo-34725: Adds _Py_SetProgramFullPath so embedders may override sys.executable (GH-9860) | 18 November 2018, 04:41:48 UTC |
689d555 | Windson yang | 17 November 2018, 19:16:51 UTC | bpo-25438: document what codec PyMemberDef T_STRING decodes the char * as (GH-10580) Source of T_STRING: https://github.com/python/cpython/blob/e42b705188271da108de42b55d9344642170aa2b/Python/structmember.c#L51 Source of PyUnicode_FromString https://github.com/python/cpython/blob/master/Include/unicodeobject.h#L702 https://bugs.python.org/issue25438 | 17 November 2018, 19:16:51 UTC |
38df97a | Steve Dower | 17 November 2018, 12:14:36 UTC | Add --tempdir option for test run (GH-10322) | 17 November 2018, 12:14:36 UTC |
5a087d5 | Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) | 17 November 2018, 06:38:01 UTC | bpo-35202: Remove more unused imports in idlelib (GH-10573) | 17 November 2018, 06:38:01 UTC |
338d54f | Stefano Rivera | 16 November 2018, 23:52:52 UTC | bpo-28401: prevent Py_DEBUG builds from trying to import limited ABI modules (GH-1766) [Issue 28401](https://bugs.python.org/issue28401): Don't attempt to import the stable API extensions, they are not supported in PyDEBUG builds (which don't implement that ABI). https://bugs.python.org/issue28401 | 16 November 2018, 23:52:52 UTC |
ad65f15 | Zackery Spytz | 16 November 2018, 15:58:55 UTC | Add a missed PyErr_NoMemory() in symtable_new(). (GH-10576) This missed PyErr_NoMemory() could cause a SystemError when calling _symtable.symtable(). | 16 November 2018, 15:58:55 UTC |
90d0cfb | Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) | 16 November 2018, 15:32:58 UTC | bpo-35202: Remove unused imports in tests. (GH-10561) | 16 November 2018, 15:32:58 UTC |
4edeaea | Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) | 16 November 2018, 13:28:51 UTC | bpo-35250: Correct argument name "num" -> "btn" in turtle docs. (GH-10565) | 16 November 2018, 13:28:51 UTC |
a48e0eb | wim glenn | 16 November 2018, 11:58:19 UTC | Fix outdated info in datamodel about dicts (GH-9807) | 16 November 2018, 11:58:19 UTC |
c2ccac7 | Andrés Delfino | 16 November 2018, 11:41:55 UTC | bpo-33816: Remove outdated metaclass example (GH-7566) | 16 November 2018, 11:41:55 UTC |
37cd982 | Victor Stinner | 16 November 2018, 10:55:35 UTC | bpo-35239: _PySys_EndInit() copies module_search_path (GH-10532) * The _PySys_EndInit() function now copies the config->module_search_path list, so config is longer modified when sys.path is updated. * config->warnoptions list and config->xoptions dict are also copied * test_embed: InitConfigTests now also tests main_config['module_search_path'] * Fix _Py_InitializeMainInterpreter(): don't use config->warnoptions but sys.warnoptions to decide if the warnings module should be imported at startup. | 16 November 2018, 10:55:35 UTC |
b65413b | Terry Jan Reedy | 15 November 2018, 18:15:13 UTC | bpo-35213: Where appropriate, use 'macOS' in idlelib. (#10478) | 15 November 2018, 18:15:13 UTC |
70f61b9 | Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) | 15 November 2018, 12:59:19 UTC | bpo-35202: Remove unused imports in Lib directory (GH-10450) | 15 November 2018, 12:59:19 UTC |
25221b3 | Sebastián Ramírez | 15 November 2018, 05:51:56 UTC | Fix typo in asynchronous generator iterator documentation (GH-10542) Remove an unnecessary "that": ... will execute that the body ... -> ... will execute the body ... | 15 November 2018, 05:51:56 UTC |
bfb855b | Pablo Galindo | 15 November 2018, 02:03:57 UTC | bpo-34784: Implement correct cleanup in PyStructSequence new implementation (GH-10536) PyTuple_Pack can fail and return NULL. If this happens, then PyType_FromSpecWithBases will incorrectly create a new type without bases. Also, it will crash on the Py_DECREF that follows. Also free members and type in error conditions. | 15 November 2018, 02:03:57 UTC |
4c596d5 | Zackery Spytz | 14 November 2018, 22:39:01 UTC | Fix a possible reference leak in _socket.getaddrinfo(). (GH-10543) "single" needs to be decrefed if PyList_Append() fails. | 14 November 2018, 22:39:01 UTC |
01de89c | Victor Stinner | 14 November 2018, 16:39:45 UTC | bpo-35233: InitConfigTests tests more config vars (GH-10541) test_embed.InitConfigTests tests more configuration variables. Changes: * InitConfigTests tests more core configuration variables: * base_exec_prefix * base_prefix * exec_prefix * home * legacy_windows_fs_encoding * legacy_windows_stdio * module_search_path_env * prefix * "_testembed init_from_config" tests more variables: * argv * warnoptions * xoptions * InitConfigTests: add check_global_config(), check_core_config() and check_main_config() subfunctions to cleanup the code. Move also constants at the class level (ex: COPY_MAIN_CONFIG). * Fix _PyCoreConfig_AsDict(): don't set stdio_encoding twice * Use more macros in _PyCoreConfig_AsDict() and _PyMainInterpreterConfig_AsDict() to reduce code duplication. * Other minor cleanups. | 14 November 2018, 16:39:45 UTC |
6431347 | Julien Palard | 14 November 2018, 15:22:27 UTC | bpo-32613: Update window FAQ (GH-5552) | 14 November 2018, 15:22:27 UTC |
a757649 | INADA Naoki | 14 November 2018, 09:39:27 UTC | bpo-35230: dict: Remove some macros (GH-10513) Remove _Py_REF_DEBUG_COMMA, DK_DEBUG_INCREF, and DK_DEBUG_DECREF. Convert DK_INCREF and DK_DECREF to static inline functions. | 14 November 2018, 09:39:27 UTC |
8e0b05e | Andrés Delfino | 14 November 2018, 00:40:44 UTC | Grammar corrections in abc.rst (GH-10525) | 14 November 2018, 00:40:44 UTC |
bf1355b | Andrés Delfino | 14 November 2018, 00:29:57 UTC | Link to property built-in in abc.rst (GH-10526) | 14 November 2018, 00:29:57 UTC |
daeb3c4 | l-n-s | 14 November 2018, 00:13:12 UTC | Fix doc typo: Window -> Windows (GH-10508) | 14 November 2018, 00:13:12 UTC |
7ddd56f | Victor Stinner | 13 November 2018, 23:24:28 UTC | bpo-35233: Rewrite test_embed.InitConfigTests (GH-10524) * Fix _PyCoreConfig_SetGlobalConfig(): set also Py_FrozenFlag * Fix _PyCoreConfig_AsDict(): export also xoptions * Add _Py_GetGlobalVariablesAsDict() and _testcapi.get_global_config() * test.pythoninfo: dump also global configuration variables * _testembed now serializes global, core and main configurations using JSON to reuse _Py_GetGlobalVariablesAsDict(), _PyCoreConfig_AsDict() and _PyMainInterpreterConfig_AsDict(), rather than duplicating code. * test_embed.InitConfigTests now test much more configuration variables | 13 November 2018, 23:24:28 UTC |
746b2d3 | Gregory P. Smith | 13 November 2018, 21:16:54 UTC | bpo-35214: Fix OOB memory access in unicode escape parser (GH-10506) Discovered using clang's MemorySanitizer when it ran python3's test_fstring test_misformed_unicode_character_name. An msan build will fail by simply executing: ./python -c 'u"\N"' | 13 November 2018, 21:16:54 UTC |
00b137c | Victor Stinner | 13 November 2018, 18:59:26 UTC | bpo-35233: Fix _PyMainInterpreterConfig_Copy() (GH-10519) * Fix _PyMainInterpreterConfig_Copy(): copy 'install_signal_handlers' attribute * Add _PyMainInterpreterConfig_AsDict() * Add unit tests on the main interpreter configuration to test_embed.InitConfigTests * test.pythoninfo: log also main_config | 13 November 2018, 18:59:26 UTC |
f966e53 | Victor Stinner | 13 November 2018, 14:14:58 UTC | bpo-29564:_PyMem_DumpTraceback() suggests enabling tracemalloc (GH-10510) If tracemalloc is not tracing Python memory allocations, _PyMem_DumpTraceback() now suggests to enable tracemalloc to get the traceback where the memory block has been allocated. | 13 November 2018, 14:14:58 UTC |
474eedf | Eddie Elizondo | 13 November 2018, 12:09:31 UTC | bpo-34784: Fix PyStructSequence_NewType with heap-allocated StructSequence (GH-9665) | 13 November 2018, 12:09:31 UTC |
1a6be91 | Victor Stinner | 13 November 2018, 11:52:18 UTC | bpo-35081: Make some _PyGC macros internal (GH-10507) * Move "GC" macros together: * PyObject_IS_GC() * _Py_AS_GC() * _PyObject_GC_IS_TRACKED() * _PyObject_GC_MAY_BE_TRACKED() * Mark other GC macros as internal (#ifdef Py_BUILD_CORE): * _PyGCHead_NEXT(g), _PyGCHead_SET_NEXT(g, p) * _PyGCHead_PREV(g), _PyGCHead_SET_PREV(g, p) * _PyGCHead_FINALIZED(g), _PyGCHead_SET_FINALIZED(g) * _PyGC_FINALIZED(o), _PyGC_SET_FINALIZED(o) * _PyObject_GC_TRACK(o), _PyObject_GC_UNTRACK(o) * _PyGC_PREV_MASK_FINALIZED * _PyGC_PREV_MASK_COLLECTING * _PyGC_PREV_SHIFT * _PyGC_PREV_MASK * Replace _PyGC_generation0 with _PyRuntime.gc.generation0 * _queuemodule.c: replace _PyObject_GC_UNTRACK() with with PyObject_GC_UnTrack() * Document that _PyObject_GC_TRACK() _PyObject_GC_UNTRACK() macros have been removed from the public C API. | 13 November 2018, 11:52:18 UTC |
0d12672 | Paul Ganssle | 13 November 2018, 08:02:25 UTC | bpo-35081: Remove Py_BUILD_CORE from datetime.h (GH-10416) Datetime macros like PyDate_Check() have two implementations, one using the C API capsule and one using direct access to the datetime type symbols defined in _datetimemodule.c. Since the direct access versions of the macros are only used in _datetimemodule.c, they have been moved out of "datetime.h" and into _datetimemodule.c. The _PY_DATETIME_IMPL macro is currently necessary in order to avoid both duplicate definitions of these macros in _datetimemodule.c and unnecessary declarations of C API capsule-related macros and varibles in datetime.h. Co-Authored-By: Victor Stinner <vstinner@redhat.com> | 13 November 2018, 08:02:25 UTC |
3015fb8 | Gregory P. Smith | 13 November 2018, 06:01:22 UTC | bpo-35214: Add _Py_ prefix to MEMORY_SANITIZER def. (GH-10503) Rename our new MEMORY_SANITIZER define to _Py_MEMORY_SANITIZER. Project based C Preprocessor namespacing at its finest. :P | 13 November 2018, 06:01:22 UTC |
0dc1e45 | Windson yang | 13 November 2018, 03:56:25 UTC | Fix a couple documentation typos. (GH-10498) reproduciblity -> reproducibility PyPA are the group -> PyPA is the group | 13 November 2018, 03:56:25 UTC |
e6c77d8 | Gregory P. Smith | 13 November 2018, 03:47:13 UTC | Disable getc_unlocked() with MemorySanitizer. (GH-10499) clang's MemorySanitizer understand getc() but does not understand getc_unlocked(). Workaround: Don't use it on msan builds. | 13 November 2018, 03:47:13 UTC |
2c07c49 | Victor Stinner | 13 November 2018, 01:41:00 UTC | bpo-29564: warnings suggests to enable tracemalloc (GH-10486) The warnings module now suggests to enable tracemalloc if the source is specified, tracemalloc module is available, but tracemalloc is not tracing memory allocations. | 13 November 2018, 01:41:00 UTC |
1584a00 | Gregory P. Smith | 12 November 2018, 20:07:14 UTC | bpo-35214: Initial clang MemorySanitizer support (GH-10479) Adds configure flags for msan and ubsan builds to make it easier to enable. These also encode the detail that address sanitizer and memory sanitizer should disable pymalloc. Define MEMORY_SANITIZER when appropriate at build time and adds workarounds to existing code to mark things as initialized where the sanitizer is otherwise unable to determine that. This lets our build succeed under the memory sanitizer. not all tests pass without sanitizer failures yet but we're in pretty good shape after this. | 12 November 2018, 20:07:14 UTC |
a9655b7 | Windson yang | 12 November 2018, 17:42:38 UTC | Improve grammar in Glossary. (GH-10474) a asynchronous generator -> an asynchronous generator | 12 November 2018, 17:42:38 UTC |
7610f4f | Andrés Delfino | 12 November 2018, 17:24:00 UTC | Correct grammar mistake in stdtypes.rst (GH-10481) | 12 November 2018, 17:24:00 UTC |
7438792 | Andrew Svetlov | 12 November 2018, 17:00:22 UTC | bpo-30064: Refactor sock_* asyncio API (#10419) | 12 November 2018, 17:00:22 UTC |
9404e77 | Andrés Delfino | 12 November 2018, 16:31:57 UTC | Linkify PEP 8 in unix.rst (GH-10482) | 12 November 2018, 16:31:57 UTC |
621cebe | Victor Stinner | 12 November 2018, 15:53:38 UTC | bpo-35081: Rename internal headers (GH-10275) Rename Include/internal/ headers: * pycore_hash.h -> pycore_pyhash.h * pycore_lifecycle.h -> pycore_pylifecycle.h * pycore_mem.h -> pycore_pymem.h * pycore_state.h -> pycore_pystate.h Add missing headers to Makefile.pre.in and PCbuild: * pycore_condvar.h. * pycore_hamt.h * pycore_pyhash.h | 12 November 2018, 15:53:38 UTC |
19c46a4 | Giampaolo Rodola | 12 November 2018, 14:18:15 UTC | bpo-33695 shutil.copytree() + os.scandir() cache (#7874) | 12 November 2018, 14:18:15 UTC |
cd44980 | Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) | 12 November 2018, 04:06:18 UTC | Minor grammar improvement to io documentation. (GH-10329) Independently of -> Independent of | 12 November 2018, 04:06:18 UTC |
7432f09 | Jakub Stasiak | 12 November 2018, 03:40:42 UTC | Update subprocess.Popen documentation wrt universal_newlines arg (GH-10337) * universal_newlines defaulting to False would suggest, that not specifying universal_newlines explicitly and setting text to True should cause an error, which is not the case. * The run function didn't have the universal_newlines parameter documented * The check_output function didn't have its text parameter documented | 12 November 2018, 03:40:42 UTC |
082875d | Julien Palard | 11 November 2018, 23:59:39 UTC | bpo-33878: Doc: Fix missing case by simplifying. (GH-7762) The documentation was not covering multiple targets enclosed by parenthesis nor multiple targets enclosed by brackets, adding them all would be heavy, an else cover them all and is lighter to read. | 11 November 2018, 23:59:39 UTC |
5f2df88 | Victor Stinner | 11 November 2018, 23:56:19 UTC | bpo-35177: Add dependencies between header files (GH-10361) * ast.h now includes Python-ast.h and node.h * parsetok.h now includes node.h and grammar.h * symtable.h now includes Python-ast.h * Modify asdl_c.py to enhance Python-ast.h: * Add #ifndef/#define Py_PYTHON_AST_H to be able to include the header twice * Add "extern { ... }" for C++ * Undefine "Yield" macro conflicting with winbase.h * Remove "#undef Yield" from C files, it's now done in Python-ast.h * Remove now useless includes in C files | 11 November 2018, 23:56:19 UTC |
fd3a91c | Alexey Izbyshev | 11 November 2018, 23:14:51 UTC | closes bpo-35204: Disable thread and memory sanitizers for address_in_range(). (GH-10442) This function may access memory which is mapped but is considered free by libc allocator. It behaves so by design, therefore we need to suppress sanitizer reports. GCC doesn't support MSan, so disable only TSan for it. | 11 November 2018, 23:14:51 UTC |
f9ec1b9 | Raymond Hettinger | 11 November 2018, 22:35:47 UTC | Neaten the code without any algorithmic change. (GH-10466) Remove unneeded assertion (we already know so is a PySetObject *). | 11 November 2018, 22:35:47 UTC |
b086c8a | Andrés Delfino | 11 November 2018, 19:33:51 UTC | bpo-33699: Describe try's else clause with the rest of the try clause (GH-7252) https://bugs.python.org/issue33699 | 11 November 2018, 19:33:51 UTC |
76e8fd7 | Andrés Delfino | 11 November 2018, 16:56:47 UTC | dict insertion order is guaranteed since 3.7 (GH-10431) | 11 November 2018, 16:56:47 UTC |
50ff02b | Terry Jan Reedy | 11 November 2018, 04:26:31 UTC | bpo-34864: Document two IDLE on MacOS issues. (GH-10456) The System Preferences Dock "prefer tabs always" setting disables some IDLE features. Menus are a bit different than as described for Windows and Linux. | 11 November 2018, 04:26:31 UTC |
b9498e2 | Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) | 10 November 2018, 07:22:02 UTC | bpo-35202: Remove unused imports in Lib directory. (GH-10446) | 10 November 2018, 07:22:02 UTC |
43a74ab | Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) | 10 November 2018, 06:45:31 UTC | bpo-35202: Remove unused imports in idlelib (GH-10438) | 10 November 2018, 06:45:31 UTC |
2d1bc53 | Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) | 10 November 2018, 05:45:28 UTC | bpo-35202: Remove unused imports in Lib directory. (GH-10445) | 10 November 2018, 05:45:28 UTC |
9d43fa1 | David Kleuker | 10 November 2018, 03:45:40 UTC | Doc: Simplify Copyright line in README (GH-10287) This also makes it consistent with other places like: - https://docs.python.org/dev/copyright.html - https://www.python.org/ footer - https://github.com/python/cpython/blob/e42b705188271da108de42b55d9344642170aa2b/Python/getcopyright.c#L7 | 10 November 2018, 03:45:40 UTC |
009b2f0 | Géry Ogam | 09 November 2018, 19:34:54 UTC | Correct a typo in the Unittest documentation (GH-10397) Co-Authored-By: maggyero <gery.ogam@gmail.com> | 09 November 2018, 19:34:54 UTC |
d17a693 | Victor Stinner | 09 November 2018, 15:56:48 UTC | bpo-35199: Add an internal _PyTuple_ITEMS() macro (GH-10434) * _PyTuple_ITEMS() gives access to the tuple->ob_item field and cast the first argument to PyTupleObject*. This internal macro is only usable if Py_BUILD_CORE is defined. * Replace &PyTuple_GET_ITEM(ob, 0) with _PyTuple_ITEMS(ob). * Replace PyTuple_GET_ITEM(op, 1) with &_PyTuple_ITEMS(ob)[1]. | 09 November 2018, 15:56:48 UTC |
130893d | Victor Stinner | 09 November 2018, 12:03:37 UTC | bpo-35081: Internal headers require Py_BUILD_CORE (GH-10363) * All internal header files now require Py_BUILD_CORE or Py_BUILD_CORE_BUILTIN to be defined. * _json.c is now compiled with Py_BUILD_CORE_BUILTIN to access pycore_accu.h header. * Add an example to Modules/Setup to show how to build _json as a built-in module; it requires non trivial compiler options. | 09 November 2018, 12:03:37 UTC |
0a18e05 | Raymond Hettinger | 09 November 2018, 10:39:50 UTC | Hoist the float conversion out of the inner loop. (GH-10430) Currently, the *n* and *total* variables get converted to floats each time they are multiplied by random(). This minor tweak does the conversion just once and gets a small speedup (approx 3%). | 09 November 2018, 10:39:50 UTC |
cf5863f | Raymond Hettinger | 09 November 2018, 10:31:56 UTC | Optimize set.pop() to advance a pointer instead of indexing. (GH-10429) Gives approx 20% speed-up using clang depending on the number of elements in the set (the less dense the set, the more the speed-up). Uses the same entry++ logic used elsewhere in the setobject.c code. | 09 November 2018, 10:31:56 UTC |
b83942c | Raymond Hettinger | 09 November 2018, 09:19:33 UTC | Cleanup and improve the regex tokenizer example. (GH-10426) 1) Convert weird field name "typ" to the more standard "type". 2) For the NUMBER type, convert the value to an int() or float(). 3) Simplify ``group(kind)`` to the shorter and faster ``group()`` call. 4) Simplify logic go a single if-elif chain to make this easier to extend. 5) Reorder the tests to match the order the tokens are specified. This isn't necessary for correctness but does make the example easier to follow. 6) Move the "column" calculation before the if-elif chain so that users have the option of using this value in error messages. | 09 November 2018, 09:19:33 UTC |
216aaaa | Raymond Hettinger | 09 November 2018, 09:06:02 UTC | Fixing wording in comment. (GH-10425) Since the n==1 case just returns *max*, it cannot be larger than the magnitude of the vector entry. | 09 November 2018, 09:06:02 UTC |
7a69cf4 | Alexey Izbyshev | 09 November 2018, 07:12:06 UTC | bpo-35194: Fix a wrong constant in cp932 codec (GH-10420) This typo doesn't affect the result because wrong bits are discarded on implicit conversion to unsigned char, but it trips UBSan with -fsanitize=implicit-integer-truncation. https://bugs.python.org/issue35194 | 09 November 2018, 07:12:06 UTC |
0f221d0 | Lisa Roach | 09 November 2018, 02:34:33 UTC | bpo-24412: Adds cleanUps for setUpClass and setUpModule. (GH-9190) | 09 November 2018, 02:34:33 UTC |
49fa4a9 | Gregory P. Smith | 09 November 2018, 01:55:07 UTC | bpo-35193: Fix an off by one error in the RETURN_VALUE case. (GH-10418) Fix an off by one error in the peephole optimizer when checking for unreachable code beyond a return. Do a bounds check within find_op so it can return before going past the end as a safety measure. https://github.com/python/cpython/commit/7db3c488335168993689ddae5914a28e16188447#diff-a33329ae6ae0bb295d742f0caf93c137 introduced this off by one error while fixing another one nearby. This bug was shipped in all Python 3.6 and 3.7 releases. The included unittest won't fail unless you do a clang msan build. | 09 November 2018, 01:55:07 UTC |
fd512d7 | Vincent Michel | 08 November 2018, 12:21:47 UTC | bpo-35065: Remove `StreamReaderProtocol._untrack_reader` (#10212) The call to `_untrack_reader` is performed too soon, causing the protocol to forget about the reader before `connection_lost` can run and feed the EOF to the reader. See bpo-35065. | 08 November 2018, 12:21:47 UTC |
5d95312 | Zackery Spytz | 08 November 2018, 09:45:00 UTC | Replace dead code with an assertion in winreg.c. (GH-10028) | 08 November 2018, 09:45:00 UTC |
a44d34e | Serhiy Storchaka | 08 November 2018, 06:48:11 UTC | bpo-34966: Improve support of method aliases in pydoc. (GH-9823) Pydoc now does not duplicate docstrings for aliases of inherited methods. | 08 November 2018, 06:48:11 UTC |
6843ffe | Pablo Galindo | 07 November 2018, 23:55:40 UTC | Revert "bpo-32409: Fix regression in activate.bat on international Windows (GH-10295)" (GH-10403) This reverts commit c64583b6d3e8516a8cd2b5f84fc1e300bfac2206 due to multiple buildbot failures when building it. | 07 November 2018, 23:55:40 UTC |
556d50d | Julien Palard | 07 November 2018, 23:11:49 UTC | Doc: Make all versions sidebars the same for consistency. (GH-10288) | 07 November 2018, 23:11:49 UTC |
b939250 | Pablo Galindo | 07 November 2018, 22:21:17 UTC | Fix the construction of subprocess.CalledProcessError in test_venv (GH-10400) The constructor of subprocess.CalledProcessError in the check_output function had an extra None in it. | 07 November 2018, 22:21:17 UTC |
beed84c | Julien Palard | 07 November 2018, 21:42:40 UTC | bpo-35015: Doc: Fix internationalisation of the availability directive. (GH-10360) | 07 November 2018, 21:42:40 UTC |
a6e956b | Elvis Pranskevichus | 07 November 2018, 18:34:59 UTC | bpo-34726: Fix handling of hash-based pycs in zipimport. (GH-10327) Current support for hash-based bytecode files in `zipimport` is rather sparse, which leads to test failures when the test suite is ran with the ``SOURCE_DATE_EPOCH`` environment variable set. This teaches zipimport to handle hash-based pycs properly. | 07 November 2018, 18:34:59 UTC |
bfe1839 | Andrés Delfino | 07 November 2018, 18:12:12 UTC | Add link to PEP 525 in Expressions. (GH-10333) | 07 November 2018, 18:12:12 UTC |
ae31e3f | Andrés Delfino | 07 November 2018, 18:09:11 UTC | glob uses fnmatch.filter instead of fnmatch since 2001. (GH-10102) | 07 November 2018, 18:09:11 UTC |
c5eec44 | Andrés Delfino | 07 November 2018, 17:59:45 UTC | Add a reference to the name mangling description in the tutorial to the index. (GH-10138) | 07 November 2018, 17:59:45 UTC |
cdb96f4 | Andrés Delfino | 07 November 2018, 17:32:18 UTC | Add future_stmt to simple_stmt production list. (GH-8239) | 07 November 2018, 17:32:18 UTC |
ca68261 | Andrés Delfino | 07 November 2018, 17:29:14 UTC | Fix markup for xml.sax in 3.8 notes. (GH-9603) | 07 November 2018, 17:29:14 UTC |
d649910 | Andrés Delfino | 07 November 2018, 17:24:56 UTC | Correct grammar mistakes in string.rst. (GH-9752) | 07 November 2018, 17:24:56 UTC |
ca03f3b | Andrés Delfino | 07 November 2018, 17:22:47 UTC | Mark len call as a code snippet in stdtypes.rst. (GH-9804) | 07 November 2018, 17:22:47 UTC |
ea6a28c | Andrés Delfino | 07 November 2018, 17:06:45 UTC | Mark -c and -O as command line options in reStructuredText. (GH-10103) | 07 November 2018, 17:06:45 UTC |
c64583b | samstagern | 07 November 2018, 16:49:14 UTC | bpo-32409: Fix regression in activate.bat on international Windows (GH-10295) Handle Unicode contents on localised Windows systems when activating a venv. activate.bat currently breaks on German Windows systems, as chcp.com does not return a plain number as on English systems, but (arbitrarily) appends a dot at the end (for example "Aktive Codepage: 850." instead of "Active Codepage: 850"). The dependency to chcp.com is removed and ctypes is used to get, set and restore the console output code page. The code page for console input is not changed. We can't use __VENV_PYTHON__ to find python.exe, since it's UTF-8. cmd.exe decodes the script using the console output code page. | 07 November 2018, 16:49:14 UTC |