@@ -466,7 +466,7 @@ I/O Base Classes
466
466
467
467
.. class :: RawIOBase
468
468
469
- Base class for raw binary streams. It inherits :class: `IOBase `.
469
+ Base class for raw binary streams. It inherits from :class: `IOBase `.
470
470
471
471
Raw binary streams typically provide low-level access to an underlying OS
472
472
device or API, and do not try to encapsulate it in high-level primitives
@@ -519,7 +519,7 @@ I/O Base Classes
519
519
.. class :: BufferedIOBase
520
520
521
521
Base class for binary streams that support some kind of buffering.
522
- It inherits :class: `IOBase `.
522
+ It inherits from :class: `IOBase `.
523
523
524
524
The main difference with :class: `RawIOBase ` is that methods :meth: `read `,
525
525
:meth: `readinto ` and :meth: `write ` will try (respectively) to read as much
@@ -633,7 +633,7 @@ Raw File I/O
633
633
.. class :: FileIO(name, mode='r', closefd=True, opener=None)
634
634
635
635
A raw binary stream representing an OS-level file containing bytes data. It
636
- inherits :class: `RawIOBase `.
636
+ inherits from :class: `RawIOBase `.
637
637
638
638
The *name * can be one of two things:
639
639
@@ -696,7 +696,7 @@ than raw I/O does.
696
696
697
697
.. class :: BytesIO(initial_bytes=b'')
698
698
699
- A binary stream using an in-memory bytes buffer. It inherits
699
+ A binary stream using an in-memory bytes buffer. It inherits from
700
700
:class: `BufferedIOBase `. The buffer is discarded when the
701
701
:meth: `~IOBase.close ` method is called.
702
702
@@ -745,7 +745,7 @@ than raw I/O does.
745
745
.. class :: BufferedReader(raw, buffer_size=DEFAULT_BUFFER_SIZE)
746
746
747
747
A buffered binary stream providing higher-level access to a readable, non
748
- seekable :class: `RawIOBase ` raw binary stream. It inherits
748
+ seekable :class: `RawIOBase ` raw binary stream. It inherits from
749
749
:class: `BufferedIOBase `.
750
750
751
751
When reading data from this object, a larger amount of data may be
@@ -783,7 +783,7 @@ than raw I/O does.
783
783
.. class :: BufferedWriter(raw, buffer_size=DEFAULT_BUFFER_SIZE)
784
784
785
785
A buffered binary stream providing higher-level access to a writeable, non
786
- seekable :class: `RawIOBase ` raw binary stream. It inherits
786
+ seekable :class: `RawIOBase ` raw binary stream. It inherits from
787
787
:class: `BufferedIOBase `.
788
788
789
789
When writing to this object, data is normally placed into an internal
@@ -818,7 +818,7 @@ than raw I/O does.
818
818
.. class :: BufferedRandom(raw, buffer_size=DEFAULT_BUFFER_SIZE)
819
819
820
820
A buffered binary stream providing higher-level access to a seekable
821
- :class: `RawIOBase ` raw binary stream. It inherits :class: `BufferedReader `
821
+ :class: `RawIOBase ` raw binary stream. It inherits from :class: `BufferedReader `
822
822
and :class: `BufferedWriter `.
823
823
824
824
The constructor creates a reader and writer for a seekable raw stream, given
@@ -834,7 +834,7 @@ than raw I/O does.
834
834
835
835
A buffered binary stream providing higher-level access to two non seekable
836
836
:class: `RawIOBase ` raw binary streams---one readable, the other writeable.
837
- It inherits :class: `BufferedIOBase `.
837
+ It inherits from :class: `BufferedIOBase `.
838
838
839
839
*reader * and *writer * are :class: `RawIOBase ` objects that are readable and
840
840
writeable respectively. If the *buffer_size * is omitted it defaults to
@@ -857,7 +857,7 @@ Text I/O
857
857
.. class :: TextIOBase
858
858
859
859
Base class for text streams. This class provides a character and line based
860
- interface to stream I/O. It inherits :class: `IOBase `.
860
+ interface to stream I/O. It inherits from :class: `IOBase `.
861
861
862
862
:class: `TextIOBase ` provides or overrides these data attributes and
863
863
methods in addition to those from :class: `IOBase `:
@@ -946,7 +946,7 @@ Text I/O
946
946
line_buffering=False, write_through=False)
947
947
948
948
A buffered text stream providing higher-level access to a
949
- :class: `BufferedIOBase ` buffered binary stream. It inherits
949
+ :class: `BufferedIOBase ` buffered binary stream. It inherits from
950
950
:class: `TextIOBase `.
951
951
952
952
*encoding * gives the name of the encoding that the stream will be decoded or
@@ -1073,7 +1073,7 @@ Text I/O
1073
1073
1074
1074
.. class :: StringIO(initial_value='', newline='\n')
1075
1075
1076
- A text stream using an in-memory text buffer. It inherits
1076
+ A text stream using an in-memory text buffer. It inherits from
1077
1077
:class: `TextIOBase `.
1078
1078
1079
1079
The text buffer is discarded when the :meth: `~IOBase.close ` method is
@@ -1124,7 +1124,7 @@ Text I/O
1124
1124
.. class :: IncrementalNewlineDecoder
1125
1125
1126
1126
A helper codec that decodes newlines for :term: `universal newlines ` mode.
1127
- It inherits :class: `codecs.IncrementalDecoder `.
1127
+ It inherits from :class: `codecs.IncrementalDecoder `.
1128
1128
1129
1129
1130
1130
Performance
0 commit comments