Find file History
vstinner and nanjekyejoannah bpo-35537: subprocess uses os.posix_spawn in some cases (GH-11452)
The subprocess module can now use the os.posix_spawn() function
in some cases for better performance. Currently, it is only used on macOS
and Linux (using glibc 2.24 or newer) if all these conditions are met:

* executable path contains a directory
* close_fds=False
* preexec_fn, pass_fds, cwd, stdin, stdout, stderr
  and start_new_session parameters are not set

Co-authored-by: Joannah Nanjekye <nanjekyejoannah@gmail.com>
Latest commit 9daecf3 Jan 16, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
asyncio bpo-23846: Fix ProactorEventLoop._write_to_self() (GH-11566) Jan 15, 2019
collections bpo-32492: Tweak _collections._tuplegetter. (GH-11367) Dec 31, 2018
concurrent bpo-35133: Fix mistakes when concatenate string literals on different… Nov 5, 2018
ctypes bpo-27643 - skip test_ctypes test case with XLC compiler. (GH-5164) Dec 26, 2018
curses Issue #13051: Fixed recursion errors in large or resized curses.textp… Dec 28, 2016
dbm bpo-33106: change dbm key deletion error for readonly file from KeyEr… Dec 12, 2018
distutils Distutils no longer needs to remain compatible with 2.3 (GH-11423) Jan 9, 2019
email bpo-35133: Fix mistakes when concatenate string literals on different… Nov 5, 2018
encodings Remove obsolete comment about latin-1 in `normalize_encoding` (GH-8739) Sep 11, 2018
ensurepip Upgrade pip to 18.1 and setuptools to 40.6.2 (#10598) Nov 19, 2018
html bpo-30629: Remove second call of str.lower() in html.parser.parse_end… Jun 17, 2017
http bpo-34711: Return HTTPStatus.NOT_FOUND if path.endswith('/') and not … Dec 26, 2018
idlelib bpo-35730: Disable IDLE test_reload assertion. (GH-11543) Jan 13, 2019
importlib bpo-35133: Fix mistakes when concatenate string literals on different… Nov 5, 2018
json bpo-31553: add --json-lines option to json.tool (#10051) Nov 7, 2018
lib2to3 bpo-35312: Make lib2to3.pgen2.parse.ParseError round-trip pickle-able. ( Nov 27, 2018
logging bpo-35046: do only one system call per line (logging.StreamHandler) (G… Oct 23, 2018
msilib bpo-34251: Restore msilib.Win64 to preserve compatibility (GH-8510) Jul 28, 2018
multiprocessing bpo-35424: emit ResourceWarning at multiprocessing.Pool destruction (G… Dec 20, 2018
pydoc_data Update NEWS, docs, and patchlevel for 3.7.0b1 Jan 31, 2018
site-packages Issue #29283: Delete accidentally added Lib/site-packages/README Jan 30, 2017
sqlite3 bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. ( Dec 17, 2018
test bpo-35537: subprocess uses os.posix_spawn in some cases (GH-11452) Jan 15, 2019
tkinter Fix yet one error in checking Tcl version. (GH-10189) Oct 28, 2018
turtledemo turtledemo/penrose.py: remove unused clock() calls (GH-10033) Oct 24, 2018
unittest Fix mock_open docstring to use readline (#11176) Dec 20, 2018
urllib closes bpo-35309: cpath should be capath (GH-10699) Nov 25, 2018
venv bpo-34977: Use venv redirector instead of original python.exe on Wind… Dec 10, 2018
wsgiref bpo-35565: Add detail to assertion failure message in wsgiref (GH-11293) Dec 25, 2018
xml bpo-35052: Fix handler on xml.dom.minidom.cloneNode() (GH-11061) Dec 10, 2018
xmlrpc bpo-33911: Fixed deprecation warning in xmlrpc.server (GH-7847) Jul 16, 2018
__future__.py bpo-35526: make __future__.barry_as_FLUFL mandatory for Python 4.0 (#… Dec 19, 2018
__phello__.foo.py Fix the frozen bytecode for __hello__ (betcha didn't know that existed Oct 18, 2001
_bootlocale.py bpo-29240: PEP 540: Add a new UTF-8 Mode (#855) Dec 13, 2017
_collections_abc.py bpo-34427: Fix infinite loop when calling MutableSequence.extend() on… Aug 30, 2018
_compat_pickle.py Issue #15767: Add ModuleNotFoundError. Sep 7, 2016
_compression.py Issue #23529: Limit the size of decompressed data when reading from Apr 10, 2015
_dummy_thread.py Restore dummy_threading and _dummy_thread, but deprecate them (bpo-31… Sep 18, 2017
_markupbase.py #13576: add tests about the handling of (possibly broken) condcoms. Dec 19, 2011
_osx_support.py bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900) Dec 19, 2018
_py_abc.py bpo-33018: Improve issubclass() error checking and message. (GH-5944) Mar 22, 2018
_pydecimal.py bpo-35133: Fix mistakes when concatenate string literals on different… Nov 5, 2018
_pyio.py bpo-33138: Change standard error message for non-pickleable and non-c… Oct 31, 2018
_sitebuiltins.py #9364: Improve the text printed by help(pydoc) and help(help). Apr 19, 2014
_strptime.py bpo-33541: Remove unused __pad function (GH-4377) May 20, 2018
_threading_local.py Delete a broken threading.local example (#5870) Feb 25, 2018
_weakrefset.py bpo-30296 Remove unnecessary tuples, lists, sets, and dicts (#1489) May 18, 2017
abc.py bpo-35609: Remove examples for deprecated decorators in the abc modul… Dec 31, 2018
aifc.py bpo-32056: Improve exceptions in aifc, wave and sunau. (GH-5951) Mar 18, 2018
antigravity.py Change the xkcd link in comment over https. (GH-5452) Sep 14, 2018
argparse.py Remove superseded line from argparse.HelpFormatter() (GH-8839) Aug 22, 2018
ast.py bpo-32892: Support subclasses of base types in isinstance checks for … Oct 28, 2018
asynchat.py Issue #25002: Back out asyncore/asynchat deprecation. Oct 26, 2016
asyncore.py bpo-29639: change test.support.HOST to "localhost" Sep 9, 2017
base64.py bpo-34164: Fix handling of incorrect padding in base64.b32decode(). (G… Jul 24, 2018
bdb.py bpo-34906: Doc: Fix typos (GH-9712) Oct 5, 2018
binhex.py Issue #23865: close() methods in multiple modules now are idempotent … Apr 10, 2015
bisect.py Issue #28792: Remove aliases from _bisect Nov 24, 2016
bz2.py bpo-35128: Fix spacing issues in warning.warn() messages. (GH-10268) Nov 1, 2018
cProfile.py bpo-23420: Verify the value of '-s' when execute the CLI of cProfile ( Oct 17, 2018
calendar.py Closes bpo-28281: Remove year (1-9999) limits on the weekday() functi… Oct 26, 2017
cgi.py bpo-35028: cgi: Fix max_num_fields off by one error (GH-9973) Oct 23, 2018
cgitb.py bpo-33311: Do not display parameters displayed in parentheses for mod… May 9, 2018
chunk.py bpo-29762: More use "raise from None". (#569) Apr 5, 2017
cmd.py Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) Jul 4, 2013
code.py bpo-30166: Import command-line parsing modules only when needed. (#1293) May 4, 2017
codecs.py bpo-32236: open() emits RuntimeWarning if buffering=1 for binary mode ( Oct 20, 2018
codeop.py Merged revisions 75472 via svnmerge from Oct 18, 2009
colorsys.py Issue #14323: Expanded the number of digits in the coefficients for the Aug 6, 2013
compileall.py bpo-29877: compileall: import ProcessPoolExecutor only when needed (G… Nov 23, 2018
configparser.py bpo-27351: Fix ConfigParser.read() documentation and docstring (GH-8123) Sep 29, 2018
contextlib.py bpo-33786: Fix asynchronous generators to handle GeneratorExit in ath… Jun 8, 2018
contextvars.py bpo-32436: Implement PEP 567 (#5027) Jan 23, 2018
copy.py bpo-11572: Make minor improvements to copy module (GH-8208) Jul 9, 2018
copyreg.py bpo-33138: Change standard error message for non-pickleable and non-c… Oct 31, 2018
crypt.py bpo-31702: Allow to specify rounds for SHA-2 hashing in crypt.mksalt(… Nov 16, 2017
csv.py bpo-30157: Fix csv.Sniffer.sniff() regex pattern. (GH-5601) Feb 9, 2018
dataclasses.py bpo-33947: dataclasses no longer can raise RecursionError in repr (GF… Oct 19, 2018
datetime.py bpo-22005: Fixed unpickling instances of datetime classes pickled by … Dec 7, 2018
decimal.py Whitespace. Sep 10, 2014
difflib.py Revert "bpo-35603: Escape table header of make_table output that can … Jan 2, 2019
dis.py bpo-32970: Improve disassembly of the MAKE_FUNCTION instruction. (GH-… Mar 11, 2018
doctest.py bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff (#… Jan 9, 2019
dummy_threading.py Restore dummy_threading and _dummy_thread, but deprecate them (bpo-31… Sep 18, 2017
enum.py Speed-up building enums by value, e.g. http.HTTPStatus(200) (#11318) Dec 26, 2018
filecmp.py shallow defaults to 'True' not '1' (closes #21355) Apr 26, 2014
fileinput.py bpo-9372: Deprecate several __getitem__ methods (GH-8609) Aug 11, 2018
fnmatch.py bpo-32775: Fix regular expression warnings in fnmatch. (#5583) Feb 9, 2018
formatter.py Issue #25407: Drop the mention of the formatter module being removed Oct 16, 2015
fractions.py bpo-35588: Speed up mod, divmod and floordiv operations for Fraction … Jan 2, 2019
ftplib.py bpo-35128: Fix spacing issues in warning.warn() messages. (GH-10268) Nov 1, 2018
functools.py bpo-34890: Make iscoroutinefunction, isgeneratorfunction and isasyncg… Oct 26, 2018
genericpath.py bpo-33721: Make some os.path functions and pathlib.Path methods be t… Sep 18, 2018
getopt.py Issue #25523: Correct "a" article to "an" article Nov 2, 2015
getpass.py getpass: update docstrings (#49) Feb 12, 2017
gettext.py bpo-2504: Add pgettext() and variants to gettext. (GH-7253) Nov 7, 2018
glob.py Issue #27998: Removed workarounds for supporting bytes paths on Windo… Oct 5, 2016
gzip.py bpo-34898: Add mtime parameter to gzip.compress(). (GH-9704) Nov 7, 2018
hashlib.py bpo-33729: Fix issues with arguments parsing in hashlib. (GH-8346) Jul 31, 2018
heapq.py bpo-34149: Behavior of the min/max with key=None (GH-8328) Jul 24, 2018
hmac.py bpo-33604: Remove deprecated HMAC default value marked for removal in… Sep 10, 2018
imaplib.py bpo-35128: Fix spacing issues in warning.warn() messages. (GH-10268) Nov 1, 2018
imghdr.py Issue #28228: imghdr now supports pathlib Oct 1, 2016
imp.py closes bpo-34056: Always return bytes from _HackedGetData.get_data(). ( Jul 7, 2018
inspect.py bpo-34890: Make iscoroutinefunction, isgeneratorfunction and isasyncg… Oct 26, 2018
io.py Issue #1602: Windows console doesn't input or print Unicode (PEP 528) Aug 31, 2016
ipaddress.py bpo-27683: Fix a regression for host() of ipaddress network objects (G… Mar 21, 2018
keyword.py bpo-30406: Make async and await proper keywords (#1669) Oct 6, 2017
linecache.py Issue #23838: linecache now clears the cache and returns an empty res… Apr 1, 2015
locale.py Remove mojibake in the locale aliases mapping. (GH-6716) May 6, 2018
lzma.py Issue #28229: lzma module now supports pathlib Oct 4, 2016
mailbox.py bpo-31522: mailbox.get_string: pass `from_` parameter to `get_bytes` (#… Oct 19, 2018
mailcap.py #14977: Make mailcap respect the order of the lines in the mailcap file. Sep 10, 2016
mimetypes.py bpo-34926: Make mimetypes.guess_type accept os.PathLike objects (GH-9777 Oct 10, 2018
modulefinder.py closes bpo-31650: PEP 552 (Deterministic pycs) implementation (#4575) Dec 9, 2017
netrc.py bpo-28334: netrc() now uses expanduser() to find .netrc file (GH-4537) Nov 25, 2017
nntplib.py bpo-29762: More use "raise from None". (#569) Apr 5, 2017
ntpath.py bpo-31047: Fix ntpath.abspath to trim ending separator (GH-10082) Oct 25, 2018
nturl2path.py bpo-29836: Remove nturl2path from test_sundry and amend the module do… Mar 17, 2017
numbers.py Fix miscellaneous typos (#4275) Nov 5, 2017
opcode.py bpo-33041: Rework compiling an "async for" loop. (#6142) Mar 23, 2018
operator.py Issue #24379: Revert the operator.subscript patch (dccc4e63aef5) pend… Nov 2, 2015
optparse.py bpo-34605: Avoid master/slave terms (GH-9101) Sep 7, 2018
os.py Use generator instead of list in code examples (GH-11203) Dec 23, 2018
pathlib.py bpo-33721: Make some os.path functions and pathlib.Path methods be t… Sep 18, 2018
pdb.py bpo-32691: Use mod_spec.parent when running modules with pdb (GH-5474) Feb 3, 2018
pickle.py bpo-11572: Make minor improvements to copy module (GH-8208) Jul 9, 2018
pickletools.py Fix pickletools doc for NEWFALSE. (GH-9432) Sep 22, 2018
pipes.py Merge doc changes from 3.2 (#10454, #12298) Sep 1, 2011
pkgutil.py closes bpo-31650: PEP 552 (Deterministic pycs) implementation (#4575) Dec 9, 2017
platform.py bpo-35516: platform.system_alias() don't replace Darwin (GH-11207) Dec 18, 2018
plistlib.py bpo-33908: Remove two superfluous assignments (GH-7116) Jun 20, 2018
poplib.py bpo-35128: Fix spacing issues in warning.warn() messages. (GH-10268) Nov 1, 2018
posixpath.py bpo-35471: Remove the macpath module (GH-11129) Dec 14, 2018
pprint.py bpo-35513, unittest: TextTestRunner uses time.perf_counter() (GH-11180) Dec 17, 2018
profile.py bpo-32512: Add -m option to profile for profiling modules (#5132) Nov 5, 2018
pstats.py Revert unneccessary changes made in bpo-30296 and apply other improve… Feb 26, 2018
pty.py Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) Jul 4, 2013
py_compile.py bpo-34022: Stop forcing of hash-based invalidation with SOURCE_DATE_E… Oct 10, 2018
pyclbr.py bpo-6691: Pyclbr now reports nested classes and functions. (#2503) Jul 4, 2017
pydoc.py bpo-35619: Improve support of custom data descriptors in help() and p… Jan 15, 2019
queue.py bpo-14976: Reentrant simple queue (#3346) Jan 15, 2018
quopri.py Issue #23681: Fixed Python 2 to 3 poring bugs. Mar 20, 2015
random.py bpo-30561: Sync-up expovariate() and gammavariate code (GH-1934) Dec 24, 2018
re.py bpo-34681: Rename class Pattern in sre_parse to State. (GH-9310) Sep 18, 2018
reprlib.py bpo-31370: Remove support for threads-less builds (#3385) Sep 7, 2017
rlcompleter.py Merge 3.5 Feb 4, 2016
runpy.py [backport to 3.5] - issue26896 - Disambiguate uses of "importer" with… Sep 7, 2016
sched.py bpo-31370: Remove support for threads-less builds (#3385) Sep 7, 2017
secrets.py Issue #29061: secrets.randbelow() would hang with a negative input Dec 30, 2016
selectors.py bpo-30624 remaining bare except (#2108) Jun 12, 2017
shelve.py Fix misleading docsting of shelve.open(). (GH-6427) Apr 9, 2018
shlex.py Fixed #29132: Updated shlex to work better with punctuation chars in … Jan 15, 2017
shutil.py bpo-20849: add dirs_exist_ok arg to shutil.copytree (patch by Josh Br… Dec 28, 2018
signal.py bpo-34282: Fix Enum._convert shadowing members named _convert (GH-8568) Sep 12, 2018
site.py bpo-19891: Ignore error while writing history file (GH-8483) Aug 6, 2018
smtpd.py Issue #27110: Add smtpd.SMTPChannel to __all__, by Jacek Kołodziej Jun 6, 2016
smtplib.py bpo-35128: Fix spacing issues in warning.warn() messages. (GH-10268) Nov 1, 2018
sndhdr.py bpo-31985: Deprecate openfp in aifc, sunau, and wave (#4344) Nov 10, 2017
socket.py bpo-33138: Change standard error message for non-pickleable and non-c… Oct 31, 2018
socketserver.py Fix typo in socketserver docstring (GH-11252) Dec 21, 2018
sre_compile.py Simplify flags checks in sre_compile.py. (GH-9718) Oct 5, 2018
sre_constants.py bpo-31690: Allow the inline flags "a", "L", and "u" to be used as gro… Oct 24, 2017
sre_parse.py bpo-34681: Rename class Pattern in sre_parse to State. (GH-9310) Sep 18, 2018
ssl.py bpo-33023: Fix NotImplemented to NotImplementedError. (GH-10934) Dec 6, 2018
stat.py closes bpo-34353: Add sockets to stat.filemode fallback python implem… Aug 10, 2018
statistics.py bpo-29919: Remove unused imports found by pyflakes (#137) Mar 27, 2017
string.py bpo-31672: Restore the former behavior when override flags in Templat… Jan 4, 2018
stringprep.py Merged revisions 55007-55179 via svnmerge from May 7, 2007
struct.py Issue #17804: New function ``struct.iter_unpack`` allows for streamin… Apr 26, 2013
subprocess.py bpo-35537: subprocess uses os.posix_spawn in some cases (GH-11452) Jan 15, 2019
sunau.py bpo-32056: Improve exceptions in aifc, wave and sunau. (GH-5951) Mar 18, 2018
symbol.py bpo-30455: Generate all token related code and docs from Grammar/Toke… Dec 22, 2018
symtable.py bpo-34983: Expose symtable.Symbol.is_nonlocal() in the symtable module ( Oct 20, 2018
sysconfig.py bpo-32430: Rename Modules/Setup.dist to Modules/Setup (GH-8229) Jul 16, 2018
tabnanny.py bpo-30166: Import command-line parsing modules only when needed. (#1293) May 4, 2017
tarfile.py bpo-34043: Optimize tarfile uncompress performance (GH-8089) Jul 6, 2018
telnetlib.py bpo-30397: Add re.Pattern and re.Match. (#1646) Oct 4, 2017
tempfile.py bpo-27300: Add the errors parameter to tempfile classes. (GH-6696) May 23, 2018
textwrap.py bpo-30620: Remove dead lines from textwrap.dedent (GH-2064) Jun 16, 2017
this.py Fix most trivially-findable print statements. Feb 9, 2007
threading.py bpo-33556: Remove reference to thread module from docstring (GH-6963) May 18, 2018
timeit.py bpo-28240: timeit: Update repeat() doc (GH-7419) Jun 6, 2018
token.py bpo-30455: Generate all token related code and docs from Grammar/Toke… Dec 22, 2018
tokenize.py bpo-30455: Generate all token related code and docs from Grammar/Toke… Dec 22, 2018
trace.py bpo-35202: Remove unused imports in Lib directory. (GH-10445) Nov 10, 2018
traceback.py bpo-26502: Implement FrameSummary.__len__() (GH-8632) Sep 10, 2018
tracemalloc.py bpo-32121: Add most_recent_first parameter to tracemalloc.Traceback.f… Nov 29, 2017
tty.py final round of __all__ lists (I hope) - skipped urllib2 because Moshe… Mar 1, 2001
turtle.py bpo-35250: Correct argument name "num" -> "btn" in turtle docs. (GH-1… Nov 16, 2018
types.py bpo-32265: Classify class and static methods of builtin types. (#4776) Dec 15, 2017
typing.py bpo-35341: Add generic version of OrderedDict to typing (GH-10850) Dec 2, 2018
uu.py bpo-30103: Allow Uuencode in Python using backtick as zero instead of… May 3, 2017
uuid.py bpo-31784: Use time.time_ns() in uuid.uuid1() (GH-11189) Dec 18, 2018
warnings.py bpo-29564: warnings suggests to enable tracemalloc (GH-10486) Nov 13, 2018
wave.py bpo-32056: Improve exceptions in aifc, wave and sunau. (GH-5951) Mar 18, 2018
weakref.py bpo-30152: Reduce the number of imports for argparse. (#1269) Sep 25, 2017
webbrowser.py bpo-35308: Fix regression where BROWSER env var is not respected. (GH… Nov 26, 2018
xdrlib.py Issue #11694: Raise ConversionError in xdrlib as documented Oct 10, 2014
zipapp.py bpo-31638: Add compression support to zipapp (GH-3819) Sep 29, 2017
zipfile.py bpo-32035: Fix words about strings and bytes in zipfile documentation. ( Nov 25, 2018
zipimport.py bpo-34726: Fix handling of hash-based pycs in zipimport. (GH-10327) Nov 7, 2018