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
998b8063
Unverified
Kaydet (Commit)
998b8063
authored
Eyl 11, 2018
tarafından
Victor Stinner
Kaydeden (comit)
GitHub
Eyl 11, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Revert "bpo-34595: Add %T format to PyUnicode_FromFormatV() (GH-9080)" (GH-9187)
This reverts commit
886483e2
.
üst
acd282fd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
14 deletions
+0
-14
unicode.rst
Doc/c-api/unicode.rst
+0
-6
test_unicode.py
Lib/test/test_unicode.py
+0
-4
2018-09-06-11-17-49.bpo-34595.Hkz62y.rst
...EWS.d/next/C API/2018-09-06-11-17-49.bpo-34595.Hkz62y.rst
+0
-4
unicodeobject.c
Objects/unicodeobject.c
+0
-0
No files found.
Doc/c-api/unicode.rst
Dosyayı görüntüle @
998b8063
...
@@ -519,9 +519,6 @@ APIs:
...
@@ -519,9 +519,6 @@ APIs:
| :attr:`%R` | PyObject\* | The result of calling |
| :attr:`%R` | PyObject\* | The result of calling |
| | | :c:func:`PyObject_Repr`. |
| | | :c:func:`PyObject_Repr`. |
+-------------------+---------------------+--------------------------------+
+-------------------+---------------------+--------------------------------+
| :attr:`%T` | PyObject\* | Object type name, equivalent |
| | | to ``Py_TYPE(op)->tp_name``. |
+-------------------+---------------------+--------------------------------+
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 string, and any extra arguments discarded.
copied as-is to the result string, and any extra arguments discarded.
...
@@ -546,9 +543,6 @@ APIs:
...
@@ -546,9 +543,6 @@ APIs:
Support width and precision formatter for ``"%s"``, ``"%A"``, ``"%U"``,
Support width and precision formatter for ``"%s"``, ``"%A"``, ``"%U"``,
``"%V"``, ``"%S"``, ``"%R"`` added.
``"%V"``, ``"%S"``, ``"%R"`` added.
.. versionchanged:: 3.7
Support for ``"%T"`` (object type name) added.
.. c:function:: PyObject* PyUnicode_FromFormatV(const char *format, va_list vargs)
.. c:function:: PyObject* PyUnicode_FromFormatV(const char *format, va_list vargs)
...
...
Lib/test/test_unicode.py
Dosyayı görüntüle @
998b8063
...
@@ -2655,10 +2655,6 @@ class CAPITest(unittest.TestCase):
...
@@ -2655,10 +2655,6 @@ class CAPITest(unittest.TestCase):
check_format
(
r"
%
A:'abc\xe9\uabcd\U0010ffff'"
,
check_format
(
r"
%
A:'abc\xe9\uabcd\U0010ffff'"
,
b
'
%%
A:
%
A'
,
'abc
\xe9\uabcd\U0010ffff
'
)
b
'
%%
A:
%
A'
,
'abc
\xe9\uabcd\U0010ffff
'
)
# test %T (object type name)
check_format
(
r"type name: str"
,
b
'type name:
%
T'
,
'text'
)
# test %V
# test %V
check_format
(
'repr=abc'
,
check_format
(
'repr=abc'
,
b
'repr=
%
V'
,
'abc'
,
b
'xyz'
)
b
'repr=
%
V'
,
'abc'
,
b
'xyz'
)
...
...
Misc/NEWS.d/next/C API/2018-09-06-11-17-49.bpo-34595.Hkz62y.rst
deleted
100644 → 0
Dosyayı görüntüle @
acd282fd
:c:func:`PyUnicode_FromFormatV`: add ``%T`` format to
:c:func:`PyUnicode_FromFormatV`, and so to :c:func:`PyUnicode_FromFormat`
and :c:func:`PyErr_Format`, to format an object type name: equivalent to
"%s" with ``Py_TYPE(obj)->tp_name``.
Objects/unicodeobject.c
Dosyayı görüntüle @
998b8063
This diff is collapsed.
Click to expand it.
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