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
219336af
Kaydet (Commit)
219336af
authored
Tem 19, 2007
tarafından
Walter Dörwald
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Document that codecs.lookup() returns a CodecInfo object.
(fixes SF bug #1754453).
üst
b68c944c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
_codecsmodule.c
Modules/_codecsmodule.c
+5
-4
No files found.
Modules/_codecsmodule.c
Dosyayı görüntüle @
219336af
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
register(search_function) -> None
register(search_function) -> None
lookup(encoding) ->
(encoder, decoder, stream_reader, stream_writer)
lookup(encoding) ->
CodecInfo object
The builtin Unicode codecs use the following interface:
The builtin Unicode codecs use the following interface:
...
@@ -45,7 +45,8 @@ PyDoc_STRVAR(register__doc__,
...
@@ -45,7 +45,8 @@ PyDoc_STRVAR(register__doc__,
\n
\
\n
\
Register a codec search function. Search functions are expected to take
\n
\
Register a codec search function. Search functions are expected to take
\n
\
one argument, the encoding name in all lower case letters, and return
\n
\
one argument, the encoding name in all lower case letters, and return
\n
\
a tuple of functions (encoder, decoder, stream_reader, stream_writer)."
);
a tuple of functions (encoder, decoder, stream_reader, stream_writer)
\n
\
(or a CodecInfo object)."
);
static
static
PyObject
*
codec_register
(
PyObject
*
self
,
PyObject
*
search_function
)
PyObject
*
codec_register
(
PyObject
*
self
,
PyObject
*
search_function
)
...
@@ -57,10 +58,10 @@ PyObject *codec_register(PyObject *self, PyObject *search_function)
...
@@ -57,10 +58,10 @@ PyObject *codec_register(PyObject *self, PyObject *search_function)
}
}
PyDoc_STRVAR
(
lookup__doc__
,
PyDoc_STRVAR
(
lookup__doc__
,
"lookup(encoding) ->
(encoder, decoder, stream_reader, stream_writer)
\n
\
"lookup(encoding) ->
CodecInfo
\n
\
\n
\
\n
\
Looks up a codec tuple in the Python codec registry and returns
\n
\
Looks up a codec tuple in the Python codec registry and returns
\n
\
a tuple of function
s
."
);
a tuple of function
(or a CodecInfo object)
."
);
static
static
PyObject
*
codec_lookup
(
PyObject
*
self
,
PyObject
*
args
)
PyObject
*
codec_lookup
(
PyObject
*
self
,
PyObject
*
args
)
...
...
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