[issue33877] doc Mention Windows along UNIX for script running instructions
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
New submission from Andrés Delfino <adelfino@gmail.com>: Reference 9.1. says: "Under Unix, a complete program can be passed to the interpreter in three forms...". This also applies to Windows. PR fixes this. ---------- assignee: docs@python components: Documentation messages: 319703 nosy: adelfino, docs@python priority: normal severity: normal status: open title: doc Mention Windows along UNIX for script running instructions type: enhancement versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue33877> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Change by Andrés Delfino <adelfino@gmail.com>: ---------- keywords: +patch pull_requests: +7352 stage: -> patch review _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue33877> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Change by Ned Deily <nad@python.org>: ---------- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue33877> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Change by Ned Deily <nad@python.org>: ---------- nosy: +terry.reedy _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue33877> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Terry J. Reedy <tjreedy@udel.edu> added the comment: The paragraph reads: Under Unix, a complete program can be passed to the interpreter in three forms: with the -c string command line option, as a file passed as the first command line argument, or as standard input. If the file or standard input is a tty device, the interpreter enters interactive mode; otherwise, it executes the file as a complete program. This is slightly confusing because a complete programs cannot be passed all at once if the file (regular or stdin) is interactive. Not being a Windows expert, I was curious whether the standard input part is true for Win 10. Indeed, both "python con:" and "python <con:" (as well as just "python") start Python in interactive mode, which both "python file" and "python < file" executes the file. Ned, is the statement untrue for MacOS, or does 'Unix' always include Macs? In other words, should we add 'Windows' or delete 'Unix'? ---------- nosy: +ned.deily _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue33877> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Ned Deily <nad@python.org> added the comment: The statement is true for macOS (note macOS is the correct current styling per Apple); in general, macOS is a UNIX platform as far as Python is concerned. So, yes, it appears the documentation there could be simplified by eliminating the platform distinction. ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue33877> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Terry J. Reedy <tjreedy@udel.edu> added the comment: Thanks. I did that and will merge when possible. ---------- assignee: docs@python -> terry.reedy _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue33877> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Terry J. Reedy <tjreedy@udel.edu> added the comment: New changeset c9d43c702a53804c23ecb22a0dbf6a47c804d2b1 by Terry Jan Reedy (Andrés Delfino) in branch 'master': bpo-33877: Remove UNIX qualification for running complete programs (GH-7744) https://github.com/python/cpython/commit/c9d43c702a53804c23ecb22a0dbf6a47c80... ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue33877> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Change by miss-islington <mariatta.wijaya+miss-islington@gmail.com>: ---------- pull_requests: +7472 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue33877> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Change by miss-islington <mariatta.wijaya+miss-islington@gmail.com>: ---------- pull_requests: +7473 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue33877> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Change by Terry J. Reedy <tjreedy@udel.edu>: ---------- title: doc Mention Windows along UNIX for script running instructions -> Doc: Delete UNIX qualification for script running instructions _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue33877> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
miss-islington <mariatta.wijaya+miss-islington@gmail.com> added the comment: New changeset f47d8983fe35239cccf4e623e4ad70c9e0f636f9 by Miss Islington (bot) in branch '3.7': bpo-33877: Remove UNIX qualification for running complete programs (GH-7744) https://github.com/python/cpython/commit/f47d8983fe35239cccf4e623e4ad70c9e0f... ---------- nosy: +miss-islington _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue33877> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
miss-islington <mariatta.wijaya+miss-islington@gmail.com> added the comment: New changeset 688325ed1a4d549f03d886507c265093aa3b2cab by Miss Islington (bot) in branch '3.6': bpo-33877: Remove UNIX qualification for running complete programs (GH-7744) https://github.com/python/cpython/commit/688325ed1a4d549f03d886507c265093aa3... ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue33877> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Change by Andrés Delfino <adelfino@gmail.com>: ---------- pull_requests: +7476 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue33877> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Terry J. Reedy <tjreedy@udel.edu> added the comment: New changeset 1c9a72cc99d4f76a18755d7227bd1c375e44b4ad by Terry Jan Reedy (Andrés Delfino) in branch '2.7': [2.7] bpo-33877: Remove UNIX qualification for running complete programs (GH-7744) https://github.com/python/cpython/commit/1c9a72cc99d4f76a18755d7227bd1c375e4... ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue33877> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Change by Andrés Delfino <adelfino@gmail.com>: ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue33877> _______________________________________
participants (4)
-
Andrés Delfino
-
miss-islington
-
Ned Deily
-
Terry J. Reedy