# HG changeset patch # Parent ebb1a16de89b712010cd195a1e2331673836040a Issue #???: Add STARTUPINFO to subprocess.__all__ on Windows diff -r ebb1a16de89b Doc/whatsnew/3.6.rst --- a/Doc/whatsnew/3.6.rst Sat Apr 16 11:51:31 2016 +0000 +++ b/Doc/whatsnew/3.6.rst Sat Apr 16 14:22:10 2016 +0000 @@ -500,7 +500,7 @@ attributes to match the documented APIs: :mod:`calendar`, :mod:`csv`, :mod:`~xml.etree.ElementTree`, :mod:`enum`, :mod:`fileinput`, :mod:`ftplib`, :mod:`logging`, - :mod:`optparse`, :mod:`tarfile`, :mod:`threading` and + :mod:`optparse`, :mod:`subprocess`, :mod:`tarfile`, :mod:`threading` and :mod:`wave`. This means they will export new symbols when ``import *`` is used. See :issue:`23883`. diff -r ebb1a16de89b Lib/subprocess.py --- a/Lib/subprocess.py Sat Apr 16 11:51:31 2016 +0000 +++ b/Lib/subprocess.py Sat Apr 16 14:22:10 2016 +0000 @@ -471,7 +471,8 @@ __all__.extend(["CREATE_NEW_CONSOLE", "CREATE_NEW_PROCESS_GROUP", "STD_INPUT_HANDLE", "STD_OUTPUT_HANDLE", "STD_ERROR_HANDLE", "SW_HIDE", - "STARTF_USESTDHANDLES", "STARTF_USESHOWWINDOW"]) + "STARTF_USESTDHANDLES", "STARTF_USESHOWWINDOW", + "STARTUPINFO"]) class Handle(int): closed = False diff -r ebb1a16de89b Lib/test/test_subprocess.py --- a/Lib/test/test_subprocess.py Sat Apr 16 11:51:31 2016 +0000 +++ b/Lib/test/test_subprocess.py Sat Apr 16 14:22:10 2016 +0000 @@ -2540,7 +2540,7 @@ def test__all__(self): """Ensure that __all__ is populated properly.""" - intentionally_excluded = set(("list2cmdline",)) + intentionally_excluded = {"list2cmdline", "Handle"} exported = set(subprocess.__all__) possible_exports = set() import types diff -r ebb1a16de89b Misc/NEWS --- a/Misc/NEWS Sat Apr 16 11:51:31 2016 +0000 +++ b/Misc/NEWS Sat Apr 16 14:22:10 2016 +0000 @@ -243,6 +243,8 @@ Library ------- +- Issue #???: Add STARTUPINFO to subprocess.__all__ on Windows. + - Issue #26404: Add context manager to socketserver. Patch by Aviv Palivoda. - Issue #26735: Fix :func:`os.urandom` on Solaris 11.3 and newer when reading