cpython/Lib
Victor Stinner 228a3c99bd
bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12858)
shutil.which() and distutils.spawn.find_executable() now use
os.confstr("CS_PATH") if available instead of os.defpath, if the PATH
environment variable is not set.

Don't use os.confstr("CS_PATH") nor os.defpath if the PATH
environment variable is set to an empty string to mimick Unix 'which'
command behavior.

Changes:

* find_executable() now starts by checking for the executable in the
  current working directly case. Add an explicit
  "if not path: return None".
* Add tests for PATH='' (empty string), PATH=':' and for PATHEXT.
2019-04-17 16:26:36 +02:00
..
asyncio bpo-34139: Remove unix datagram socket from FS before binding (GH-8323) 2019-04-09 06:40:59 -07:00
collections Have UserDict.__init__() implicitly check for updating w/ bool(kwargs) instead of len() (GH-12139) 2019-04-02 14:47:41 -07:00
concurrent Correct grammar in concurrent/futures/process.py docstring (GH-12761) 2019-04-12 09:17:17 -07:00
ctypes bpo-36504: Fix signed integer overflow in _ctypes.c's PyCArrayType_new(). (GH-12660) 2019-04-02 13:47:51 +03:00
curses bpo-36492: Deprecate passing some arguments as keyword arguments. (GH-12637) 2019-04-01 09:16:35 +03:00
dbm Clean up code which checked presence of os.{stat,lstat,chmod} (#11643) 2019-02-25 23:32:27 +01:00
distutils bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12858) 2019-04-17 16:26:36 +02:00
email
encodings bpo-36297: remove "unicode_internal" codec (GH-12342) 2019-03-18 15:44:11 +09:00
ensurepip bpo-35807: Upgrade ensurepip bundled pip and setuptools (GH-12189) 2019-03-06 06:42:21 -05:00
html
http bpo-36050: optimize HTTPResponse.read() (GH-12698) 2019-04-06 18:06:19 +09:00
idlelib bpo-36431: Use PEP 448 dict unpacking for merging two dicts. (GH-12553) 2019-03-27 08:02:28 +02:00
importlib bpo-35843: Implement __getitem__ for _NamespacePath (GH-11690) 2019-03-08 10:58:00 -08:00
json bpo-33461: emit DeprecationWarning when json.loads(encoding=...) is used (GH-6762) 2019-04-09 16:17:25 +09:00
lib2to3
logging bpo-36272: Logging now propagates RecursionError (GH-12312) 2019-03-15 06:53:34 +00:00
msilib
multiprocessing bpo-36492: Deprecate passing some arguments as keyword arguments. (GH-12637) 2019-04-01 09:16:35 +03:00
pydoc_data v3.8.0a3 2019-03-25 20:36:40 +01:00
site-packages
sqlite3
test bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12858) 2019-04-17 16:26:36 +02:00
tkinter bpo-25451: Add transparency methods to tkinter.PhotoImage. (GH-10406) 2019-04-05 13:17:13 +03:00
turtledemo
unittest bpo-36593: Fix isinstance check for Mock objects with spec executed under tracing (GH-12790) 2019-04-13 20:12:33 +01:00
urllib bpo-12910: update and correct quote docstring (#2568) 2019-04-09 17:31:18 -07:00
venv bpo-34144: Fix of venv acvtivate.bat for win 10 (GH-8321) 2019-04-10 10:19:16 -07:00
wsgiref bpo-18610: Update wsgiref.validate docstring for wsgi.input read() (GH-11663) 2019-04-13 08:01:15 -04:00
xml bpo-30485: Re-allow empty strings in ElementPath namespace mappings since they might actually be harmless and unused (and thus went undetected previously). (#12830) 2019-04-14 21:12:34 +02:00
xmlrpc
__future__.py
__phello__.foo.py
_bootlocale.py
_collections_abc.py
_compat_pickle.py
_compression.py
_dummy_thread.py
_markupbase.py
_osx_support.py
_py_abc.py
_pydecimal.py
_pyio.py closes bpo-35848: Move all documentation regarding the readinto out of IOBase. (GH-11893) 2019-04-08 21:35:27 -07:00
_sitebuiltins.py
_strptime.py
_threading_local.py
_weakrefset.py
abc.py
aifc.py
antigravity.py
argparse.py
ast.py bpo-35975: Support parsing earlier minor versions of Python 3 (GH-12086) 2019-03-07 12:38:08 -08:00
asynchat.py
asyncore.py
base64.py
bdb.py bpo-36492: Deprecate passing some arguments as keyword arguments. (GH-12637) 2019-04-01 09:16:35 +03:00
binhex.py
bisect.py remove duplicate code in biscet (GH-1270) 2019-04-08 17:01:09 +09:00
bz2.py
cProfile.py bpo-36492: Deprecate passing some arguments as keyword arguments. (GH-12637) 2019-04-01 09:16:35 +03:00
calendar.py
cgi.py
cgitb.py
chunk.py
cmd.py
code.py
codecs.py
codeop.py
colorsys.py
compileall.py
configparser.py fix typo in configparser doc (GH-12154) 2019-03-03 18:23:19 -08:00
contextlib.py bpo-36492: Deprecate passing some arguments as keyword arguments. (GH-12637) 2019-04-01 09:16:35 +03:00
contextvars.py
copy.py
copyreg.py
crypt.py
csv.py
dataclasses.py
datetime.py
decimal.py
difflib.py
dis.py
doctest.py
dummy_threading.py
enum.py bpo-35899: Fix Enum handling of empty and weird strings (GH-11891) 2019-03-03 14:09:11 -08:00
filecmp.py
fileinput.py Clean up code which checked presence of os.{stat,lstat,chmod} (#11643) 2019-02-25 23:32:27 +01:00
fnmatch.py
formatter.py
fractions.py bpo-36625: Remove obsolete comments from docstrings in fractions module (GH-12822) 2019-04-15 13:37:04 +01:00
ftplib.py bpo-35934: Add socket.create_server() utility function (GH-11784) 2019-04-09 00:34:02 +02:00
functools.py bpo-36492: Deprecate passing some arguments as keyword arguments. (GH-12637) 2019-04-01 09:16:35 +03:00
genericpath.py
getopt.py
getpass.py
gettext.py
glob.py
gzip.py
hashlib.py
heapq.py
hmac.py
imaplib.py bpo-36348: IMAP4.logout() doesn't ignore exc (GH-12411) 2019-04-15 18:23:20 +02:00
imghdr.py
imp.py
inspect.py bpo-33261: guard access to __code__ attribute in inspect (GH-6448) 2019-04-02 16:03:42 +02:00
io.py
ipaddress.py bpo-27860: ipaddress: fix Interface missed some attributes (GH-12836) 2019-04-16 08:32:28 +09:00
keyword.py bpo-36143: Regenerate Lib/keyword.py from the Grammar and Tokens file using pgen (GH-12456) 2019-03-25 22:01:12 +00:00
linecache.py
locale.py
lzma.py
mailbox.py
mailcap.py
mimetypes.py
modulefinder.py bpo-35936: Updates to modulefinder (GH-11787) 2019-04-07 18:00:41 +10:00
netrc.py
nntplib.py
ntpath.py bpo-30427: eliminate redundant type checks in os.path.normcase() (GH-1712) 2019-03-28 14:47:18 -07:00
nturl2path.py
numbers.py
opcode.py
operator.py
optparse.py
os.py bpo-36085: Enable better DLL resolution on Windows (GH-12302) 2019-03-29 16:37:16 -07:00
pathlib.py
pdb.py bpo-36431: Use PEP 448 dict unpacking for merging two dicts. (GH-12553) 2019-03-27 08:02:28 +02:00
pickle.py
pickletools.py
pipes.py
pkgutil.py
platform.py
plistlib.py
poplib.py
posixpath.py bpo-30427: eliminate redundant type checks in os.path.normcase() (GH-1712) 2019-03-28 14:47:18 -07:00
pprint.py bpo-30670: Add pp function to the pprint module (GH-11769) 2019-03-22 10:22:20 -07:00
profile.py bpo-36492: Deprecate passing some arguments as keyword arguments. (GH-12637) 2019-04-01 09:16:35 +03:00
pstats.py
pty.py
py_compile.py
pyclbr.py bpo-36298: Raise ModuleNotFoundError in pyclbr when a module can't be found (GH-12358) 2019-03-22 15:16:50 -07:00
pydoc.py Add missing docstrings for TarInfo objects (#12555) 2019-03-27 13:16:34 -07:00
queue.py
quopri.py
random.py bpo-36559: random module: optimize sha512 import (GH-12742) 2019-04-10 13:18:02 -07:00
re.py
reprlib.py
rlcompleter.py
runpy.py
sched.py
secrets.py
selectors.py
shelve.py
shlex.py
shutil.py bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12858) 2019-04-17 16:26:36 +02:00
signal.py
site.py
smtpd.py
smtplib.py
sndhdr.py
socket.py BPO-17561: set create_server backlog default to None (GH-12735) 2019-04-09 04:42:06 +02:00
socketserver.py
sre_compile.py
sre_constants.py
sre_parse.py
ssl.py
stat.py
statistics.py bpo-27181: Add statistics.geometric_mean() (GH-12638) 2019-04-07 09:20:03 -07:00
string.py
stringprep.py
struct.py
subprocess.py
sunau.py
symbol.py
symtable.py
sysconfig.py
tabnanny.py
tarfile.py Add missing docstrings for TarInfo objects (#12555) 2019-03-27 13:16:34 -07:00
telnetlib.py
tempfile.py Clean up code which checked presence of os.{stat,lstat,chmod} (#11643) 2019-02-25 23:32:27 +01:00
textwrap.py
this.py
threading.py Fix typos and improve grammar in threading.Barrier docstrings (GH-12210) 2019-03-09 09:38:05 -08:00
timeit.py
token.py bpo-35975: Support parsing earlier minor versions of Python 3 (GH-12086) 2019-03-07 12:38:08 -08:00
tokenize.py
trace.py bpo-36492: Deprecate passing some arguments as keyword arguments. (GH-12637) 2019-04-01 09:16:35 +03:00
traceback.py
tracemalloc.py
tty.py
turtle.py
types.py bpo-36091: Remove reference to async generator in Lib/types.py. (GH-11996) 2019-03-03 16:35:24 +02:00
typing.py bpo-36320: Switch typing.NamedTuple from OrderedDict to regular dict (GH-12396) 2019-03-18 09:53:56 -07:00
uu.py
uuid.py
warnings.py bpo-35178: Fix warnings._formatwarnmsg() (GH-12033) 2019-03-01 18:17:55 +01:00
wave.py
weakref.py bpo-36492: Deprecate passing some arguments as keyword arguments. (GH-12637) 2019-04-01 09:16:35 +03:00
webbrowser.py
xdrlib.py
zipapp.py
zipfile.py bpo-36434: Properly handle writing errors in ZIP files. (GH-12559) 2019-03-30 08:25:19 +02:00
zipimport.py