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
88c38b32
Kaydet (Commit)
88c38b32
authored
Nis 27, 2017
tarafından
Louie Lu
Kaydeden (comit)
Xiang Zhang
Nis 27, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-28415: Note 0 conversion different between Python and C (#885)
üst
a90b9904
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
42 deletions
+48
-42
bytes.rst
Doc/c-api/bytes.rst
+19
-16
unicode.rst
Doc/c-api/unicode.rst
+29
-26
No files found.
Doc/c-api/bytes.rst
Dosyayı görüntüle @
88c38b32
...
@@ -72,29 +72,29 @@ called with a non-bytes parameter.
...
@@ -72,29 +72,29 @@ called with a non-bytes parameter.
| :attr:`%c` | int | A single byte, |
| :attr:`%c` | int | A single byte, |
| | | represented as a C int. |
| | | represented as a C int. |
+-------------------+---------------+--------------------------------+
+-------------------+---------------+--------------------------------+
| :attr:`%d` | int | E
xactly equivalent to
|
| :attr:`%d` | int | E
quivalent to
|
| | | ``printf("%d")``.
|
| | | ``printf("%d")``.
[1]_
|
+-------------------+---------------+--------------------------------+
+-------------------+---------------+--------------------------------+
| :attr:`%u` | unsigned int | E
xactly equivalent to
|
| :attr:`%u` | unsigned int | E
quivalent to
|
| | | ``printf("%u")``.
|
| | | ``printf("%u")``.
[1]_
|
+-------------------+---------------+--------------------------------+
+-------------------+---------------+--------------------------------+
| :attr:`%ld` | long | E
xactly equivalent to
|
| :attr:`%ld` | long | E
quivalent to
|
| | | ``printf("%ld")``.
|
| | | ``printf("%ld")``.
[1]_
|
+-------------------+---------------+--------------------------------+
+-------------------+---------------+--------------------------------+
| :attr:`%lu` | unsigned long | E
xactly equivalent to
|
| :attr:`%lu` | unsigned long | E
quivalent to
|
| | | ``printf("%lu")``.
|
| | | ``printf("%lu")``.
[1]_
|
+-------------------+---------------+--------------------------------+
+-------------------+---------------+--------------------------------+
| :attr:`%zd` | Py_ssize_t | E
xactly equivalent to
|
| :attr:`%zd` | Py_ssize_t | E
quivalent to
|
| | | ``printf("%zd")``.
|
| | | ``printf("%zd")``.
[1]_
|
+-------------------+---------------+--------------------------------+
+-------------------+---------------+--------------------------------+
| :attr:`%zu` | size_t | E
xactly equivalent to
|
| :attr:`%zu` | size_t | E
quivalent to
|
| | | ``printf("%zu")``.
|
| | | ``printf("%zu")``.
[1]_
|
+-------------------+---------------+--------------------------------+
+-------------------+---------------+--------------------------------+
| :attr:`%i` | int | E
xactly equivalent to
|
| :attr:`%i` | int | E
quivalent to
|
| | | ``printf("%i")``.
|
| | | ``printf("%i")``.
[1]_
|
+-------------------+---------------+--------------------------------+
+-------------------+---------------+--------------------------------+
| :attr:`%x` | int | E
xactly equivalent to
|
| :attr:`%x` | int | E
quivalent to
|
| | | ``printf("%x")``.
|
| | | ``printf("%x")``.
[1]_
|
+-------------------+---------------+--------------------------------+
+-------------------+---------------+--------------------------------+
| :attr:`%s` | const char\* | A null-terminated C character |
| :attr:`%s` | const char\* | A null-terminated C character |
| | | array. |
| | | array. |
...
@@ -111,6 +111,9 @@ called with a non-bytes parameter.
...
@@ -111,6 +111,9 @@ called with a non-bytes parameter.
An unrecognized format character causes all the rest of the format string to be
An unrecognized format character causes all the rest of the format string to be
copied as-is to the result object, and any extra arguments discarded.
copied as-is to the result object, and any extra arguments discarded.
.. [1] For integer specifiers (d, u, ld, lu, zd, zu, i, x): the 0-conversion
flag has effect even when a precision is given.
.. c:function:: PyObject* PyBytes_FromFormatV(const char *format, va_list vargs)
.. c:function:: PyObject* PyBytes_FromFormatV(const char *format, va_list vargs)
...
...
Doc/c-api/unicode.rst
Dosyayı görüntüle @
88c38b32
...
@@ -451,44 +451,44 @@ APIs:
...
@@ -451,44 +451,44 @@ APIs:
| :attr:`%c` | int | A single character, |
| :attr:`%c` | int | A single character, |
| | | represented as a C int. |
| | | represented as a C int. |
+-------------------+---------------------+--------------------------------+
+-------------------+---------------------+--------------------------------+
| :attr:`%d` | int | E
xactly equivalent to
|
| :attr:`%d` | int | E
quivalent to
|
| | | ``printf("%d")``.
|
| | | ``printf("%d")``.
[1]_
|
+-------------------+---------------------+--------------------------------+
+-------------------+---------------------+--------------------------------+
| :attr:`%u` | unsigned int | E
xactly equivalent to
|
| :attr:`%u` | unsigned int | E
quivalent to
|
| | | ``printf("%u")``.
|
| | | ``printf("%u")``.
[1]_
|
+-------------------+---------------------+--------------------------------+
+-------------------+---------------------+--------------------------------+
| :attr:`%ld` | long | E
xactly equivalent to
|
| :attr:`%ld` | long | E
quivalent to
|
| | | ``printf("%ld")``.
|
| | | ``printf("%ld")``.
[1]_
|
+-------------------+---------------------+--------------------------------+
+-------------------+---------------------+--------------------------------+
| :attr:`%li` | long | E
xactly equivalent to
|
| :attr:`%li` | long | E
quivalent to
|
| | | ``printf("%li")``.
|
| | | ``printf("%li")``.
[1]_
|
+-------------------+---------------------+--------------------------------+
+-------------------+---------------------+--------------------------------+
| :attr:`%lu` | unsigned long | E
xactly equivalent to
|
| :attr:`%lu` | unsigned long | E
quivalent to
|
| | | ``printf("%lu")``.
|
| | | ``printf("%lu")``.
[1]_
|
+-------------------+---------------------+--------------------------------+
+-------------------+---------------------+--------------------------------+
| :attr:`%lld` | long long | E
xactly equivalent to
|
| :attr:`%lld` | long long | E
quivalent to
|
| | | ``printf("%lld")``.
|
| | | ``printf("%lld")``.
[1]_
|
+-------------------+---------------------+--------------------------------+
+-------------------+---------------------+--------------------------------+
| :attr:`%lli` | long long | E
xactly equivalent to
|
| :attr:`%lli` | long long | E
quivalent to
|
| | | ``printf("%lli")``.
|
| | | ``printf("%lli")``.
[1]_
|
+-------------------+---------------------+--------------------------------+
+-------------------+---------------------+--------------------------------+
| :attr:`%llu` | unsigned long long | E
xactly equivalent to
|
| :attr:`%llu` | unsigned long long | E
quivalent to
|
| | | ``printf("%llu")``.
|
| | | ``printf("%llu")``.
[1]_
|
+-------------------+---------------------+--------------------------------+
+-------------------+---------------------+--------------------------------+
| :attr:`%zd` | Py_ssize_t | E
xactly equivalent to
|
| :attr:`%zd` | Py_ssize_t | E
quivalent to
|
| | | ``printf("%zd")``.
|
| | | ``printf("%zd")``.
[1]_
|
+-------------------+---------------------+--------------------------------+
+-------------------+---------------------+--------------------------------+
| :attr:`%zi` | Py_ssize_t | E
xactly equivalent to
|
| :attr:`%zi` | Py_ssize_t | E
quivalent to
|
| | | ``printf("%zi")``.
|
| | | ``printf("%zi")``.
[1]_
|
+-------------------+---------------------+--------------------------------+
+-------------------+---------------------+--------------------------------+
| :attr:`%zu` | size_t | E
xactly equivalent to
|
| :attr:`%zu` | size_t | E
quivalent to
|
| | | ``printf("%zu")``.
|
| | | ``printf("%zu")``.
[1]_
|
+-------------------+---------------------+--------------------------------+
+-------------------+---------------------+--------------------------------+
| :attr:`%i` | int | E
xactly equivalent to
|
| :attr:`%i` | int | E
quivalent to
|
| | | ``printf("%i")``.
|
| | | ``printf("%i")``.
[1]_
|
+-------------------+---------------------+--------------------------------+
+-------------------+---------------------+--------------------------------+
| :attr:`%x` | int | E
xactly equivalent to
|
| :attr:`%x` | int | E
quivalent to
|
| | | ``printf("%x")``.
|
| | | ``printf("%x")``.
[1]_
|
+-------------------+---------------------+--------------------------------+
+-------------------+---------------------+--------------------------------+
| :attr:`%s` | const char\* | A null-terminated C character |
| :attr:`%s` | const char\* | A null-terminated C character |
| | | array. |
| | | array. |
...
@@ -530,6 +530,9 @@ APIs:
...
@@ -530,6 +530,9 @@ APIs:
characters for ``"%A"``, ``"%U"``, ``"%S"``, ``"%R"`` and ``"%V"``
characters for ``"%A"``, ``"%U"``, ``"%S"``, ``"%R"`` and ``"%V"``
(if the ``PyObject*`` argument is not NULL).
(if the ``PyObject*`` argument is not NULL).
.. [1] For integer specifiers (d, u, ld, li, lu, lld, lli, llu, zd, zi,
zu, i, x): the 0-conversion flag has effect even when a precision is given.
.. versionchanged:: 3.2
.. versionchanged:: 3.2
Support for ``"%lld"`` and ``"%llu"`` added.
Support for ``"%lld"`` and ``"%llu"`` added.
...
...
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