deae6b4 | Barry Warsaw | 30 December 2017, 20:18:06 UTC | bpo-32248 - Implement importlib.resources (#4911) Port importlib_resources to importlib.resources | 30 December 2017, 20:18:06 UTC |
ffcb4c0 | Andrew Svetlov | 30 December 2017, 16:52:56 UTC | bpo-32418: Postfix, raise NotImplementdError and close resources in tests (#5052) | 30 December 2017, 16:52:56 UTC |
1634fc2 | Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) | 30 December 2017, 15:09:32 UTC | bpo-32418: Add get_loop() method on Server, AbstractServer classes (#4997) * Add abstract get_loop() method to Server, AbstractServer classes. * Add test cases for get_loop() method in Server, AbstractServer classes * Add documentation for get_loop() method | 30 December 2017, 15:09:32 UTC |
fc35932 | Andrew Svetlov | 30 December 2017, 13:40:27 UTC | Fix typo (#5049) | 30 December 2017, 13:40:27 UTC |
02b9ef2 | Serhiy Storchaka | 30 December 2017, 07:47:42 UTC | bpo-32439: Clean up the code for compiling comparison expressions. (#5029) | 30 December 2017, 07:47:42 UTC |
f111b3d | Yury Selivanov | 30 December 2017, 05:35:36 UTC | bpo-23749: Implement loop.start_tls() (#5039) | 30 December 2017, 05:35:36 UTC |
bbdb17d | Benjamin Peterson | 29 December 2017, 21:13:06 UTC | return the new file descriptor from os.dup2 (closes bpo-32441) (#5041) | 29 December 2017, 21:13:06 UTC |
03220fd | Eric V. Smith | 29 December 2017, 18:59:58 UTC | bpo-32427: Expose dataclasses.MISSING object. (#5045) | 29 December 2017, 18:59:58 UTC |
e325608 | Benjamin Peterson | 29 December 2017, 07:24:40 UTC | remove unused import (#5040) | 29 December 2017, 07:24:40 UTC |
e5f7dcc | Benjamin Peterson | 29 December 2017, 01:54:12 UTC | make PatternCompiler use the packaged grammar if possible (more bpo-24960) (#5034) | 29 December 2017, 01:54:12 UTC |
e5681b9 | oldk | 28 December 2017, 14:37:46 UTC | bpo-32440: Update the docs URL to https in help() (GH-5030) In pydoc.py, the reference to Python' documentation was in http. The link has been updated to use https. | 28 December 2017, 14:37:46 UTC |
531dd7e | gfyoung | 28 December 2017, 08:28:25 UTC | Fix minor spelling error in test_sys_settrace.py. (#5025) | 28 December 2017, 08:28:25 UTC |
53f9135 | Serhiy Storchaka | 26 December 2017, 22:38:56 UTC | bpo-32416: Refactor tests for the f_lineno setter and add new tests. (#4991) | 26 December 2017, 22:38:56 UTC |
13a6c09 | Serhiy Storchaka | 26 December 2017, 10:30:41 UTC | bpo-32259: Make a TypeError message when unpack non-iterable more specific. (#4903) | 26 December 2017, 10:30:41 UTC |
a8f4e15 | Andrew Svetlov | 26 December 2017, 09:53:38 UTC | bpo-26133: Fix typos (#5010) * Fix typos * Change warning text * Add test | 26 December 2017, 09:53:38 UTC |
e0aef4f | Yury Selivanov | 25 December 2017, 21:16:10 UTC | bpo-31721: Allow Future._log_traceback to only be set to False (#5009) | 25 December 2017, 21:16:10 UTC |
3070b71 | INADA Naoki | 25 December 2017, 17:03:24 UTC | bpo-32422: Reduce lru_cache memory usage (GH-5008) | 25 December 2017, 17:03:24 UTC |
0cf16f9 | Yury Selivanov | 25 December 2017, 15:48:15 UTC | bpo-32363: Disable Task.set_exception() and Task.set_result() (#4923) | 25 December 2017, 15:48:15 UTC |
3dfbaf5 | Serhiy Storchaka | 25 December 2017, 10:47:50 UTC | bpo-32372: Move __debug__ optimization to the AST level. (#4925) | 25 December 2017, 10:47:50 UTC |
1b3029a | Serhiy Storchaka | 25 December 2017, 00:08:42 UTC | bpo-29084: Exclude C API for OrderedDict from the limited C API. (#4900) | 25 December 2017, 00:08:42 UTC |
4f146f9 | Andrew Svetlov | 24 December 2017, 11:50:03 UTC | bpo-26133: Clear signals list on interpreter finalizing (#5002) | 24 December 2017, 11:50:03 UTC |
4856b0f | INADA Naoki | 24 December 2017, 01:29:19 UTC | bpo-32402: io: Add missing NULL check. (GH-4971) _PyUnicode_FromId() may return NULL. Reported by coverity scan: CID 1426868, 1426867. | 24 December 2017, 01:29:19 UTC |
719ccbc | Yury Selivanov | 23 December 2017, 21:29:26 UTC | bpo-32415: Fix "error is already set" (#4999) | 23 December 2017, 21:29:26 UTC |
a330f48 | Andrew Svetlov | 23 December 2017, 21:03:27 UTC | Fix check for run_in_executor on closed loop. (#4996) | 23 December 2017, 21:03:27 UTC |
a8fb079 | Yury Selivanov | 23 December 2017, 20:42:27 UTC | bpo-32415: Add more tests (#4995) | 23 December 2017, 20:42:27 UTC |
0f47fa2 | Andrew Svetlov | 23 December 2017, 20:06:46 UTC | bpo-32357: Use PySet_GET_SIZE macro in _is_coroutine() from _asynciomodule.c (#4990) | 23 December 2017, 20:06:46 UTC |
ca9b36c | Yury Selivanov | 23 December 2017, 20:04:15 UTC | bpo-32415: Add asyncio.Task.get_loop() and Future.get_loop() (#4992) | 23 December 2017, 20:04:15 UTC |
558aa30 | Yury Selivanov | 23 December 2017, 17:44:29 UTC | bpo-32357: Fix tests in refleak mode (#4989) | 23 December 2017, 17:44:29 UTC |
c0919c2 | Mariatta | 23 December 2017, 07:39:03 UTC | bpo-26439: Convert %s in Lib/ctypes/_aix.py to f-strings. (GH-4986) | 23 December 2017, 07:39:03 UTC |
d11e8e0 | Benjamin Peterson | 23 December 2017, 04:48:13 UTC | correct wording (#4983) | 23 December 2017, 04:48:13 UTC |
8a58771 | Benjamin Peterson | 22 December 2017, 20:18:33 UTC | bpo-24960: use pkgutil.get_data in lib2to3 to read pickled grammar files (#4977) This is more complicated than it should be because we need to preserve the useful mtime-based regeneration feature that lib2to3.pgen2.driver.load_grammar has. We only look for the pickled grammar file with pkgutil.get_data and only if the source file does not exist. | 22 December 2017, 20:18:33 UTC |
62ed6be | Benjamin Peterson | 22 December 2017, 05:43:09 UTC | remove the dynload_next.c file (closes bpo-32386) (#4957) | 22 December 2017, 05:43:09 UTC |
424315f | Victor Stinner | 21 December 2017, 23:09:26 UTC | bpo-29240: Skip test_readline.test_nonascii() (#4968) Skip the test which fails on FreeBSD with POSIX locale. Skip the test to fix FreeBSD buildbots, until a fix can be found, so the buildbots can catch other regressions. | 21 December 2017, 23:09:26 UTC |
550ee05 | Victor Stinner | 21 December 2017, 23:05:05 UTC | bpo-20891: Skip test_embed.test_bpo20891() (#4967) Skip the test failing randomly because of known race condition. Skip the test to fix macOS buildbots until a decision is made on the proper fix for the race condition. | 21 December 2017, 23:05:05 UTC |
9bee329 | Victor Stinner | 21 December 2017, 15:49:13 UTC | bpo-32030: Add _Py_FindEnvConfigValue() (#4963) Add a new _Py_FindEnvConfigValue() function: code shared between Windows and Unix implementations of _PyPathConfig_Calculate() to read the pyenv.cfg file. _Py_FindEnvConfigValue() now uses _Py_DecodeUTF8_surrogateescape() instead of using a Python Unicode string, the Python API must not be used early during Python initialization. Same change in Unix search_for_exec_prefix(): use _Py_DecodeUTF8_surrogateescape(). Cleanup also encode_current_locale(): PyMem_RawFree/PyMem_Free can be called with NULL. Fix also "NUL byte" => "NULL byte" typo. | 21 December 2017, 15:49:13 UTC |
9dd7620 | Victor Stinner | 21 December 2017, 15:20:32 UTC | bpo-32030: Add _Py_EncodeLocaleRaw() (#4961) Replace Py_EncodeLocale() with _Py_EncodeLocaleRaw() in: * _Py_wfopen() * _Py_wreadlink() * _Py_wrealpath() * _Py_wstat() * pymain_open_filename() These functions are called early during Python intialization, only the RAW memory allocator must be used. | 21 December 2017, 15:20:32 UTC |
4a02543 | Andrew Svetlov | 21 December 2017, 15:06:46 UTC | bpo-26133: Dont unsubscribe signals in UNIX even loop on interpreter shutdown (#4956) | 21 December 2017, 15:06:46 UTC |
e47e698 | Victor Stinner | 21 December 2017, 14:45:16 UTC | bpo-32030: Add _Py_EncodeUTF8_surrogateescape() (#4960) Py_EncodeLocale() now uses _Py_EncodeUTF8_surrogateescape(), instead of using temporary unicode and bytes objects. So Py_EncodeLocale() doesn't use the Python C API anymore. | 21 December 2017, 14:45:16 UTC |
fbd6051 | Коренберг Марк | 21 December 2017, 12:16:17 UTC | bpo-32323: urllib.parse.urlsplit() must not lowercase() IPv6 scope value (#4867) | 21 December 2017, 12:16:17 UTC |
a8d25a1 | Sebastian Pucilowski | 21 December 2017, 09:00:49 UTC | Fix trivial typo in pickle.rst (#4955) | 21 December 2017, 09:00:49 UTC |
09dc2f5 | Paul Ganssle | 21 December 2017, 05:33:49 UTC | bpo-15873: Implement [date][time].fromisoformat (#4699) Closes bpo-15873. | 21 December 2017, 05:33:49 UTC |
507434f | INADA Naoki | 21 December 2017, 00:59:53 UTC | bpo-15216: io: TextIOWrapper.reconfigure() accepts encoding, errors and newline (GH-2343) | 21 December 2017, 00:59:53 UTC |
31e9908 | Victor Stinner | 20 December 2017, 22:41:38 UTC | bpo-32030: Fix usage of memory allocators (#4953) * _Py_InitializeCore() doesn't call _PyMem_SetupAllocators() anymore if the PYTHONMALLOC environment variable is not set. * pymain_cmdline() now sets the allocator to the default, instead of setting the allocator in subfunctions. * Py_SetStandardStreamEncoding() now calls _PyMem_SetDefaultAllocator() to get a known allocator, to be able to release the memory with the same allocator. | 20 December 2017, 22:41:38 UTC |
83cb778 | Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) | 20 December 2017, 21:36:10 UTC | correct the typos (#4950) | 20 December 2017, 21:36:10 UTC |
9cfc002 | Victor Stinner | 20 December 2017, 18:36:46 UTC | bpo-32030: Complete _PyCoreConfig_Read() (#4946) * Add _PyCoreConfig.install_signal_handlers * Remove _PyMain.config: _PyMainInterpreterConfig usage is now restricted to pymain_init_python_main(). * Rename _PyMain.core_config to _PyMain.config * _PyMainInterpreterConfig_Read() now creates the xoptions dictionary from the core config * Fix _PyMainInterpreterConfig_Read(): don't replace xoptions and argv if they are already set. | 20 December 2017, 18:36:46 UTC |
51eb1c6 | Andrew Svetlov | 20 December 2017, 18:24:43 UTC | bpo-29970: Make ssh_handshake_timeout None by default (#4939) * Make ssh_handshake_timeout None by default. * Raise ValueError if ssl_handshake_timeout is used without ssl. * Raise ValueError if ssl_handshake_timeout is not positive. | 20 December 2017, 18:24:43 UTC |
a7a751d | Antoine Pitrou | 20 December 2017, 18:06:20 UTC | bpo-32306: Clarify c.f.Executor.map() documentation (#4947) The built-in map() function collects function arguments lazily, but concurrent.futures.Executor.map() does so eagerly. | 20 December 2017, 18:06:20 UTC |
6b91a59 | Serhiy Storchaka | 20 December 2017, 17:21:02 UTC | bpo-32385: Clean up the C3 MRO algorithm implementation. (#4942) Use tuples and raw arrays instead of lists. | 20 December 2017, 17:21:02 UTC |
ca719ac | Victor Stinner | 20 December 2017, 17:00:19 UTC | bpo-32030: Add _PyCoreConfig.warnoptions (#4936) Merge _PyCoreConfig_ReadEnv() into _PyCoreConfig_Read(), and _Py_CommandLineDetails usage is now restricted to pymain_cmdline(). Changes: * _PyCoreConfig: Add nxoption, xoptions, nwarnoption and warnoptions * Add _PyCoreConfig.program: argv[0] or "" * Move filename, command, module and xoptions from _Py_CommandLineDetails to _PyMain. xoptions _Py_OptList becomes (int, wchar_t**) list. * Add pymain_cmdline() function * Rename copy_argv() to copy_wstrlist(). Rename clear_argv() to clear_wstrlist(). Remove _Py_OptList structure: use (int, wchar_t**) list instead. * Rename pymain_set_flag_from_env() to pymain_get_env_flag() * Rename pymain_set_flags_from_env() to pymain_get_env_flags() * _PyMainInterpreterConfig_Read() now creates the warnoptions from _PyCoreConfig.warnoptions * Inline pymain_add_warning_dev_mode() and pymain_add_warning_bytes_flag() into config_init_warnoptions() * Inline pymain_get_program_name() into _PyCoreConfig_Read() * _Py_CommandLineDetails: Replace warning_options with nwarnoption and warnoptions. Replace env_warning_options with nenv_warnoption and env_warnoptions. * pymain_warnings_envvar() now has a single implementation for Windows and Unix: use config_get_env_var_dup() to also get the variable as wchar_t* on Unix. | 20 December 2017, 17:00:19 UTC |
1f1a34c | Antoine Pitrou | 20 December 2017, 14:58:21 UTC | bpo-32379: Faster MRO computation for single inheritance (#4932) * bpo-32379: Faster MRO computation for single inheritance | 20 December 2017, 14:58:21 UTC |
776407f | Marcel Plch | 20 December 2017, 10:17:58 UTC | bpo-31901: atexit callbacks should be run at subinterpreter shutdown (#4611) Change atexit behavior and PEP-489 multiphase init support. | 20 December 2017, 10:17:58 UTC |
1976086 | Victor Stinner | 20 December 2017, 00:41:59 UTC | bpo-32030: Cleanup pymain_main() (#4935) * Reorganize pymain_main() to make the code more flat * Clear configurations before pymain_update_sys_path() * Mark Py_FatalError() and _Py_FatalInitError() with _Py_NO_RETURN * Replace _PyMain.run_code variable with a new RUN_CODE() macro * Move _PyMain.cf into a local variable in pymain_run_python() | 20 December 2017, 00:41:59 UTC |
c4bca95 | Victor Stinner | 19 December 2017, 22:48:17 UTC | bpo-32030: Add _PyCoreConfig.argv (#4934) * Add argc and argv to _PyCoreConfig * _PyMainInterpreterConfig_Read() now builds its argv from _PyCoreConfig.arg * Move _PyMain.env_warning_options into _Py_CommandLineDetails * Reorder pymain_free() | 19 December 2017, 22:48:17 UTC |
f4e21a2 | KatherineMichel | 19 December 2017, 21:03:09 UTC | Improve the F-strings and format specifier documentation (GH-4931) Mention that the format-specifier mini language in f-strings is the same one used by str.format. | 19 December 2017, 21:03:09 UTC |
f7686c1 | Neil Aspinall | 19 December 2017, 19:45:42 UTC | bpo-29970: Add timeout for SSL handshake in asyncio 10 seconds by default. | 19 December 2017, 19:45:42 UTC |
4b96593 | Antoine Pitrou | 19 December 2017, 18:48:45 UTC | bpo-32377: improve __del__ docs and fix mention about resurrection (#4927) * Fix #32377: improve __del__ docs and fix mention about resurrection * Mention that CPython only calls __del__ once. | 19 December 2017, 18:48:45 UTC |
e40ad79 | Zackery Spytz | 19 December 2017, 18:48:13 UTC | Fix GCC warning in _asynciomodule.c (#4928) | 19 December 2017, 18:48:13 UTC |
c5ae169 | Michael Felt | 19 December 2017, 12:58:49 UTC | bpo-26439 Fix ctypes.util.find_library failure on AIX (#4507) Implement find_library() support in ctypes/util for AIX. Add some AIX specific tests. | 19 December 2017, 12:58:49 UTC |
319c034 | Julien Duponchelle | 19 December 2017, 12:23:17 UTC | bpo-29711: Fix stop_serving in proactor loop kill all listening servers (#431) | 19 December 2017, 12:23:17 UTC |
36c2c04 | Yury Selivanov | 19 December 2017, 12:19:53 UTC | bpo-32355: Optimize asyncio.gather() (#4913) | 19 December 2017, 12:19:53 UTC |
a9d7e55 | Yury Selivanov | 19 December 2017, 12:18:45 UTC | bpo-32357: Optimize asyncio.iscoroutine() for non-native coroutines (#4915) | 19 December 2017, 12:18:45 UTC |
a7bd64c | Yury Selivanov | 19 December 2017, 11:44:37 UTC | bpo-27456: Simplify sock type checks (#4922) Recent sock.type fix (see bug 32331) makes sock.type checks simpler in asyncio. | 19 December 2017, 11:44:37 UTC |
5d86246 | Victor Stinner | 19 December 2017, 10:35:58 UTC | bpo-32030: Fix compiler warnings (#4921) Fix compiler warnings in Py_FinalizeEx(): only define variables if they are needed, add #ifdef. Other cleanup changes: * _PyWarnings_InitWithConfig() is no more needed: call _PyWarnings_Init() instead. * Inline pymain_init_main_interpreter() in its caller. This subfunction is no more justifed. | 19 December 2017, 10:35:58 UTC |
21be85f | Andrew Svetlov | 19 December 2017, 06:51:16 UTC | Improve test coverage (#4924) | 19 December 2017, 06:51:16 UTC |
9818142 | Yury Selivanov | 19 December 2017, 01:02:54 UTC | bpo-32331: Fix socket.type when SOCK_NONBLOCK is available (#4877) | 19 December 2017, 01:02:54 UTC |
6efcb6d | Victor Stinner | 18 December 2017, 22:42:55 UTC | bpo-32030: Fix compilation on FreeBSD, #include <fenv.h> (#4919) * main.c: add missing #include <fenv.h> on FreeBSD * indent also other #ifdef in main.c * cleanup Programs/python.c | 18 December 2017, 22:42:55 UTC |
d757aaf | Yury Selivanov | 18 December 2017, 22:03:23 UTC | bpo-32356: idempotent pause_/resume_reading; new is_reading method. (#4914) | 18 December 2017, 22:03:23 UTC |
2d8f063 | izbyshev | 18 December 2017, 20:26:49 UTC | bpo-32369: test_subprocess: Fix pass_fds check in test_close_fds() (#4920) The last part of test_close_fds() doesn't match its own comment. The following assertion always holds because fds_to_keep and open_fds are disjoint by construction. self.assertFalse(remaining_fds & fds_to_keep & open_fds, "Some fds not in pass_fds were left open") Fix the code to match the message in the assertion. | 18 December 2017, 20:26:49 UTC |
02e4b7f | Andrew Svetlov | 18 December 2017, 16:20:42 UTC | Add @asvetlov to asyncio codeowners (#4917) | 18 December 2017, 16:20:42 UTC |
bd6ec4d | Serhiy Storchaka | 18 December 2017, 12:29:12 UTC | bpo-32365: Fix a reference leak when compile __debug__. (#4916) It was introduced in bpo-27169. | 18 December 2017, 12:29:12 UTC |
b2a6083 | Segev Finer | 18 December 2017, 09:28:19 UTC | bpo-19764: Implemented support for subprocess.Popen(close_fds=True) on Windows (#1218) Even though Python marks any handles it opens as non-inheritable there is still a race when using `subprocess.Popen` since creating a process with redirected stdio requires temporarily creating inheritable handles. By implementing support for `subprocess.Popen(close_fds=True)` we fix this race. In order to implement this we use PROC_THREAD_ATTRIBUTE_HANDLE_LIST which is available since Windows Vista. Which allows to pass an explicit list of handles to inherit when creating a process. This commit also adds `STARTUPINFO.lpAttributeList["handle_list"]` which can be used to control PROC_THREAD_ATTRIBUTE_HANDLE_LIST directly. | 18 December 2017, 09:28:19 UTC |
87010e8 | INADA Naoki | 18 December 2017, 06:52:54 UTC | bpo-29469: peephole: Remove const_stack (GH-4879) Constant folding was moved to AST optimizer. But compiler may emit LOAD_CONSTs + BUILD_TUPLE. For example, default arguments can be constant tuple if all arguments are constant. This commit makes peephole's tuple folding simple. It doesn't support nested tuples because nested tuples are folded by AST optimizer already. | 18 December 2017, 06:52:54 UTC |
902ab80 | Nathaniel J. Smith | 18 December 2017, 04:10:18 UTC | bpo-30050: Allow disabling full buffer warnings in signal.set_wakeup_fd (#4792) | 18 December 2017, 04:10:18 UTC |
1b7c11f | Yury Selivanov | 18 December 2017, 01:19:47 UTC | bpo-32348: Optimize asyncio.Future schedule/add/remove callback. (#4907) | 18 December 2017, 01:19:47 UTC |
4c72bc4 | Benjamin Peterson | 17 December 2017, 18:34:00 UTC | add 'extern' to pygetopt.h symbols, so then don't end up in comdat (#4909) bpo-32264 | 17 December 2017, 18:34:00 UTC |
5382c05 | Andrew Svetlov | 17 December 2017, 14:41:30 UTC | bpo-32351: Use fastpath in asyncio.sleep if delay<0 (#4908) * Use fastpath in asyncio.sleep if delay<0 * Add NEWS entry | 17 December 2017, 14:41:30 UTC |
44d1a59 | Andrew Svetlov | 16 December 2017, 19:58:38 UTC | bpo-32250: Implement asyncio.current_task() and asyncio.all_tasks() (#4799) | 16 December 2017, 19:58:38 UTC |
9508402 | Andrew Svetlov | 16 December 2017, 19:08:05 UTC | Fix PyObject_Hash signature in comment (#4905) | 16 December 2017, 19:08:05 UTC |
45700fb | Serhiy Storchaka | 16 December 2017, 09:25:56 UTC | Add tests for using PEP560 with classes implemented in C. (#4883) Based on tests from #4878 | 16 December 2017, 09:25:56 UTC |
9c19b02 | Nick Coghlan | 16 December 2017, 08:51:19 UTC | bpo-32002: Refactor C locale coercion tests (GH-4369) Exactly which locale requests will end up giving you the "C" locale is actually platform dependent. A blank locale and "POSIX" will translate to "C" on most Linux distros, but may not do so on other platforms, so this adjusts the way the tests are structured to better account for that. This is an initial step towards fixing the current test failure on Cygwin (hence the issue reference) | 16 December 2017, 08:51:19 UTC |
0c644fc | Benjamin Peterson | 16 December 2017, 07:42:33 UTC | fix up signedness in PyImport_ExtendInittab (#4831) As a result of 92a3c6f493ad411e4cf0acdf305ef4876aa90669, the compiler complains: Python/import.c:2311:21: warning: comparison of integers of different signs: 'long' and 'unsigned long' [-Wsign-compare] if ((i + n + 1) <= PY_SSIZE_T_MAX / sizeof(struct _inittab)) { ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This overflow is extremely unlikely to happen, but let's avoid undefined behavior anyway. | 16 December 2017, 07:42:33 UTC |
9454060 | Victor Stinner | 16 December 2017, 03:54:22 UTC | bpo-29240, bpo-32030: Py_Main() re-reads config if encoding changes (#4899) bpo-29240, bpo-32030: If the encoding change (C locale coerced or UTF-8 Mode changed), Py_Main() now reads again the configuration with the new encoding. Changes: * Add _Py_UnixMain() called by main(). * Rename pymain_free_pymain() to pymain_clear_pymain(), it can now be called multipled times. * Rename pymain_parse_cmdline_envvars() to pymain_read_conf(). * Py_Main() now clears orig_argc and orig_argv at exit. * Remove argv_copy2, Py_Main() doesn't modify argv anymore. There is no need anymore to get two copies of the wchar_t** argv. * _PyCoreConfig: add coerce_c_locale and coerce_c_locale_warn. * Py_UTF8Mode is now initialized to -1. * Locale coercion (PEP 538) now respects -I and -E options. | 16 December 2017, 03:54:22 UTC |
e796b2f | Yury Selivanov | 16 December 2017, 00:32:25 UTC | bpo-27456: Ensure TCP_NODELAY is set on linux (#4231) | 16 December 2017, 00:32:25 UTC |
4ac5150 | Brett Cannon | 16 December 2017, 00:29:35 UTC | bpo-32248: Implement importlib.abc.ResourceReader (GH-4892) | 16 December 2017, 00:29:35 UTC |
d2b0231 | Victor Stinner | 15 December 2017, 22:06:17 UTC | bpo-29240: Don't define decode_locale() on macOS (#4895) Don't define decode_locale() nor encode_locale() on macOS or Android. | 15 December 2017, 22:06:17 UTC |
6693d7a | Raymond Hettinger | 15 December 2017, 21:17:55 UTC | Minor wording tweak for itertools documentation (#4893) | 15 December 2017, 21:17:55 UTC |
d924fa5 | Mariatta | 15 December 2017, 18:07:01 UTC | F-strings docs: link to Format Specifiers (GH-4888) Link to the Format Specification Mini Language section from f-strings' documentation. | 15 December 2017, 18:07:01 UTC |
9402c83 | Victor Stinner | 15 December 2017, 15:29:24 UTC | bpo-32294: Fix multiprocessing test_semaphore_tracker() (#4885) Run the child process with -E option to ignore the PYTHONWARNINGS environment variable. | 15 December 2017, 15:29:24 UTC |
642d67b | Victor Stinner | 15 December 2017, 15:29:01 UTC | bpo-32329: Add versionchanged to -R option doc (#4884) | 15 December 2017, 15:29:01 UTC |
3327a2d | Serhiy Storchaka | 15 December 2017, 12:13:41 UTC | bpo-32265: Classify class and static methods of builtin types. (#4776) Add types.ClassMethodDescriptorType for unbound class methods. | 15 December 2017, 12:13:41 UTC |
2e3f570 | Serhiy Storchaka | 15 December 2017, 12:11:43 UTC | bpo-30416: Protect the optimizer during constant folding. (#4860) It no longer spends much time doing complex calculations and no longer consumes much memory for creating large constants that will be dropped later. This fixes also bpo-21074. | 15 December 2017, 12:11:43 UTC |
a5552f0 | Serhiy Storchaka | 15 December 2017, 11:11:11 UTC | bpo-32240: Add the const qualifier to declarations of PyObject* array arguments. (#4746) | 15 December 2017, 11:11:11 UTC |
3325a67 | Serhiy Storchaka | 15 December 2017, 10:35:48 UTC | bpo-27169: The __debug__ constant is now optimized out at compile time. (#4880) This fixes also bpo-22091. | 15 December 2017, 10:35:48 UTC |
297fd87 | Ville Skyttä | 15 December 2017, 10:19:23 UTC | bpo-28393: Update encoding lookup docs wrt bpo-27938 (#4871) | 15 December 2017, 10:19:23 UTC |
e425bd7 | Benjamin Peterson | 15 December 2017, 07:48:12 UTC | move pygetopt.h to internal (closes bpo-32264) (#4830) | 15 December 2017, 07:48:12 UTC |
f74ef45 | Andrew Svetlov | 15 December 2017, 05:04:38 UTC | bpo-32311: Implement asyncio.create_task() shortcut (#4848) * Implement functionality * Add documentation | 15 December 2017, 05:04:38 UTC |
19a44f6 | Yury Selivanov | 15 December 2017, 01:53:26 UTC | bpo-32327: Convert asyncio functions documented as coroutines to coroutines. (#4872) | 15 December 2017, 01:53:26 UTC |
41264f1 | Victor Stinner | 15 December 2017, 01:05:29 UTC | bpo-32030: Add _PyMainInterpreterConfig.executable (#4876) * Add new fields to _PyMainInterpreterConfig: * executable * prefix * base_prefix * exec_prefix * base_exec_prefix * _PySys_EndInit() now sets sys attributes from _PyMainInterpreterConfig | 15 December 2017, 01:05:29 UTC |
da27341 | Victor Stinner | 15 December 2017, 00:46:02 UTC | bpo-32030: Add _PyCoreConfig_Copy() (#4874) Each interpreter now has its core_config and main_config copy: * Add _PyCoreConfig_Copy() and _PyMainInterpreterConfig_Copy() * Move _PyCoreConfig_Read(), _PyCoreConfig_Clear() and _PyMainInterpreterConfig_Clear() from Python/pylifecycle.c to Modules/main.c * Fix _Py_InitializeEx_Private(): call _PyCoreConfig_ReadEnv() before _Py_InitializeCore() | 15 December 2017, 00:46:02 UTC |
358e5e1 | Victor Stinner | 14 December 2017, 23:51:22 UTC | bpo-32329: Fix -R option for hash randomization (#4873) bpo-32329, bpo-32030: * The -R option now turns on hash randomization when the PYTHONHASHSEED environment variable is set to 0 Previously, the option was ignored. * sys.flags.hash_randomization is now properly set to 0 when hash randomization is turned off by PYTHONHASHSEED=0. * _PyCoreConfig_ReadEnv() now reads the PYTHONHASHSEED environment variable. _Py_HashRandomization_Init() now only apply the configuration, it doesn't read PYTHONHASHSEED anymore. | 14 December 2017, 23:51:22 UTC |