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
1462786f
Kaydet (Commit)
1462786f
authored
Haz 07, 2014
tarafından
Nick Coghlan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #21667: Clarify string data model description
üst
4a3f135c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
datamodel.rst
Doc/reference/datamodel.rst
+10
-9
No files found.
Doc/reference/datamodel.rst
Dosyayı görüntüle @
1462786f
...
@@ -285,16 +285,17 @@ Sequences
...
@@ -285,16 +285,17 @@ Sequences
single: integer
single: integer
single: Unicode
single: Unicode
A string is a sequence of values that represent Unicode codepoints.
A string is a sequence of values that represent Unicode code points.
All the codepoints in range ``U+0000 - U+10FFFF`` can be represented
All the code points in the range ``U+0000 - U+10FFFF`` can be
in a string. Python doesn't have a :c:type:`chr` type, and
represented in a string. Python doesn't have a :c:type:`char` type;
every character in the string is represented as a string object
instead, every code point in the string is represented as a string
with length ``1``. The built-in function :func:`ord` converts a
object with length ``1``. The built-in function :func:`ord`
character to its codepoint (as an integer); :func:`chr` converts
converts a code point from its string form to an integer in the
an integer in range ``0 - 10FFFF`` to the corresponding character.
range ``0 - 10FFFF``; :func:`chr` converts an integer in the range
``0 - 10FFFF`` to the corresponding length ``1`` string object.
:meth:`str.encode` can be used to convert a :class:`str` to
:meth:`str.encode` can be used to convert a :class:`str` to
:class:`bytes` using the given
encoding, and :meth:`bytes.decode` can
:class:`bytes` using the given
text encoding, and
be used to achieve the opposite.
:meth:`bytes.decode` can
be used to achieve the opposite.
Tuples
Tuples
.. index::
.. index::
...
...
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