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
0d26798b
Kaydet (Commit)
0d26798b
authored
Ara 23, 2010
tarafından
Alexander Belopolsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #10587: Document the meaning of str methods.
üst
86f65d5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
9 deletions
+23
-9
stdtypes.rst
Doc/library/stdtypes.rst
+23
-9
No files found.
Doc/library/stdtypes.rst
Dosyayı görüntüle @
0d26798b
...
@@ -1078,20 +1078,26 @@ functions based on regular expressions.
...
@@ -1078,20 +1078,26 @@ functions based on regular expressions.
.. method:: str.isalnum()
.. method:: str.isalnum()
Return true if all characters in the string are alphanumeric and there is at
Return true if all characters in the string are alphanumeric and there is at
least one character, false otherwise.
least one character, false otherwise. A character ``c`` is alphanumeric if one
of the following returns ``True``: ``c.isalpha()``, ``c.isdecimal()``,
``c.isdigit()``, or ``c.isnumeric()``.
.. method:: str.isalpha()
.. method:: str.isalpha()
Return true if all characters in the string are alphabetic and there is at least
Return true if all characters in the string are alphabetic and there is at least
one character, false otherwise.
one character, false otherwise. Alphabetic characters are those characters defined
in the Unicode character database as "Letter", i.e., those with general category
property being one of "Lm", "Lt", "Lu", "Ll", or "Lo". Note that this is different
from the "Alphabetic" property defined in the Unicode Standard.
.. method:: str.isdecimal()
.. method:: str.isdecimal()
Return true if all characters in the string are decimal
Return true if all characters in the string are decimal
characters and there is at least one character, false
characters and there is at least one character, false
otherwise. Decimal characters include digit characters, and all characters
otherwise. Decimal characters are those from general category "Nd". This category
includes digit characters, and all characters
that that can be used to form decimal-radix numbers, e.g. U+0660,
that that can be used to form decimal-radix numbers, e.g. U+0660,
ARABIC-INDIC DIGIT ZERO.
ARABIC-INDIC DIGIT ZERO.
...
@@ -1099,7 +1105,9 @@ functions based on regular expressions.
...
@@ -1099,7 +1105,9 @@ functions based on regular expressions.
.. method:: str.isdigit()
.. method:: str.isdigit()
Return true if all characters in the string are digits and there is at least one
Return true if all characters in the string are digits and there is at least one
character, false otherwise.
character, false otherwise. Digits include decimal characters and digits that need
special handling, such as the compatibility superscript digits. Formally, a digit
is a character that has the property value Numeric_Type=Digit or Numeric_Type=Decimal.
.. method:: str.isidentifier()
.. method:: str.isidentifier()
...
@@ -1111,7 +1119,9 @@ functions based on regular expressions.
...
@@ -1111,7 +1119,9 @@ functions based on regular expressions.
.. method:: str.islower()
.. method:: str.islower()
Return true if all cased characters in the string are lowercase and there is at
Return true if all cased characters in the string are lowercase and there is at
least one cased character, false otherwise.
least one cased character, false otherwise. Cased characters are those with
general category property being one of "Lu", "Ll", or "Lt" and lowercase characters
are those with general category property "Ll".
.. method:: str.isnumeric()
.. method:: str.isnumeric()
...
@@ -1120,7 +1130,8 @@ functions based on regular expressions.
...
@@ -1120,7 +1130,8 @@ functions based on regular expressions.
characters, and there is at least one character, false
characters, and there is at least one character, false
otherwise. Numeric characters include digit characters, and all characters
otherwise. Numeric characters include digit characters, and all characters
that have the Unicode numeric value property, e.g. U+2155,
that have the Unicode numeric value property, e.g. U+2155,
VULGAR FRACTION ONE FIFTH.
VULGAR FRACTION ONE FIFTH. Formally, numeric characters are those with the property
value Numeric_Type=Digit, Numeric_Type=Decimal or Numeric_Type=Numeric.
.. method:: str.isprintable()
.. method:: str.isprintable()
...
@@ -1137,8 +1148,9 @@ functions based on regular expressions.
...
@@ -1137,8 +1148,9 @@ functions based on regular expressions.
.. method:: str.isspace()
.. method:: str.isspace()
Return true if there are only whitespace characters in the string and there is
Return true if there are only whitespace characters in the string and there is
at least one character, false otherwise.
at least one character, false otherwise. Whitespace characters are those
characters defined in the Unicode character database as "Other" or "Separator"
and those with bidirectional property being one of "WS", "B", or "S".
.. method:: str.istitle()
.. method:: str.istitle()
...
@@ -1150,7 +1162,9 @@ functions based on regular expressions.
...
@@ -1150,7 +1162,9 @@ functions based on regular expressions.
.. method:: str.isupper()
.. method:: str.isupper()
Return true if all cased characters in the string are uppercase and there is at
Return true if all cased characters in the string are uppercase and there is at
least one cased character, false otherwise.
least one cased character, false otherwise. Cased characters are those with
general category property being one of "Lu", "Ll", or "Lt" and uppercase characters
are those with general category property "Lu".
.. method:: str.join(iterable)
.. method:: str.join(iterable)
...
...
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