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
78e057a3
Kaydet (Commit)
78e057a3
authored
Haz 29, 2002
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clarify the version information for the unicode() built-in.
Closes SF bug #575272.
üst
19698174
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
libfuncs.tex
Doc/lib/libfuncs.tex
+9
-6
No files found.
Doc/lib/libfuncs.tex
Dosyayı görüntüle @
78e057a3
...
...
@@ -873,13 +873,16 @@ def my_import(name):
behaviour of
\code
{
str()
}
except that it returns Unicode strings
instead of 8-bit strings. More precisely, if
\var
{
object
}
is an
Unicode string or subclass it will return a Unicode string without
any additional decoding applied. For objects which provide a
\code
{__
unicode
__}
method, it will call this method without
arguments to create a Unicode string. For all other objects, the
8-bit string version or representation is requested and then
converted to a Unicode string using the codec for the default
encoding in
\code
{
'strict'
}
mode.
any additional decoding applied.
For objects which provide a
\method
{__
unicode
__
()
}
method, it will
call this method without arguments to create a Unicode string. For
all other objects, the 8-bit string version or representation is
requested and then converted to a Unicode string using the codec for
the default encoding in
\code
{
'strict'
}
mode.
\versionadded
{
2.0
}
\versionchanged
[Support for \method{__unicode__()} added]
{
2.2
}
\end{funcdesc}
\begin{funcdesc}
{
vars
}{
\optional
{
object
}}
...
...
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