summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-23749: Implement loop.start_tls() (#5039)Yury Selivanov2017-12-3010-54/+580
|
* return the new file descriptor from os.dup2 (closes bpo-32441) (#5041)Benjamin Peterson2017-12-295-32/+50
|
* bpo-32427: Expose dataclasses.MISSING object. (#5045)Eric V. Smith2017-12-292-23/+70
|
* remove unused import (#5040)Benjamin Peterson2017-12-291-1/+0
|
* make PatternCompiler use the packaged grammar if possible (more bpo-24960) ↵Benjamin Peterson2017-12-291-7/+7
| | | | (#5034)
* bpo-32440: Update the docs URL to https in help() (GH-5030)oldk2017-12-281-1/+1
| | | | In pydoc.py, the reference to Python' documentation was in http. The link has been updated to use https.
* Fix minor spelling error in test_sys_settrace.py. (#5025)gfyoung2017-12-281-1/+1
|
* bpo-32416: Refactor tests for the f_lineno setter and add new tests. (#4991)Serhiy Storchaka2017-12-261-248/+405
|
* bpo-32259: Make a TypeError message when unpack non-iterable more specific. ↵Serhiy Storchaka2017-12-265-6/+16
| | | | (#4903)
* bpo-26133: Fix typos (#5010)Andrew Svetlov2017-12-262-2/+19
| | | | | | * Fix typos * Change warning text * Add test
* bpo-31721: Allow Future._log_traceback to only be set to False (#5009)Yury Selivanov2017-12-255-6/+37
|
* bpo-32422: Reduce lru_cache memory usage (GH-5008)INADA Naoki2017-12-252-26/+8
|
* bpo-32363: Disable Task.set_exception() and Task.set_result() (#4923)Yury Selivanov2017-12-257-44/+158
|
* bpo-32372: Move __debug__ optimization to the AST level. (#4925)Serhiy Storchaka2017-12-253-52/+47
|
* bpo-29084: Exclude C API for OrderedDict from the limited C API. (#4900)Serhiy Storchaka2017-12-252-4/+3
|
* bpo-26133: Clear signals list on interpreter finalizing (#5002)Andrew Svetlov2017-12-241-4/+7
|
* bpo-32402: io: Add missing NULL check. (GH-4971)INADA Naoki2017-12-241-0/+6
| | | | | _PyUnicode_FromId() may return NULL. Reported by coverity scan: CID 1426868, 1426867.
* bpo-32415: Fix "error is already set" (#4999)Yury Selivanov2017-12-232-0/+27
|
* Fix check for run_in_executor on closed loop. (#4996)Andrew Svetlov2017-12-231-3/+7
|
* bpo-32415: Add more tests (#4995)Yury Selivanov2017-12-231-3/+21
|
* bpo-32357: Use PySet_GET_SIZE macro in _is_coroutine() from _asynciomodule.c ↵Andrew Svetlov2017-12-231-1/+1
| | | | (#4990)
* bpo-32415: Add asyncio.Task.get_loop() and Future.get_loop() (#4992)Yury Selivanov2017-12-239-76/+152
|
* bpo-32357: Fix tests in refleak mode (#4989)Yury Selivanov2017-12-232-23/+32
|
* bpo-26439: Convert %s in Lib/ctypes/_aix.py to f-strings. (GH-4986)Mariatta2017-12-232-17/+17
|
* correct wording (#4983)Benjamin Peterson2017-12-231-1/+1
|
* bpo-24960: use pkgutil.get_data in lib2to3 to read pickled grammar files (#4977)Benjamin Peterson2017-12-225-2/+45
| | | | | | 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.
* remove the dynload_next.c file (closes bpo-32386) (#4957)Benjamin Peterson2017-12-223-117/+15
|
* bpo-29240: Skip test_readline.test_nonascii() (#4968)Victor Stinner2017-12-211-0/+2
| | | | | | 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.
* bpo-20891: Skip test_embed.test_bpo20891() (#4967)Victor Stinner2017-12-211-0/+3
| | | | | | 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.
* bpo-32030: Add _Py_FindEnvConfigValue() (#4963)Victor Stinner2017-12-216-135/+80
| | | | | | | | | | | | | | | 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.
* bpo-32030: Add _Py_EncodeLocaleRaw() (#4961)Victor Stinner2017-12-215-41/+101
| | | | | | | | | | | | 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.
* bpo-26133: Dont unsubscribe signals in UNIX even loop on interpreter ↵Andrew Svetlov2017-12-212-2/+9
| | | | shutdown (#4956)
* bpo-32030: Add _Py_EncodeUTF8_surrogateescape() (#4960)Victor Stinner2017-12-212-38/+93
| | | | | 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.
* bpo-32323: urllib.parse.urlsplit() must not lowercase() IPv6 scope value (#4867)Коренберг Марк2017-12-213-4/+17
|
* Fix trivial typo in pickle.rst (#4955)Sebastian Pucilowski2017-12-211-1/+1
|
* bpo-15873: Implement [date][time].fromisoformat (#4699)Paul Ganssle2017-12-215-32/+989
| | | Closes bpo-15873.
* bpo-15216: io: TextIOWrapper.reconfigure() accepts encoding, errors and ↵INADA Naoki2017-12-216-175/+517
| | | | newline (GH-2343)
* bpo-32030: Fix usage of memory allocators (#4953)Victor Stinner2017-12-203-12/+50
| | | | | | | | | * _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.
* correct the typos (#4950)Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)2017-12-201-2/+2
|
* bpo-32030: Complete _PyCoreConfig_Read() (#4946)Victor Stinner2017-12-203-339/+380
| | | | | | | | | | * 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.
* bpo-29970: Make ssh_handshake_timeout None by default (#4939)Andrew Svetlov2017-12-2010-21/+108
| | | | | * 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.
* bpo-32306: Clarify c.f.Executor.map() documentation (#4947)Antoine Pitrou2017-12-201-13/+21
| | | The built-in map() function collects function arguments lazily, but concurrent.futures.Executor.map() does so eagerly.
* bpo-32385: Clean up the C3 MRO algorithm implementation. (#4942)Serhiy Storchaka2017-12-201-77/+64
| | | Use tuples and raw arrays instead of lists.
* bpo-32030: Add _PyCoreConfig.warnoptions (#4936)Victor Stinner2017-12-205-430/+456
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* bpo-32379: Faster MRO computation for single inheritance (#4932)Antoine Pitrou2017-12-203-4/+43
| | | | * bpo-32379: Faster MRO computation for single inheritance
* bpo-31901: atexit callbacks should be run at subinterpreter shutdown (#4611)Marcel Plch2017-12-2010-46/+91
| | | | Change atexit behavior and PEP-489 multiphase init support.
* bpo-32030: Cleanup pymain_main() (#4935)Victor Stinner2017-12-202-73/+95
| | | | | | | * 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()
* bpo-32030: Add _PyCoreConfig.argv (#4934)Victor Stinner2017-12-193-151/+233
| | | | | | | * 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()
* Improve the F-strings and format specifier documentation (GH-4931)KatherineMichel2017-12-191-4/+5
| | | | Mention that the format-specifier mini language in f-strings is the same one used by str.format.
* bpo-29970: Add timeout for SSL handshake in asyncioNeil Aspinall2017-12-1912-85/+209
| | | | 10 seconds by default.