Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
6bed1c1f
Kaydet (Commit)
6bed1c1f
authored
Mar 16, 2006
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add some versionadded info to new incremental codec docs and fix doco nits.
üst
922ff4a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
libcodecs.tex
Doc/lib/libcodecs.tex
+6
-0
codecs.py
Lib/codecs.py
+2
-2
No files found.
Doc/lib/libcodecs.tex
Dosyayı görüntüle @
6bed1c1f
...
...
@@ -112,6 +112,7 @@ class or factory function.
Raises a
\exception
{
LookupError
}
in case the encoding cannot be found or the
codec doesn't support an incremental encoder.
\versionadded
{
2.5
}
\end{funcdesc}
\begin{funcdesc}
{
getincrementaldecoder
}{
encoding
}
...
...
@@ -120,6 +121,7 @@ class or factory function.
Raises a
\exception
{
LookupError
}
in case the encoding cannot be found or the
codec doesn't support an incremental decoder.
\versionadded
{
2.5
}
\end{funcdesc}
\begin{funcdesc}
{
getreader
}{
encoding
}
...
...
@@ -229,12 +231,14 @@ an encoding error occurs.
Uses an incremental encoder to iteratively encode the input provided by
\var
{
iterable
}
. This function is a generator.
\var
{
errors
}
(as well as
any other keyword argument) is passed through to the incremental encoder.
\versionadded
{
2.5
}
\end{funcdesc}
\begin{funcdesc}
{
iterdecode
}{
iterable, encoding
\optional
{
, errors
}}
Uses an incremental decoder to iteratively decode the input provided by
\var
{
iterable
}
. This function is a generator.
\var
{
errors
}
(as well as
any other keyword argument) is passed through to the incremental encoder.
\versionadded
{
2.5
}
\end{funcdesc}
The module also provides the following constants which are useful
...
...
@@ -355,6 +359,8 @@ encoded/decoded with the stateless encoder/decoder.
\subsubsection
{
IncrementalEncoder Objects
\label
{
incremental-encoder-objects
}}
\versionadded
{
2.5
}
The
\class
{
IncrementalEncoder
}
class is used for encoding an input in multiple
steps. It defines the following methods which every incremental encoder must
define in order to be compatible to the Python codec registry.
...
...
Lib/codecs.py
Dosyayı görüntüle @
6bed1c1f
...
...
@@ -156,13 +156,13 @@ class Codec:
class
IncrementalEncoder
(
object
):
"""
A IncrementalEncoder encodes an input in multiple steps. The input can be
A
n
IncrementalEncoder encodes an input in multiple steps. The input can be
passed piece by piece to the encode() method. The IncrementalEncoder remembers
the state of the Encoding process between calls to encode().
"""
def
__init__
(
self
,
errors
=
'strict'
):
"""
Creates a IncrementalEncoder instance.
Creates a
n
IncrementalEncoder instance.
The IncrementalEncoder may use different error handling schemes by
providing the errors keyword argument. See the module docstring
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment