https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
fb6feaa bpo-33015: Fix UB in pthread PyThread_start_new_thread (GH-6008) Fix an undefined behaviour in the pthread implementation of PyThread_start_new_thread(): add a function wrapper to always return NULL. Add pythread_callback struct and pythread_wrapper() to thread_pthread.h. (cherry picked from commit 9eea6eaf23067880f4af3a130e3f67c9812e2f30) Co-authored-by: Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 30 November 2018, 15:14:34 UTC
365f21c bpo-35347: Fix test_socket.NonBlockingTCPTests (GH-10791) testAccept() and testRecv() of test_socket.NonBlockingTCPTests have a race condition: time.sleep() is used as a weak synchronization primitive and the tests fail randomly on slow buildbots. Use a reliable threading.Event to fix these tests. Other changes: * Replace send() with sendall() * Expect specific BlockingIOError rather than generic OSError * Add a timeout to select() in testAccept() and testRecv() * Use addCleanup() to close sockets * Use assertRaises() (cherry picked from commit ebd5d6d6e6e4e751ba9c7534004aadfc27ba9265) Co-authored-by: Victor Stinner <vstinner@redhat.com> 30 November 2018, 11:48:17 UTC
df738d5 bpo-35336: Fix PYTHONCOERCECLOCALE=1 (GH-10806) (GH-10813) Fix PYTHONCOERCECLOCALE=1 environment variable: only coerce the C locale if the LC_CTYPE locale is "C". (cherry picked from commit 55e498058faf8c97840556f6d791c2c392732dc3) 30 November 2018, 11:19:48 UTC
0df1f45 Fix typo in Memory Management doc. (GH-10798) (cherry picked from commit a40700439195a119878150f4f0d425c42ca957ef) Co-authored-by: Kevin Adler <kadler@us.ibm.com> 30 November 2018, 08:05:51 UTC
e604b6c bpo-35356: Fix a possible reference leak in nis.maps(). (GH-10808) (cherry picked from commit a2e3585e79c93b2372dbad46a744e28fcc6dad6d) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 30 November 2018, 08:00:07 UTC
8a73cac [3.7] bpo-34279: Synchronize regrtest with master (GH-10800) * bpo-34605, libregrtest: Rename --slaveargs to --worker-args (GH-9099) Rename also run_tests_slave() to run_tests_worker(). (cherry picked from commit 012f5b968a738b15ae9b40c499a1c0778b0615a9) * bpo-34279, regrtest: Issue a warning if no tests have been executed (GH-10150) (cherry picked from commit 9724348b43a9005a449ba532ccd3c6726f031097) * test_regrtest: remove unused threading import 29 November 2018, 20:14:59 UTC
1659c08 bpo-33012: Fix more invalid function cast warnings with gcc 8. (GH-10751) Fix warnings with gcc 8 for wrapperfunc <-> wrapperfunc_kwds casts. (cherry picked from commit 1c607155c9e363489036ae6258b165a3fae75134) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 29 November 2018, 14:27:49 UTC
7eeab87 bpo-27903: Fix ResourceWarning in platform.dist() (GH-10792) Fix ResourceWarning in platform.dist() and platform.linux_distribution() on SuSE and Caldera OpenLinux. Patch by Ville Skyttä. 29 November 2018, 11:31:08 UTC
e754159 bpo-16086: Fix PyType_GetFlags() documentation (GH-10758) (GH-10789) PyType_GetFlags() return type is unsigned long, not long. (cherry picked from commit 9fbcfc08e5814d7aa9287740187e461425a99f67) Co-authored-by: Eddie Elizondo <eduardo.elizondorueda@gmail.com> 29 November 2018, 11:07:33 UTC
2fa5b2a bpo-35189, bpo-35316: Make test_eintr less strict (GH-10782) test_eintr no longer fails if the signal handler has not been called. (cherry picked from commit 2956bffbc00127af65f69e04d7979021a21d1288) Co-authored-by: Victor Stinner <vstinner@redhat.com> 29 November 2018, 00:52:11 UTC
d46d753 bpo-33723: Remove busy loop from test_time (GH-10773) The "busy loops" of test_process_time() and test_thread_time() are not reliable and fail randomly on Windows: remove them. (cherry picked from commit 48498dd57f79ab1d061c754ad6a2ebe1a7172b0e) Co-authored-by: Victor Stinner <vstinner@redhat.com> 28 November 2018, 17:58:31 UTC
24b51b1 bpo-34022: Stop forcing of hash-based invalidation with SOURCE_DATE_EPOCH (GH-9607) Unconditional forcing of ``CHECKED_HASH`` invalidation was introduced in 3.7.0 in bpo-29708. The change is bad, as it unconditionally overrides *invalidation_mode*, even if it was passed as an explicit argument to ``py_compile.compile()`` or ``compileall``. An environment variable should *never* override an explicit argument to a library function. That change leads to multiple test failures if the ``SOURCE_DATE_EPOCH`` environment variable is set. This changes ``py_compile.compile()`` to only look at ``SOURCE_DATE_EPOCH`` if no explicit *invalidation_mode* was specified. I also made various relevant tests run with explicit control over the value of ``SOURCE_DATE_EPOCH``. While looking at this, I noticed that ``zipimport`` does not work with hash-based .pycs _at all_, though I left the fixes for subsequent commits. (cherry picked from commit a6b3ec5b6d4f6387820fccc570eea08b9615620d) Co-authored-by: Elvis Pranskevichus <elvis@magic.io> 28 November 2018, 17:45:36 UTC
f71a592 bpo-34921: Allow escaped NoReturn in get_type_hints (GH-9750) (GH-10772) 28 November 2018, 17:22:09 UTC
c901045 pythoninfo: log more environment variable (GH-10719) (GH-10769) Log TZ to debug a timezone issue... and a few more :-) (cherry picked from commit 282c03d45d2d766c55904a4eb766923a2c459124) 28 November 2018, 17:04:30 UTC
9c16bc2 [3.7] Doc: Delete "how do I emulate os.kill" section in Windows FAQ (GH-10487) (GH-10767) 28 November 2018, 15:53:23 UTC
85ab974 bpo-34523, bpo-35322: Fix unicode_encode_locale() (GH-10759) (GH-10761) Fix memory leak in PyUnicode_EncodeLocale() and PyUnicode_EncodeFSDefault() on error handling. Fix unicode_encode_locale() error handling. (cherry picked from commit bde9d6bbb46ca59bcee5d5060adaa33c3ffee3a6) 28 November 2018, 11:42:40 UTC
80db40c bpo-33676: Fix dangling thread in _test_multiprocessing (GH-10755) Fix WithThreadsTestPool.test_wrapped_exception() of test_multiprocessing_fork: join the pool. WithThreadsTestPool.test_del_pool() is now also decorated with @support.reap_threads. (cherry picked from commit b7278736b3ae158a7738057e3045bc767ced019e) Co-authored-by: Victor Stinner <vstinner@redhat.com> 28 November 2018, 00:30:34 UTC
ad8ac54 bpo-33012: Fix signatures of METH_NOARGS functions. (GH-10736) (GH-10748) (cherry picked from commit 81524022d0c0df7a41f9b2b2df41e2ebe140e610) 27 November 2018, 18:27:47 UTC
5ceb701 bpo-33029: Fix signatures of getter and setter functions. (GH-10746) Fix also return type for few other functions (clear, releasebuffer). (cherry picked from commit d4f9cf5545d6d8844e0726552ef2e366f5cc3abd) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 27 November 2018, 17:58:07 UTC
d669154 bpo-35317: Fix mktime() error in test_email (GH-10721) Fix mktime() overflow error in test_email: run test_localtime_daylight_true_dst_true() and test_localtime_daylight_false_dst_true() with a specific timezone. (cherry picked from commit cfaafda8e3e19764682abb4bd4c574accb784c42) Co-authored-by: Victor Stinner <vstinner@redhat.com> 27 November 2018, 11:57:56 UTC
7f9fb0f bpo-33954: Rewrite FILL() macro of unicodeobject.c (GH-10738) Copy code from master: add assertions on start and value, replace 'i' iterator with 'end' pointer for the loop stop condition. _PyUnicode_FastFill(): fix type of 'data', it must not be constant, since data is modified by FILL(). 27 November 2018, 11:42:04 UTC
716a808 closes bpo-34212: Build core extension modules with Py_BUILD_CORE_BUILTIN. (GH-8712) (cherry picked from commit da324d53d420347344236ff64cf5eb9b675d6f86) Co-authored-by: E. M. Bray <erik.m.bray@gmail.com> 27 November 2018, 02:32:57 UTC
2a37f01 bpo-35308: Fix regression where BROWSER env var is not respected. (GH-10693) Regression introduced in e3ce695 and 25b804a, where the old parameter update_tryorder to _synthesize was first ignored, then given the opposite value in the attempt to fix bpo-31014. (cherry picked from commit 8c281ed403fd915284d5bba2405d7c47f8195066) Co-authored-by: Zhiming Wang <i@zhimingwang.org> 26 November 2018, 21:49:28 UTC
5350dd1 bpo-33723: Fix test_time.test_thread_time() (GH-10724) Tolerate up to 30 ms, instead of 15 min, in other threads. (cherry picked from commit 65c216e74f7957006ef7653b7e2afe83007c45ce) Co-authored-by: Victor Stinner <vstinner@redhat.com> 26 November 2018, 20:36:54 UTC
6f8cab0 [3.7] bpo-35255: Doc: Delete now useless Windows FAQ section (GH-10557) (GH-10722) (cherry picked from commit 5719f275b7153a00a800f5481271a6fc26659c65) Co-authored-by: Mathieu Dupuy <deronnax@users.noreply.github.com> https://bugs.python.org/issue35255 26 November 2018, 17:05:48 UTC
6f5fa1b bpo-33954: Fix _PyUnicode_InsertThousandsGrouping() (GH-10623) (GH-10718) Fix str.format(), float.__format__() and complex.__format__() methods for non-ASCII decimal point when using the "n" formatter. Rewrite _PyUnicode_InsertThousandsGrouping(): it now requires a _PyUnicodeWriter object for the buffer and a Python str object for digits. (cherry picked from commit 59423e3ddd736387cef8f7632c71954c1859bed0) 26 November 2018, 13:17:01 UTC
e88553c bpo-35313: Fix test_embed when run from venv (GH-10713) (GH-10715) test_embed.InitConfigTests now gets the expected configuration from a child process run with -S to not run the site module. (cherry picked from commit a6537fb7c2f7a007b4ab616c4617afd56d18347d) 26 November 2018, 11:42:06 UTC
c707400 bpo-35300: Add usage note to the lru_cache() docs (GH-10707) (GH-10708) 26 November 2018, 01:00:37 UTC
6a528cc closes bpo-35309: cpath should be capath (GH-10701) (cherry picked from commit 158695817d736df8b18682866033c87e46252309) Co-authored-by: Boštjan Mejak <bostjan.xperia@gmail.com> 25 November 2018, 20:51:02 UTC
89a3087 bpo-32035: Fix words about strings and bytes in zipfile documentation. (GH-10592) (cherry picked from commit 4bb186d7e253ad4def875305e06690181e923dfd) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 25 November 2018, 09:30:37 UTC
bc665b4 bpo-35303: Fix a reference leak in _operator.c's methodcaller_repr(). (GH-10689) (cherry picked from commit 5b83ef71d3060e1651d3680e805f13a1049c7d6d) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 23 November 2018, 19:58:08 UTC
903a3e8 bpo-29877: compileall: import ProcessPoolExecutor only when needed (GH-4856) Importing ProcessPoolExecutor may hang or cause an error when the import accesses urandom on a low resource platform https://bugs.python.org/issue29877 (cherry picked from commit 1d817e4c8259f49602eefe9729743f6d9d748e8d) Co-authored-by: Dustin Spicuzza <dustin@virtualroadside.com> 23 November 2018, 17:41:54 UTC
01e5799 bpo-34812: subprocess._args_from_interpreter_flags(): add isolated (GH-10675) The "-I" command line option (run Python in isolated mode) is now also copied by the multiprocessing and distutils modules when spawning child processes. Previously, only -E and -s options (enabled by -I) were copied. subprocess._args_from_interpreter_flags() now copies the -I flag. (cherry picked from commit 9de363271519e0616f4a7b59427057c4810d3acc) Co-authored-by: Victor Stinner <vstinner@redhat.com> 23 November 2018, 17:13:32 UTC
70cc092 Linkify SMTP.quit() in smtplib documentation. (GH-9785) (cherry picked from commit ba57963a95a994947b8bec6869e810a74a751278) Co-authored-by: takey <taketakeyyy@gmail.com> 23 November 2018, 16:59:05 UTC
56742f1 [3.7] bpo-35189: Retry fnctl calls on EINTR (GH-10413) (GH-10678) * 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. (cherry picked from commit aac1f81eef971876ba5b1673db9ce6620311c469) * bpo-35189: Retry fnctl calls on EINTR (GH-10413) Modify the following fnctl function to retry if interrupted by a signal (EINTR): flock, lockf, fnctl. (cherry picked from commit b409ffa848b280c1db1b4f450bfae14f263099ac) Co-Authored-By: nierob <nierob@users.noreply.github.com> 23 November 2018, 16:53:14 UTC
f6e323c bpo-34523: Fix C locale coercion on FreeBSD CURRENT (GH-10672) (GH-10673) bpo-34523, bpo-35290: C locale coercion now resets the Python internal "force ASCII" mode. This change fix the filesystem encoding on FreeBSD CURRENT, which has a new "C.UTF-8" locale, when the UTF-8 mode is disabled. Add _Py_ResetForceASCII(): _Py_SetLocaleFromEnv() now calls it. (cherry picked from commit 353933e712b6c7f7ba9a9a50bd5bd472db7c35d0) 23 November 2018, 12:37:42 UTC
95036ea [3.7] bpo-9263: _PyObject_Dump() detects freed memory (GH-10061) (GH-10662) * bpo-9263: _PyObject_Dump() detects freed memory (GH-10061) _PyObject_Dump() now uses an heuristic to check if the object memory has been freed: log "<freed object>" in that case. The heuristic rely on the debug hooks on Python memory allocators which fills the memory with DEADBYTE (0xDB) when memory is deallocated. Use PYTHONMALLOC=debug to always enable these debug hooks. (cherry picked from commit 82af0b63b07aa8d92b50098e382b458143cfc677) * bpo-9263: Fix _PyObject_Dump() for freed object (#10661) If _PyObject_Dump() detects that the object is freed, don't try to dump it (exit immediately). Enhance also _PyObject_IsFreed(): it now detects if the pointer itself looks like freed memory. (cherry picked from commit 2cf5d32fd9e61488e8b0be55a2e92a752ba8b06b) 22 November 2018, 16:15:37 UTC
a519411 Revert "bpo-35239: _PySys_EndInit() copies module_search_path (GH-10532)" (GH-10660) This reverts commit d2be9a5c13221fb84c2221bbfd93efac6111e697. 22 November 2018, 15:11:15 UTC
18f3327 bpo-24658: os.read() reuses _PY_READ_MAX (GH-10657) os_read_impl() now also truncates the size to _PY_READ_MAX on macOS, to avoid to allocate a larger buffer even if _Py_read() is limited to _PY_READ_MAX bytes (ex: INT_MAX on macOS). (cherry picked from commit 9a0d7a7648547ffb77144bf2480155f6d7940dea) Co-authored-by: Victor Stinner <vstinner@redhat.com> 22 November 2018, 14:17:34 UTC
df6374e bpo-31146: Don't fallback switcher to english on not-yet pusblished languages. (GH-10558) (cherry picked from commit 6b73bb523a176123a819e4ebac3727d31d861515) Co-authored-by: Julien Palard <julien@palard.fr> 21 November 2018, 22:46:30 UTC
3b7258a [3.7] 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. (cherry picked from commit 361e8683e7340c600b22f4a514b81448ccec66dc) Co-authored-by: Zhiming Wang <github@zmwang.pw> 21 November 2018, 12:54:17 UTC
d170e59 bpo-35221: Additional hint that the placeholder is to be replaced. (GH-10604) (GH-10629) (cherry picked from commit d936a8f8e0964de1147656f1435532f0170f8b6c) Co-authored-by: Julien Palard <julien@palard.fr> 21 November 2018, 08:48:57 UTC
129642a bpo-34532: Fixed exit code for py.exe list versions arg (GH-9039) (cherry picked from commit c8fe9ccf7bfbcf9a2cb48e3b6abacf6ec0e5e58d) Co-authored-by: Brendan Gerrity <brerrity@gmail.com> 20 November 2018, 21:48:34 UTC
6eff6b8 bpo-28604: Fix localeconv() for different LC_MONETARY (GH-10606) (GH-10619) 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(). (cherry picked from commit 02e6bf7f2025cddcbde6432f6b6396198ab313f4) 20 November 2018, 21:06:21 UTC
d57ab8a 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(). (cherry picked from commit 3ec0f495163da3b7a15deb2805cec48aed432f58) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 20 November 2018, 18:59:12 UTC
f8f9915 bpo-9842: Add references for using "..." as a placeholder to the index. (GH-10330) (cherry picked from commit 6c48bf2d9e1e18dfbfa35f7582ddd32f11f75129) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 20 November 2018, 18:07:54 UTC
c743a6a Upgrade pip to 18.1 and setuptools to 40.6.2 (GH-10598) (cherry picked from commit 8b9c33ea9ce902f902c9d9900121010801950547) Co-authored-by: Donald Stufft <donald@stufft.io> 19 November 2018, 13:07:34 UTC
0e1312c bpo-35233: test_embed: fix filesystem encoding (GH-10597) Fix InitConfigTests: if utf8_mode is enabled, the expected filesystem encoding is UTF-8. 19 November 2018, 09:05:55 UTC
ae02a92 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 (cherry picked from commit 062a57bf4b768ef726975bcc1d34398387520147) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 18 November 2018, 16:58:20 UTC
e851049 bpo-34725: Adds _Py_SetProgramFullPath so embedders may override sys.executable (GH-9861) 18 November 2018, 04:42:08 UTC
d1a97b3 [3.7] bpo-25438: document what codec PyMemberDef T_STRING decodes the char * as (GH-10580) (GH-10586) Source of T_STRING: https://github.com/python/cpython/blob/e42b705188271da108de42b55d9344642170aa2b/Python/structmember.cGH-L51 Source of PyUnicode_FromString https://github.com/python/cpython/blob/master/Include/unicodeobject.hGH-L702 https://bugs.python.org/issue25438 (cherry picked from commit 689d555ec135d4115574addd063c358ac4897cc4) Co-authored-by: Windson yang <wiwindson@outlook.com> https://bugs.python.org/issue25438 17 November 2018, 19:49:58 UTC
f415aa1 Add --tempdir option for test run (GH-10322) (cherry picked from commit 38df97a03c5102e717a110ab69bff8e5c9ebfd08) Co-authored-by: Steve Dower <steve.dower@microsoft.com> 17 November 2018, 12:31:47 UTC
3a600d2 bpo-35202: Remove more unused imports in idlelib (GH-10573) (cherry picked from commit 5a087d5401e6956cf4c6d95f15fedabf39a4f5af) Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com> 17 November 2018, 06:48:40 UTC
0ee5409 Add a missed PyErr_NoMemory() in symtable_new(). (GH-10576) This missed PyErr_NoMemory() could cause a SystemError when calling _symtable.symtable(). (cherry picked from commit ad65f15581173542f1d2a9968a63bee272510ce3) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 16 November 2018, 16:31:47 UTC
0461c3b bpo-35250: Correct argument name "num" -> "btn" in turtle docs. (GH-10565) (cherry picked from commit 4edeaeac4c194ba5d09187640b5cfca5e03be617) Co-authored-by: Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) <thatiparthysreenivas@gmail.com> 16 November 2018, 13:55:14 UTC
be34cb2 Fix outdated info in datamodel about dicts (GH-9807) (cherry picked from commit a48e0eb9673ec96d1decb8a230331533cfb6138b) Co-authored-by: wim glenn <wim.glenn@gmail.com> 16 November 2018, 12:20:03 UTC
1b80a37 bpo-33816: Remove outdated metaclass example (GH-7566) (cherry picked from commit c2ccac7b9f9a1132ca36255b0ddfeecef4371aa3) Co-authored-by: Andrés Delfino <adelfino@gmail.com> 16 November 2018, 11:51:20 UTC
d2be9a5 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. (cherry picked from commit 37cd982df02795905886ab36a2378ed557cb6f60) Co-authored-by: Victor Stinner <vstinner@redhat.com> 16 November 2018, 11:34:35 UTC
579c417 bpo-35213: Where appropriate, use 'macOS' in idlelib. (GH-10478) (cherry picked from commit b65413b497a07f521d835b799be7dd0afcedbd65) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 15 November 2018, 19:31:31 UTC
b5ea5e5 Fix a possible reference leak in _socket.getaddrinfo(). (GH-10543) "single" needs to be decrefed if PyList_Append() fails. (cherry picked from commit 4c596d54aa6a55e9d2a3db78891e656ebbfb63c8) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 15 November 2018, 09:25:34 UTC
b6b56b4 Fix typo in asynchronous generator iterator documentation (GH-10542) Remove an unnecessary "that": ... will execute that the body ... -> ... will execute the body ... (cherry picked from commit 25221b328339fb1726b58742e91b6e49c178023a) Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com> 15 November 2018, 06:20:16 UTC
9ee1d42 bpo-35233: InitConfigTests tests more config vars (GH-10541) (GH-10546) test_embed.InitConfigTests tests more configuration variables. Changes: * InitConfigTests tests more core configuration variables: * base_exec_prefix * base_prefix * exec_prefix * home * module_search_path_env * prefix * "_testembed init_from_config" tests more variables: * argv * warnoptions * xoptions * Py_HasFileSystemDefaultEncoding value is no longer tested since it depends on the LC_CTYPE locale and the platform. * 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). * Use more macros in _PyCoreConfig_AsDict() and _PyMainInterpreterConfig_AsDict() to reduce code duplication. * Other minor cleanups. (cherry picked from commit 01de89cb59107d4f889aa503a1c0350dae4aebaf) 14 November 2018, 17:58:01 UTC
9053d2f [3.7] bpo-32613: Update window FAQ (GH-5552). (GH-10544) (cherry picked from commit 64313478bcbd0a708c3ce5d4d14f977da56e4be9) Co-authored-by: Julien Palard <julien@palard.fr> https://bugs.python.org/issue32613 14 November 2018, 17:17:35 UTC
bc09ee8 bpo-35233: Fix test_embed.InitConfigTests on macOS (GH-10539) On macOS and Windows, Py_HasFileSystemDefaultEncoding is 1 by default. 14 November 2018, 10:36:47 UTC
88cbea4 bpo-35233: Fix _PyMainInterpreterConfig_Copy() (GH-10537) Fix _PyMainInterpreterConfig_Copy(): copy 'install_signal_handlers' attribute 14 November 2018, 01:45:25 UTC
35c28d5 [3.7] bpo-35233: Rewrite test_embed.InitConfigTests (GH-10524) (GH-10529) * Add C functions: * _Py_GetGlobalVariablesAsDict() * _PyCoreConfig_AsDict() * _PyMainInterpreterConfig_AsDict() * Add new _testcapi methods: * get_global_config() * get_core_config() * get_main_config() * test.pythoninfo: get global, core and main configuration * _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 14 November 2018, 01:01:52 UTC
52fb9f1 Grammar corrections in abc.rst (GH-10525) (cherry picked from commit 8e0b05e2f4b9fd703cbe1ae8d058852ef3781f44) Co-authored-by: Andrés Delfino <adelfino@gmail.com> 14 November 2018, 01:00:36 UTC
e7a5be5 Link to property built-in in abc.rst (GH-10526) (cherry picked from commit bf1355b4240173a306dd46e720ae4b696277bb41) Co-authored-by: Andrés Delfino <adelfino@gmail.com> 14 November 2018, 00:45:11 UTC
9fbcb14 [3.7] bpo-35214: Fix OOB memory access in unicode escape parser (GH-10506) (GH-10522) 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"' (cherry picked from commit 746b2d35ea47005054ed774fecaed64fab803d7d) Co-authored-by: Gregory P. Smith <greg@krypto.org> https://bugs.python.org/issue35214 14 November 2018, 00:39:36 UTC
c30830b Fix doc typo: Window -> Windows (GH-10508) (cherry picked from commit daeb3c4c58663c2e2a3ddf1c2fbbff9a06269961) Co-authored-by: l-n-s <supervillain@riseup.net> 14 November 2018, 00:18:20 UTC
d57a3e5 bpo-29564:_PyMem_DumpTraceback() suggests enabling tracemalloc (GH-10510) (GH-10517) 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:50:56 UTC
55b4771 bpo-35229: Deprecate _PyObject_GC_TRACK() (GH-10511) Deprecate _PyObject_GC_TRACK() and _PyObject_GC_UNTRACK() in the documentation. These macros are removed from Python 3.8 by the commit 1a6be91e6fd65ce9cb88cbbbb193db7e92ec6076. 13 November 2018, 12:06:11 UTC
f6602f9 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 (cherry picked from commit 3015fb8ce4d25603434b9b44bb7effb98a481532) Co-authored-by: Gregory P. Smith <greg@krypto.org> 13 November 2018, 06:20:21 UTC
5e4a13b Fix a couple documentation typos. (GH-10498) reproduciblity -> reproducibility PyPA are the group -> PyPA is the group (cherry picked from commit 0dc1e45dfd242493ecdac5dbcad51dbc8f922de7) Co-authored-by: Windson yang <wiwindson@outlook.com> 13 November 2018, 04:20:31 UTC
f0b21e1 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. (cherry picked from commit e6c77d8301ec1703abb755a7d3ce5bd8c999c082) Co-authored-by: Gregory P. Smith <greg@krypto.org> 13 November 2018, 03:59:29 UTC
3f9fe53 bpo-35031: Fix test_start_tls_server_1 on FreeBSD buildbots (GH-10011) Some FreeBSD buildbots fail to run this test as the eof was not being received by the server if the size is not big enough. This behaviour only appears if the client is using TLS1.3. (cherry picked from commit f6a47f3e316cede2a07a1f74a509f6d80ab8fef0) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 13 November 2018, 01:24:39 UTC
5f4d05d [3.7] bpo-35214: Initial clang MemorySanitizer support (GH-10479) (GH-10492) 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. (cherry picked from commit 1584a0081500d35dc93ff88e5836df35faf3e3e2) Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google LLC] 12 November 2018, 21:48:24 UTC
f3b0b91 Improve grammar in Glossary. (GH-10474) a asynchronous generator -> an asynchronous generator (cherry picked from commit a9655b7f71b8976c369160ef362d0e706cfcd8c9) Co-authored-by: Windson yang <wiwindson@outlook.com> 12 November 2018, 17:48:11 UTC
8a54c67 Correct grammar mistake in stdtypes.rst (GH-10481) (cherry picked from commit 7610f4fe93cf6909b5ffa28dcc46e55426243395) Co-authored-by: Andrés Delfino <adelfino@gmail.com> 12 November 2018, 17:45:05 UTC
5e51f12 Linkify PEP 8 in unix.rst (GH-10482) (cherry picked from commit 9404e7737bd09bc1df154e1216d721e5168e4c68) Co-authored-by: Andrés Delfino <adelfino@gmail.com> 12 November 2018, 16:48:56 UTC
a744abc Minor grammar improvement to io documentation. (GH-10329) Independently of -> Independent of (cherry picked from commit cd449806fac1246cb7b4d392026fe6986ec01fb7) Co-authored-by: Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) <thatiparthysreenivas@gmail.com> 12 November 2018, 04:29:33 UTC
7a90504 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 (cherry picked from commit 7432f0929f2e90bde30e089da8e1efc580ccade1) Co-authored-by: Jakub Stasiak <jakub@stasiak.at> 12 November 2018, 03:48:09 UTC
aa493b5 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. (cherry picked from commit 082875dcd6d482558e5f1da97a1c801d60b3ed5b) Co-authored-by: Julien Palard <julien@palard.fr> 12 November 2018, 00:24:31 UTC
1ec5781 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. (cherry picked from commit fd3a91cbf93dd7bd97f01add9c90075d63cd7316) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru> 11 November 2018, 23:44:34 UTC
7d7ff67 bpo-33699: Describe try's else clause with the rest of the try clause (GH-7252) https://bugs.python.org/issue33699 (cherry picked from commit b086c8afdb8c862011e3e27d4c8f6833749f2c56) Co-authored-by: Andrés Delfino <adelfino@gmail.com> 11 November 2018, 19:43:52 UTC
317dbb4 dict insertion order is guaranteed since 3.7 (GH-10431) (cherry picked from commit 76e8fd7b7ee0b3d18e7df960a2f7d5c3fad5f15d) Co-authored-by: Andrés Delfino <adelfino@gmail.com> 11 November 2018, 17:02:11 UTC
b91c27d 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. (cherry picked from commit 50ff02b43145f33f8e28ffbfcc6a9d15c4749a64) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 11 November 2018, 04:46:12 UTC
2847cca bpo-35202: Remove unused imports in idlelib (GH-10438) (cherry picked from commit 43a74abb3a87092a7fd6c71042eafb977d70d8e0) Co-authored-by: Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) <thatiparthysreenivas@gmail.com> 10 November 2018, 07:06:22 UTC
3da64a0 Correct a typo in the Unittest documentation (GH-10397) Co-Authored-By: maggyero <gery.ogam@gmail.com> (cherry picked from commit 009b2f02049eda3b29d4f4f743e51df106686375) Co-authored-by: Géry Ogam <gery.ogam@gmail.com> 09 November 2018, 19:43:43 UTC
33fd60d Cleanup and improve the regex tokenizer example. (GH-10426) (#10427) 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. (cherry picked from commit b83942c755a78f6d917743b73ed87a8fd9f367de) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> 09 November 2018, 09:26:55 UTC
22234f1 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 (cherry picked from commit 7a69cf47a9bbc95f95fd67c982bff121b2a903cb) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru> 09 November 2018, 07:35:05 UTC
f16ebcd 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/7db3c488335168993689ddae5914a28e16188447GH-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. (cherry picked from commit 49fa4a9f1ef387e16596f271414c855339eadf09) Co-authored-by: Gregory P. Smith <greg@krypto.org> 09 November 2018, 02:13:14 UTC
732f745 [3.7] Doc: Make all versions sidebars the same for consistency. (GH-10288) (GH-10409) 08 November 2018, 08:07:05 UTC
9d36581 bpo-34966: Improve support of method aliases in pydoc. (GH-9823) Pydoc now does not duplicate docstrings for aliases of inherited methods. (cherry picked from commit a44d34e17908a49d584f86c4f8642a50707b7150) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 08 November 2018, 07:08:05 UTC
3ba5e25 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. (cherry picked from commit 6843ffe4533e9f2cde036296fd932fef6f059687) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 08 November 2018, 00:13:58 UTC
b097f9f 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. (cherry picked from commit b93925047a025511c48a7bf3e6e6f0cfec79b8ed) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 07 November 2018, 22:39:21 UTC
363839c bpo-35015: Doc: Fix internationalisation of the availability directive. (GH-10360) (cherry picked from commit beed84ca5e0f2784d758478d4e7c81c9c1088c4e) Co-authored-by: Julien Palard <julien@palard.fr> 07 November 2018, 21:48:47 UTC
881e273 bpo-32409: Fix regression in activate.bat on international Windows (GH-10295) (GH-10377) 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. (cherry picked from commit c64583b6d3e8516a8cd2b5f84fc1e300bfac2206) Co-authored-by: samstagern <30337691+samstagern@users.noreply.github.com> 07 November 2018, 19:26:15 UTC
e40e205 Add link to PEP 525 in Expressions. (GH-10333) (cherry picked from commit bfe1839aa994f0d84471254418a4ecfa7c7c9b9c) Co-authored-by: Andrés Delfino <adelfino@gmail.com> 07 November 2018, 18:32:05 UTC
38bdaa4 glob uses fnmatch.filter instead of fnmatch since 2001. (GH-10102) (cherry picked from commit ae31e3fbf4e7def772fc1c94342d1011424fdc99) Co-authored-by: Andrés Delfino <adelfino@gmail.com> 07 November 2018, 18:30:18 UTC
back to top