mirror of
https://github.com/python/cpython
synced 2024-10-14 08:51:20 +00:00
bpo-14014: Clarify StreamWriter.reset() documentation (GH-13716)
This commit is contained in:
parent
203b2493ae
commit
1a9f51ed12
|
@ -697,7 +697,7 @@ compatible with the Python codec registry.
|
|||
|
||||
.. method:: reset()
|
||||
|
||||
Flushes and resets the codec buffers used for keeping state.
|
||||
Resets the codec buffers used for keeping internal state.
|
||||
|
||||
Calling this method should ensure that the data on the output is put into
|
||||
a clean state that allows appending of new fresh data without having to
|
||||
|
@ -792,7 +792,7 @@ compatible with the Python codec registry.
|
|||
|
||||
.. method:: reset()
|
||||
|
||||
Resets the codec buffers used for keeping state.
|
||||
Resets the codec buffers used for keeping internal state.
|
||||
|
||||
Note that no stream repositioning should take place. This method is
|
||||
primarily intended to be able to recover from decoding errors.
|
||||
|
|
|
@ -386,7 +386,7 @@ def writelines(self, list):
|
|||
|
||||
def reset(self):
|
||||
|
||||
""" Flushes and resets the codec buffers used for keeping state.
|
||||
""" Resets the codec buffers used for keeping internal state.
|
||||
|
||||
Calling this method should ensure that the data on the
|
||||
output is put into a clean state, that allows appending
|
||||
|
@ -620,7 +620,7 @@ def readlines(self, sizehint=None, keepends=True):
|
|||
|
||||
def reset(self):
|
||||
|
||||
""" Resets the codec buffers used for keeping state.
|
||||
""" Resets the codec buffers used for keeping internal state.
|
||||
|
||||
Note that no stream repositioning should take place.
|
||||
This method is primarily intended to be able to recover
|
||||
|
|
Loading…
Reference in a new issue