Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 95b696a

Browse files
committed
#10197: Update get[status]output versionchanged with actual version.
This was perhaps on the border between a bug fix and a feature since the Python3 docs did not originally say it was unix only. However, the functions never worked anywhere but unix, and the docs were changed to say it was unix only well before the windows support was added. Unfortunately, windows support was added in 3.3.4 as well as 3.4. That leaves us in the uncomfortable position of needing the tag to say "version changed: 3.3.4" :(
1 parent c39e892 commit 95b696a

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

Doc/library/subprocess.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,8 +1072,10 @@ handling consistency are valid for these functions.
10721072
>>> subprocess.getstatusoutput('/bin/junk')
10731073
(256, 'sh: /bin/junk: not found')
10741074

1075-
.. versionchanged:: 3.3
1076-
Availability: Unix & Windows
1075+
Availability: Unix & Windows
1076+
1077+
.. versionchanged:: 3.3.4
1078+
Windows support added
10771079

10781080

10791081
.. function:: getoutput(cmd)
@@ -1086,8 +1088,10 @@ handling consistency are valid for these functions.
10861088
>>> subprocess.getoutput('ls /bin/ls')
10871089
'/bin/ls'
10881090

1089-
.. versionchanged:: 3.3
1090-
Availability: Unix & Windows
1091+
Availability: Unix & Windows
1092+
1093+
.. versionchanged:: 3.3.4
1094+
Windows support added
10911095

10921096

10931097
Notes

0 commit comments

Comments
 (0)