This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author berker.peksag
Recipients Raúl Núñez de Arenas, berker.peksag, eryksun, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-04-29.17:34:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1556559295.73.0.0682170220559.issue26493@roundup.psfhosted.org>
In-reply-to
Content
FYI, in msg261315, Eryk has mentioned about possible improvement of the exception message on POSIX. The filename has been added to the exception message in 8621bb5d93239316f97281826461b85072ff6db7:

>>> import subprocess, os
>>> os.access('log.txt', os.X_OK)
True
>>> subprocess.call(['./log.txt'])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/berkerpeksag/projects/cpython/Lib/subprocess.py", line 325, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/Users/berkerpeksag/projects/cpython/Lib/subprocess.py", line 830, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/Users/berkerpeksag/projects/cpython/Lib/subprocess.py", line 1648, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: './log.txt'
History
Date User Action Args
2019-04-29 17:34:55berker.peksagsetrecipients: + berker.peksag, paul.moore, tim.golden, zach.ware, eryksun, steve.dower, Raúl Núñez de Arenas
2019-04-29 17:34:55berker.peksagsetmessageid: <1556559295.73.0.0682170220559.issue26493@roundup.psfhosted.org>
2019-04-29 17:34:55berker.peksaglinkissue26493 messages
2019-04-29 17:34:55berker.peksagcreate