@@ -458,7 +458,7 @@ functions.
458
458
- :const: `0 ` means unbuffered (read and write are one
459
459
system call and can return short)
460
460
- :const: `1 ` means line buffered
461
- (only usable if ``universal_newlines =True `` i.e., in a text mode )
461
+ (only usable if ``text =True `` or `` universal_newlines=True `` )
462
462
- any other positive value means use a buffer of approximately that
463
463
size
464
464
- negative bufsize (the default) means the system default of
@@ -849,7 +849,8 @@ Instances of the :class:`Popen` class have the following methods:
849
849
On Windows :meth: `kill ` is an alias for :meth: `terminate `.
850
850
851
851
852
- The following attributes are also available:
852
+ The following attributes are also set by the class for you to access.
853
+ Reassigning them to new values is unsupported:
853
854
854
855
.. attribute :: Popen.args
855
856
@@ -862,29 +863,29 @@ The following attributes are also available:
862
863
863
864
If the *stdin * argument was :data: `PIPE `, this attribute is a writeable
864
865
stream object as returned by :func: `open `. If the *encoding * or *errors *
865
- arguments were specified or the *universal_newlines * argument was `` True ``,
866
- the stream is a text stream, otherwise it is a byte stream. If the * stdin *
867
- argument was not :data: `PIPE `, this attribute is ``None ``.
866
+ arguments were specified or the *text * or * universal_newlines * argument
867
+ was `` True ``, the stream is a text stream, otherwise it is a byte stream.
868
+ If the * stdin * argument was not :data: `PIPE `, this attribute is ``None ``.
868
869
869
870
870
871
.. attribute :: Popen.stdout
871
872
872
873
If the *stdout * argument was :data: `PIPE `, this attribute is a readable
873
874
stream object as returned by :func: `open `. Reading from the stream provides
874
875
output from the child process. If the *encoding * or *errors * arguments were
875
- specified or the *universal_newlines * argument was ``True ``, the stream is a
876
- text stream, otherwise it is a byte stream. If the *stdout * argument was not
877
- :data: `PIPE `, this attribute is ``None ``.
876
+ specified or the *text * or * universal_newlines * argument was ``True ``, the
877
+ stream is a text stream, otherwise it is a byte stream. If the *stdout *
878
+ argument was not :data: `PIPE `, this attribute is ``None ``.
878
879
879
880
880
881
.. attribute :: Popen.stderr
881
882
882
883
If the *stderr * argument was :data: `PIPE `, this attribute is a readable
883
884
stream object as returned by :func: `open `. Reading from the stream provides
884
885
error output from the child process. If the *encoding * or *errors * arguments
885
- were specified or the *universal_newlines * argument was ``True ``, the stream
886
- is a text stream, otherwise it is a byte stream. If the *stderr * argument was
887
- not :data: `PIPE `, this attribute is ``None ``.
886
+ were specified or the *text * or * universal_newlines * argument was ``True ``, the
887
+ stream is a text stream, otherwise it is a byte stream. If the *stderr * argument
888
+ was not :data: `PIPE `, this attribute is ``None ``.
888
889
889
890
.. warning ::
890
891
0 commit comments