summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2006-03-31 09:15:29 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2006-03-31 09:15:29 (GMT)
commita35b05ebd05578d5c9491bd54a4f39735a1c937e (patch)
treec09596949703d9c93dea7e0d4b1c59d6d16b93a8 /Doc
parent602d339047bcdd07608b0046f66427c2a41c89a7 (diff)
downloadcpython-a35b05ebd05578d5c9491bd54a4f39735a1c937e.zip
cpython-a35b05ebd05578d5c9491bd54a4f39735a1c937e.tar.gz
cpython-a35b05ebd05578d5c9491bd54a4f39735a1c937e.tar.bz2
Clarify what the final argument does in
IncrementalDecoder.decode().
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libcodecs.tex4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/lib/libcodecs.tex b/Doc/lib/libcodecs.tex
index 951a68a..6baf188 100644
--- a/Doc/lib/libcodecs.tex
+++ b/Doc/lib/libcodecs.tex
@@ -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}{}