redshiftzero [Fri, 17 May 2019 10:44:18 +0000 (03:44 -0700)]
docs 36789: resolve incorrect note regarding UTF-8 (GH-13111)
Pablo Galindo [Fri, 17 May 2019 10:37:08 +0000 (11:37 +0100)]
bpo-1875: Raise SyntaxError in invalid blocks that will be optimised away (GH-13332)
Move the check for dead conditionals (if 0) to the peephole optimizer
and make sure that the code block is still compiled to report any
existing syntax errors within.
Jeroen Demeyer [Fri, 17 May 2019 10:21:35 +0000 (12:21 +0200)]
Fix typo in _PyMethodDef_RawFastCallKeywords error message (GH-13343)
Ned Batchelder [Fri, 17 May 2019 09:59:14 +0000 (05:59 -0400)]
bpo-36908: 'This module is always available' isn't helpful. (#13297)
Makes the documentation of math and cmath module
more helpful for the beginners.
Stéphane Wirtel [Fri, 17 May 2019 09:55:34 +0000 (11:55 +0200)]
Doc: Replace the deprecated highlightlang directive by highlight. (#13377)
highlightlang is deprecated since April 2018 in Sphinx.
See https://github.com/sphinx-doc/sphinx/pull/4845
Victor Stinner [Fri, 17 May 2019 09:12:09 +0000 (11:12 +0200)]
bpo-36763: Remove _PyCoreConfig.program (GH-13373)
Use _PyCoreConfig.program_name instead.
Stefan Hoelzl [Fri, 17 May 2019 08:50:03 +0000 (10:50 +0200)]
Doc: Add link threading.settrace to sys.settrace (GH-13345)
Erwan Le Pape [Fri, 17 May 2019 08:28:39 +0000 (10:28 +0200)]
bpo-35545: Fix asyncio discarding IPv6 scopes (GH-11271)
This PR proposes a solution to [bpo-35545](https://bugs.python.org/issue35545) by adding an optional `flowinfo` and `scopeid` to `asyncio.base_events._ipaddr_info` to carry the full address information into `_ipaddr_info` and avoid discarding IPv6 specific information.
Changelog entry & regression tests to come.
https://bugs.python.org/issue35545
Zackery Spytz [Fri, 17 May 2019 07:13:03 +0000 (01:13 -0600)]
bpo-36946: Fix possible signed integer overflow when handling slices. (GH-13375)
The final addition (cur += step) may overflow, so use size_t for "cur".
"cur" is always positive (even for negative steps), so it is safe to use
size_t here.
Co-Authored-By: Martin Panter <vadmium+py@gmail.com>
Victor Stinner [Fri, 17 May 2019 01:15:12 +0000 (03:15 +0200)]
bpo-36763: Cleanup precmdline in _PyCoreConfig_Read() (GH-13371)
precmdline is only needed in _PyCoreConfig_Read(), not in
config_read_cmdline(). Reorganize _PyCoreConfig_Read().
Pablo Galindo [Thu, 16 May 2019 20:08:15 +0000 (21:08 +0100)]
bpo-36751: Undeprecate getfullargspec (GH-13245)
Victor Stinner [Thu, 16 May 2019 16:30:15 +0000 (18:30 +0200)]
bpo-36763: Add _PyCoreConfig.configure_c_stdio (GH-13363)
Add tests for configure_c_stdio and pathconfig_warnings parameters.
Victor Stinner [Thu, 16 May 2019 15:38:16 +0000 (17:38 +0200)]
bpo-36763: Add _Py_InitializeMain() (GH-13362)
* Add a private _Py_InitializeMain() function.
* Add again _PyCoreConfig._init_main.
* _Py_InitializeFromConfig() now uses _init_main to decide
if _Py_InitializeMainInterpreter() should be called.
* _PyCoreConfig: rename _frozen to pathconfig_warnings, its value is
now the opposite of Py_FrozenFlag.
* Add an unit test for _init_main=0 and _Py_InitializeMain().
Victor Stinner [Thu, 16 May 2019 15:02:56 +0000 (17:02 +0200)]
bpo-36763: Add _PyCoreConfig.parse_argv (GH-13361)
* _PyCoreConfig_Read() doesn't parse nor update argv
if parse_argv is 0.
* Move path configuration fields in _PyCoreConfig.
* Add an unit test for parse_argv=0.
* Remove unused "done": label in _Py_RunMain().
Andrew Svetlov [Thu, 16 May 2019 14:52:10 +0000 (17:52 +0300)]
bpo-36921: Deprecate @coroutine for sake of async def (GH-13346)
The second attempt. Now deprecate `@coroutine` only, keep `yield from fut` as is.
https://bugs.python.org/issue36921
Victor Stinner [Thu, 16 May 2019 14:39:26 +0000 (16:39 +0200)]
bpo-36763: _PyInitError always use int for exitcode (GH-13360)
We cannot use "unsigned int" for exitcode on Windows, since
Py_Main() and _Py_RunMain() always return an "int".
Changes:
* _PyPathConfig_ComputeSysPath0() now returns -1 if an exception is
raised.
* pymain_run_python() no longer uses _PyInitError but display the
exception and set exitcode to 1 in case of error.
* Fix _Py_RunMain(): return an exitcode rather than calling
exit() on pymain_run_python() failure.
* _Py_ExitInitError() no longer uses ExitProcess() on Windows, use
exit() on all platforms.
* _Py_ExitInitError() now fails with a fatal error if 'err' is not an
error not an exit.
Andrew Svetlov [Thu, 16 May 2019 13:30:16 +0000 (16:30 +0300)]
bpo-35589: Prevent buffer copy in sock_sendall() (GH-11418)
No NEWs is needed since the problem was introduced on master only and never released.
https://bugs.python.org/issue35589
Inada Naoki [Thu, 16 May 2019 06:03:20 +0000 (15:03 +0900)]
bpo-36748: optimize TextIOWrapper.write() for ASCII string (GH-13002)
Terry Jan Reedy [Thu, 16 May 2019 05:20:37 +0000 (01:20 -0400)]
Fix typos in documentation. Patch by tirkarthi. (GH-13354)
Xtreak [Thu, 16 May 2019 04:34:24 +0000 (10:04 +0530)]
Fix typos in documentation (#13344)
Paul Monson [Wed, 15 May 2019 23:10:39 +0000 (16:10 -0700)]
bpo-36511: Windows arm32 buildbot changes (remove extra space) (GH-13351)
@zooba
I just realized that this whitespace fix didn't get pushed.
https://bugs.python.org/issue36511
Paul Monson [Wed, 15 May 2019 22:42:29 +0000 (15:42 -0700)]
bpo-36511: Windows ARM32 buildbot changes (GH-12917)
Paul Monson [Wed, 15 May 2019 22:38:55 +0000 (15:38 -0700)]
bpo-35926: Add support for OpenSSL 1.1.1b on Windows (GH-11779)
zlohhcuB treboR [Wed, 15 May 2019 22:02:11 +0000 (00:02 +0200)]
bpo-33123: pathlib: Add missing_ok parameter to Path.unlink (GH-6191)
Similarly to how several pathlib file creation functions have an "exists_ok" parameter, we should introduce "missing_ok" that makes removal functions not raise an exception when a file or directory is already absent. IMHO, this should cover Path.unlink and Path.rmdir. Note, Path.resolve() has a "strict" parameter since 3.6 that does the same thing. Naming this of this new parameter tries to be consistent with the "exists_ok" parameter as that is more explicit about what it does (as opposed to "strict").
https://bugs.python.org/issue33123
Antoine Pitrou [Wed, 15 May 2019 21:45:18 +0000 (23:45 +0200)]
bpo-36786: Run compileall in parallel during "make install" (GH-13078)
Jon Janzen [Wed, 15 May 2019 20:14:38 +0000 (22:14 +0200)]
bpo-26707: Enable plistlib to read UID keys. (GH-12153)
Plistlib currently throws an exception when asked to decode a valid
.plist file that was generated by Apple's NSKeyedArchiver. Specifically,
this is caused by a byte 0x80 (signifying a UID) not being understood.
This fixes the problem by enabling the binary plist reader and writer
to read and write plistlib.UID objects.
Xtreak [Wed, 15 May 2019 16:18:35 +0000 (21:48 +0530)]
Reference zipimport source code from docs. (GH-13310)
Yavor Konstantinov [Wed, 15 May 2019 15:02:13 +0000 (08:02 -0700)]
bpo-36799: Fix typo in ctypes.rst (GH-13104)
Victor Stinner [Wed, 15 May 2019 00:12:48 +0000 (02:12 +0200)]
bpo-36763: InitConfigTests tests all core config (GH-13331)
Remove UNTESTED_CORE_CONFIG from test_embed.InitConfigTests: all core
config fields are now tested!
Changes:
* Test also dll_path on Windows
* Add run_main_config unit test: test config using _Py_RunMain().
Andrew Svetlov [Tue, 14 May 2019 21:39:13 +0000 (00:39 +0300)]
bpo-36801: Temporarily fix regression in writer.drain() (#13330)
Victor Stinner [Tue, 14 May 2019 20:01:51 +0000 (22:01 +0200)]
bpo-36763: Add test for _PyCoreConfig_SetString() (GH-13275)
test_embed: add test_init_read_set() to test newly added APIs: test
module_search_paths and executable.
Gregory P. Smith [Tue, 14 May 2019 19:33:17 +0000 (12:33 -0700)]
bpo-36760: Clarify subprocess capture_output docs. (GH-13322)
Clarify how to capture stdout and stderr combined into one stream.
Victor Stinner [Tue, 14 May 2019 17:29:53 +0000 (19:29 +0200)]
bpo-36618: Don't add -fmax-type-align=8 flag for clang (GH-13320)
Python 3.8 now respects the x86-64 ABI: memory allocations are
aligned on 16 bytes. The clang flag was only used as a temporary
workaround.
Krzysztof Wojcik [Tue, 14 May 2019 16:55:23 +0000 (18:55 +0200)]
bpo-33529, email: Fix infinite loop in email header encoding (GH-12020)
Hervé Beraud [Tue, 14 May 2019 16:52:42 +0000 (18:52 +0200)]
json.tool: use stdin and stdout in default cmdlne arguments (GH-11992)
Argparse can handle default value as stdin and stdout for parameters
as file type (infile, outfile).
Andrew Svetlov [Tue, 14 May 2019 16:09:44 +0000 (19:09 +0300)]
bpo-36916: asyncio: Swallow unhandled write() exception (GH-13313)
Victor Stinner [Tue, 14 May 2019 15:34:56 +0000 (17:34 +0200)]
bpo-36900: Replace global conf vars with config (GH-13299)
Replace global configuration variables with core_config read from the
current interpreter.
Cleanup dynload_hpux.c.
Victor Stinner [Tue, 14 May 2019 13:49:16 +0000 (15:49 +0200)]
bpo-36915: regrtest always remove tempdir of worker processes (GH-13312)
When using multiprocessing (-jN option), worker processes now create
their temporary directory inside the temporary directory of the
main process. So the main process is able to remove temporary
directories of worker processes even if they crash or when they are
killed by regrtest on KeyboardInterrupt (CTRL+c).
Rework also how multiprocessing arguments are parsed in main.py.
Rémi Lapeyre [Tue, 14 May 2019 13:45:14 +0000 (15:45 +0200)]
Change WriterObj.writeline to WriterObj.write (GH-12344)
This cleans the csv module a bit, I don't think it requires a bpo issue or a news entry.
Vinodhini Balusamy [Tue, 14 May 2019 12:11:41 +0000 (22:11 +1000)]
bpo-32995 - Added context variable in glossary (GH-9741)
Nick Coghlan [Tue, 14 May 2019 12:04:30 +0000 (22:04 +1000)]
bpo-36797: Prune more legacy distutils documentation (GH-13092)
Removes more legacy distutils documentation, and more clearly
marks what is left as potentially outdated, with references to
setuptools as a replacement.
Stéphane Wirtel [Tue, 14 May 2019 11:49:49 +0000 (13:49 +0200)]
Doc: Update pip and setuptools when creating the virtual environment (GH-13307)
Add a new pip install before `sphinx` etc.. because we should use the last version of `pip` and `setuptools`
Nicolai Moore [Tue, 14 May 2019 10:32:59 +0000 (20:32 +1000)]
bpo-36845: validate integer network prefix when constructing IP networks (GH-13298)
Inada Naoki [Tue, 14 May 2019 09:51:15 +0000 (18:51 +0900)]
bpo-27987: pymalloc: align by 16bytes on 64bit platform (GH-12850)
Victor Stinner [Tue, 14 May 2019 01:47:32 +0000 (03:47 +0200)]
bpo-36719: Fix regrtest MultiprocessThread (GH-13301)
MultiprocessThread.kill() now closes stdout and stderr to prevent
popen.communicate() to hang.
wim glenn [Tue, 14 May 2019 01:10:14 +0000 (20:10 -0500)]
Simplify the ``LastUpdatedOrderedDict`` example recipe (GH-13296)
Jens Troeger [Tue, 14 May 2019 01:07:39 +0000 (11:07 +1000)]
bpo-34424: Handle different policy.linesep lengths correctly. (#8803)
Anders Hovmöller [Mon, 13 May 2019 19:27:17 +0000 (21:27 +0200)]
bpo-35138: Added an example for timeit.timeit with callable arguments (GH-9787)
* Update timeit.rst
Matthias Bussonnier [Mon, 13 May 2019 19:23:07 +0000 (12:23 -0700)]
bpo-36895: Undocument removed time.clock (GH-13286)
Pierre Glaser [Mon, 13 May 2019 19:15:32 +0000 (21:15 +0200)]
bpo-36867: Create the resource_tracker before launching SharedMemoryManagers (GH-13276)
Brad [Mon, 13 May 2019 18:09:49 +0000 (14:09 -0400)]
Docs: Add bz2 usage examples (GH-13258)
* Docs: Add bz2 usage examples
- Adds an "Examples of usage" section inspired by the one
found in the gzip docs
- Corrects the descriptions for ``compresslevel`` and ``data``:
- ``compresslevel`` must be an `int`, not any number. For
instance, passing a float will raise ``TypeError``
- Notes that `data` must be bytes-like
Antoine Pitrou [Mon, 13 May 2019 18:02:46 +0000 (20:02 +0200)]
bpo-36894: Fix regression in test_multiprocessing_spawn (no tests run on Windows) (GH-13290)
Pierre Glaser [Mon, 13 May 2019 17:20:48 +0000 (19:20 +0200)]
bpo-36867: DOC update multiprocessing.rst (GH-13289)
Followup to bpo-36867.
Victor Stinner [Mon, 13 May 2019 17:17:54 +0000 (19:17 +0200)]
bpo-36719: regrtest -jN no longer stops on crash (GH-13231)
"python3 -m test -jN ..." now continues the execution of next tests
when a worker process crash (CHILD_ERROR state). Previously, the test
suite stopped immediately. Use --failfast to stop at the first error.
Moreover, --forever now also implies --failfast.
Guido van Rossum [Mon, 13 May 2019 16:00:53 +0000 (09:00 -0700)]
Fix typo in NEWS item about IDLE (os.flush() should be os.fsync()) (#13284)
Victor Stinner [Mon, 13 May 2019 15:12:45 +0000 (17:12 +0200)]
bpo-36900: import.c uses PyInterpreterState.core_config (GH-13278)
Move _PyImportZip_Init() to the internal C API and add an 'interp'
parameter.
Xtreak [Mon, 13 May 2019 14:48:52 +0000 (20:18 +0530)]
bpo-36903: Fix ResourceWarning in test_logging (GH-13283)
Victor Stinner [Mon, 13 May 2019 14:22:51 +0000 (16:22 +0200)]
bpo-36728: Remove PyEval_ReInitThreads documentation (GH-13282)
divyag9 [Mon, 13 May 2019 13:05:20 +0000 (08:05 -0500)]
bpo-34682: Wording and grammatical changes to the doc(https://docs.python.org/3) (GH-13120)
https://bugs.python.org/issue34682
Guido van Rossum [Mon, 13 May 2019 12:31:30 +0000 (05:31 -0700)]
bpo-36807: When saving a file in IDLE, call flush and fsync (#13102)
Utkarsh Gupta [Mon, 13 May 2019 12:29:39 +0000 (12:29 +0000)]
bpo-36008: Doc update for 3.8 migration (GH-12887)
Kexuan Sun [Mon, 13 May 2019 11:38:20 +0000 (04:38 -0700)]
Changes to the documentation of normcase (GH-4725)
Victor Stinner [Mon, 13 May 2019 10:35:37 +0000 (12:35 +0200)]
bpo-36728: Remove PyEval_ReInitThreads() from C API (GH-13241)
Remove the PyEval_ReInitThreads() function from the Python C API.
It should not be called explicitly: use PyOS_AfterFork_Child()
instead.
Rename PyEval_ReInitThreads() to _PyEval_ReInitThreads() and add a
'runtime' parameter.
Victor Stinner [Mon, 13 May 2019 08:42:31 +0000 (10:42 +0200)]
bpo-36778: Update cp65001 codec documentation (GH-13240)
Remove cp65001 from the codecs table, list it as an alias of utf_8
and add a versionchanged markup.
Zackery Spytz [Mon, 13 May 2019 07:50:52 +0000 (01:50 -0600)]
bpo-6584: Add a BadGzipFile exception to the gzip module. (GH-13022)
Co-Authored-By: Filip Gruszczyński <gruszczy@gmail.com>
Co-Authored-By: Michele Orrù <maker@tumbolandia.net>
Edison A [Mon, 13 May 2019 07:23:38 +0000 (00:23 -0700)]
bpo-36783: Add new references for C API Documentation changes (GH-13204)
Gordon P. Hemsley [Mon, 13 May 2019 04:18:20 +0000 (00:18 -0400)]
Name individual Travis CI jobs (GH-13268)
Johnny Gérard [Mon, 13 May 2019 03:39:32 +0000 (05:39 +0200)]
Correct misspelling (GH-11470)
Matthias Bussonnier [Mon, 13 May 2019 01:34:44 +0000 (18:34 -0700)]
bpo-36895: remove time.clock() as per removal notice. (GH-13270)
`time.clock()` was deprecated in 3.3, and marked for removal removal in
3.8; this thus remove it from the time module.
Pablo Galindo [Sun, 12 May 2019 21:45:52 +0000 (22:45 +0100)]
bpo-36886: Document changes in code object in What's new section (GH-13255)
Jake Tesler [Sun, 12 May 2019 17:08:24 +0000 (10:08 -0700)]
bpo-36084: Add native thread ID to threading.Thread objects (GH-11993)
Gordon P. Hemsley [Sun, 12 May 2019 03:33:35 +0000 (23:33 -0400)]
bpo-36684: Split out gcc and test coverage builds (GH-13146)
The combined Python and C coverage test runs now exceed Travis's
50-minute time limit. Splitting them into separate runs gives more
leeway.
Also, adding branch coverage to Python testing and ensure that
coverage is reported even if tests fail. (The primary builds are
for tracking test failures.)
Pablo Galindo [Sun, 12 May 2019 00:43:04 +0000 (01:43 +0100)]
bpo-36817: Do not decrement reference for expr_text on fstring = parsing failure (GH-13256)
Pablo Galindo [Sat, 11 May 2019 19:54:37 +0000 (20:54 +0100)]
bpo-36817: Fix reference leak for expr_text in f-string = parsing (GH-13249)
Sanyam Khurana [Sat, 11 May 2019 19:04:10 +0000 (15:04 -0400)]
bpo-36822: Fix minor grammatical error in glossary.rst (GH-13145)
Michael J. Sullivan [Sat, 11 May 2019 18:17:24 +0000 (11:17 -0700)]
bpo-36878: Allow extra text after `# type: ignore` comments (GH-13238)
In the parser, when using the type_comments=True option, recognize
a TYPE_IGNORE as anything containing `# type: ignore` followed by
a non-alphanumeric character. This is to allow ignores such as
`# type: ignore[E1000]`.
Xi Ruoyao [Sat, 11 May 2019 17:13:23 +0000 (01:13 +0800)]
bpo-36856: Handle possible overflow in faulthandler_stack_overflow (GH-13205)
Xtreak [Sat, 11 May 2019 08:45:17 +0000 (14:15 +0530)]
bpo-36884: Fix DeprecationWarning in test_asyncio StreamReader instantiation (GH-13243)
https://bugs.python.org/issue36884
Aurelio Jargas [Sat, 11 May 2019 02:51:45 +0000 (04:51 +0200)]
Hide module name from local (anchor) links in shutil docs (GH-6695)
Victor Stinner [Sat, 11 May 2019 02:10:03 +0000 (04:10 +0200)]
bpo-21536: Update What's New in Python 3.8 entry (GH-13242)
Android still links to libpython.
Pablo Galindo [Fri, 10 May 2019 21:58:17 +0000 (22:58 +0100)]
Fix sphinx deprecation warning about env.note_versionchange() (GH-13236)
Victor Stinner [Fri, 10 May 2019 21:39:09 +0000 (23:39 +0200)]
bpo-36710: Add 'ceval' local variable to ceval.c (GH-12934)
Add "struct _ceval_runtime_state *ceval = &_PyRuntime.ceval;" local
variables to function to better highlight the dependency on the
global variable _PyRuntime and to point directly to _PyRuntime.ceval
field rather than on the larger _PyRuntime.
Changes:
* Add _PyRuntimeState_GetThreadState(runtime) macro.
* Add _PyEval_AddPendingCall(ceval, ...) and
_PyThreadState_Swap(gilstate, ...) functions.
* _PyThreadState_GET() macro now calls
_PyRuntimeState_GetThreadState() using &_PyRuntime.
* Add 'ceval' parameter to COMPUTE_EVAL_BREAKER(),
SIGNAL_PENDING_SIGNALS(), _PyEval_SignalAsyncExc(),
_PyEval_SignalReceived() and _PyEval_FiniThreads() macros and
functions.
* Add 'tstate' parameter to call_function(), do_call_core() and
do_raise().
* Add 'runtime' parameter to _Py_CURRENTLY_FINALIZING(),
_Py_FinishPendingCalls() and _PyThreadState_DeleteExcept()
macros and functions.
* Declare 'runtime', 'tstate', 'ceval' and 'eval_breaker' variables
as constant.
Pierre Glaser [Fri, 10 May 2019 20:59:08 +0000 (22:59 +0200)]
bpo-36867: Make semaphore_tracker track other system resources (GH-13222)
The multiprocessing.resource_tracker replaces the multiprocessing.semaphore_tracker module. Other than semaphores, resource_tracker also tracks shared_memory segments. Patch by Pierre Glaser.
Pierre Glaser [Fri, 10 May 2019 18:42:35 +0000 (20:42 +0200)]
bpo-36368: Ignore SIGINT in SharedMemoryManager servers. (GH-12483)
Fix a bug crashing SharedMemoryManager instances in interactive sessions after
a Ctrl-C (KeyboardInterrupt) was sent.
Eric Snow [Fri, 10 May 2019 17:29:55 +0000 (13:29 -0400)]
bpo-36737: Use the module state C-API for warnings. (gh-13159)
Jeroen Demeyer [Fri, 10 May 2019 17:21:11 +0000 (19:21 +0200)]
bpo-35983: skip trashcan for subclasses (GH-11841)
Add new trashcan macros to deal with a double deallocation that could occur when the `tp_dealloc` of a subclass calls the `tp_dealloc` of a base class and that base class uses the trashcan mechanism.
Patch by Jeroen Demeyer.
Emmanuel Arias [Fri, 10 May 2019 10:08:08 +0000 (07:08 -0300)]
bpo-36869: fix warning of unused variables (GH-13182)
Kojo Idrissa [Fri, 10 May 2019 08:45:09 +0000 (03:45 -0500)]
bpo-33071: remove outdated PyPI docs (GH-13087)
Patch by Kojo Idrissa.
Stefan Behnel [Fri, 10 May 2019 08:25:13 +0000 (10:25 +0200)]
bpo-36676: Update what's new document. (#13226)
Olexa Bilaniuk [Fri, 10 May 2019 03:22:06 +0000 (22:22 -0500)]
bpo-24538: Fix bug in shutil involving the copying of xattrs to read-only files. (PR-13212)
Extended attributes can only be set on user-writeable files, but shutil previously
first chmod()ed the destination file to the source's permissions and then tried to
copy xattrs. This will cause failures if attempting to copy read-only files with
xattrs, as occurs with Git clones on Lustre FS.
Anthony Shaw [Fri, 10 May 2019 02:00:06 +0000 (12:00 +1000)]
bpo-36814: ensure os.posix_spawn() handles None (GH-13144)
Fix an issue where os.posix_spawn() would incorrectly raise a TypeError
when file_actions is None.
Rémi Lapeyre [Fri, 10 May 2019 01:50:11 +0000 (03:50 +0200)]
bpo-27497: Add return value to csv.DictWriter.writeheader (GH-12306)
csv.DictWriter.writeheader() now returns the return value of the
underlying csv.Writer.writerow() method.
Patch contributed by Ashish Nitin Patil.
Jeroen Demeyer [Fri, 10 May 2019 01:28:57 +0000 (03:28 +0200)]
bpo-36601: clarify signal handler comment and remove unnecessary pid check. (GH-12784)
https://bugs.python.org/issue36601
Victor Stinner [Fri, 10 May 2019 01:19:54 +0000 (03:19 +0200)]
bpo-36778: cp65001 encoding becomes an alias to utf_8 (GH-13230)
Julien Palard [Thu, 9 May 2019 19:52:32 +0000 (21:52 +0200)]
bpo-32523: Simplifying news entries with multiple paragraphs. (GH-8154)
Having multiple paragraphs in a few news entry lead to inconsistent
spacing while rendered in HTML by mixing "visually compact lists"
(when no entry of the whole list contains multiple paragraphs) and
"sparse lists" (when at least one do).
Andrew Svetlov [Thu, 9 May 2019 19:14:58 +0000 (15:14 -0400)]
bpo-36802: Drop awrite()/aclose(), support await write() and await close() instead (#13099)
redshiftzero [Thu, 9 May 2019 19:13:40 +0000 (15:13 -0400)]
doc: fix broken link on howto/unicode page (#13160)
Thank you @redshiftzero on the first PR :clap:
Zackery Spytz [Thu, 9 May 2019 18:33:32 +0000 (12:33 -0600)]
Fix a possible crash due to PyType_FromSpecWithBases() (GH-10304)
If the PyObject_MALLOC() call failed in PyType_FromSpecWithBases(),
PyObject_Free() would be called on a static string in type_dealloc().
Aviv Palivoda [Thu, 9 May 2019 18:05:45 +0000 (21:05 +0300)]
bpo-30262: Don't expose private objects in sqlite3 (GH-1440)
The Cache and Statement objects are undocumented and implementation
details of the sqlite3 module.
They aren't usable from pure Python code.
Pablo Galindo [Thu, 9 May 2019 15:52:02 +0000 (16:52 +0100)]
bpo-36851: Clean the frame stack if the execution ends with a return and the stack is not empty (GH-13191)