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 AndiDog
Recipients AndiDog, docs@python
Date 2015-03-23.14:28:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Reading over the section "Replacing os.system()" (, one might assume that the return value of os.system and are equivalent.

    status = os.system("mycmd" + " myarg")
    # becomes
    status ="mycmd" + " myarg", shell=True)

However, they are not. Example:

    import sys
    import os
    import subprocess

    print os.system("false")

gives 1 and 256, respectively. Maybe this could be rephrased for clarity, or a hint added.
Date User Action Args
2015-03-23 14:28:11AndiDogsetrecipients: + AndiDog, docs@python
2015-03-23 14:28:11AndiDogsetmessageid: <>
2015-03-23 14:28:11AndiDoglinkissue23750 messages
2015-03-23 14:28:11AndiDogcreate