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
df4f6e9f
Kaydet (Commit)
df4f6e9f
authored
Eki 10, 2005
tarafından
Marc-André Lemburg
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clarify the docs for Py_UNICODE.
üst
007f8dfd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
concrete.tex
Doc/api/concrete.tex
+16
-6
No files found.
Doc/api/concrete.tex
Dosyayı görüntüle @
df4f6e9f
...
...
@@ -787,14 +787,24 @@ These are the basic Unicode object types used for the Unicode
implementation in Python:
\begin{ctypedesc}
{
Py
_
UNICODE
}
This type represents a 16-bit unsigned storage type which is used by
Python internally as basis for holding Unicode ordinals. On
platforms where
\ctype
{
wchar
_
t
}
is available and also has 16-bits,
\ctype
{
Py
_
UNICODE
}
is a typedef alias for
\ctype
{
wchar
_
t
}
to enhance
native platform compatibility. On all other platforms,
\ctype
{
Py
_
UNICODE
}
is a typedef alias for
\ctype
{
unsigned short
}
.
This type represents the storage type which is used by Python
internally as basis for holding Unicode ordinals. Python's default
builds use a 16-bit type for
\ctype
{
Py
_
UNICODE
}
and store Unicode
values internally as UCS2. It is also possible to build a UCS4
version of Python (most recent Linux distributions come with UCS4
builds of Python). These builds then use a 32-bit type for
\ctype
{
Py
_
UNICODE
}
and store Unicode data internally as UCS4. On
platforms where
\ctype
{
wchar
_
t
}
is available and compatible with the
chosen Python Unicode build variant,
\ctype
{
Py
_
UNICODE
}
is a typedef
alias for
\ctype
{
wchar
_
t
}
to enhance native platform compatibility.
On all other platforms,
\ctype
{
Py
_
UNICODE
}
is a typedef alias for
either
\ctype
{
unsigned short
}
(UCS2) or
\ctype
{
unsigned long
}
(UCS4).
\end{ctypedesc}
Note that UCS2 and UCS4 Python builds are not binary compatible.
Please keep this in mind when writing extensions or interfaces.
\begin{ctypedesc}
{
PyUnicodeObject
}
This subtype of
\ctype
{
PyObject
}
represents a Python Unicode object.
\end{ctypedesc}
...
...
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