mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
Clarify what the final argument does in
IncrementalDecoder.decode().
This commit is contained in:
parent
602d339047
commit
a35b05ebd0
1 changed files with 4 additions and 0 deletions
|
|
@ -443,6 +443,10 @@ define in order to be compatible to the Python codec registry.
|
|||
Decodes \var{object} (taking the current state of the decoder into account)
|
||||
and returns the resulting decoded object. If this is the last call to
|
||||
\method{decode} \var{final} must be true (the default is false).
|
||||
If \var{final} is true the decoder must decode the input completely and must
|
||||
flush all buffers. If this isn't possible (e.g. because of incomplete byte
|
||||
sequences at the end of the input) it must initiate error handling just like
|
||||
in the stateless case (which might raise an exception).
|
||||
\end{methoddesc}
|
||||
|
||||
\begin{methoddesc}{reset}{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue