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
8b10f13a
Kaydet (Commit)
8b10f13a
authored
Ara 19, 2009
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#7527: use standard versionadded tags.
üst
5ff37ae1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
string.rst
Doc/library/string.rst
+5
-3
No files found.
Doc/library/string.rst
Dosyayı görüntüle @
8b10f13a
...
@@ -105,7 +105,9 @@ The constants defined in this module are:
...
@@ -105,7 +105,9 @@ The constants defined in this module are:
String Formatting
String Formatting
-----------------
-----------------
Starting in Python 2.6, the built-in str and unicode classes provide the ability
.. versionadded:: 2.6
The built-in str and unicode classes provide the ability
to do complex variable substitutions and value formatting via the
to do complex variable substitutions and value formatting via the
:meth:`str.format` method described in :pep:`3101`. The :class:`Formatter`
:meth:`str.format` method described in :pep:`3101`. The :class:`Formatter`
class in the :mod:`string` module allows you to create and customize your own
class in the :mod:`string` module allows you to create and customize your own
...
@@ -488,6 +490,8 @@ The available presentation types for floating point and decimal values are:
...
@@ -488,6 +490,8 @@ The available presentation types for floating point and decimal values are:
Template strings
Template strings
----------------
----------------
.. versionadded:: 2.4
Templates provide simpler string substitutions as described in :pep:`292`.
Templates provide simpler string substitutions as described in :pep:`292`.
Instead of the normal ``%``\ -based substitutions, Templates support ``$``\
Instead of the normal ``%``\ -based substitutions, Templates support ``$``\
-based substitutions, using the following rules:
-based substitutions, using the following rules:
...
@@ -506,8 +510,6 @@ Instead of the normal ``%``\ -based substitutions, Templates support ``$``\
...
@@ -506,8 +510,6 @@ Instead of the normal ``%``\ -based substitutions, Templates support ``$``\
Any other appearance of ``$`` in the string will result in a :exc:`ValueError`
Any other appearance of ``$`` in the string will result in a :exc:`ValueError`
being raised.
being raised.
.. versionadded:: 2.4
The :mod:`string` module provides a :class:`Template` class that implements
The :mod:`string` module provides a :class:`Template` class that implements
these rules. The methods of :class:`Template` are:
these rules. The methods of :class:`Template` are:
...
...
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