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
809f90f3
Kaydet (Commit)
809f90f3
authored
Nis 15, 2014
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Reverted 16efa8d27e4c after discussion with Eric.
üst
1e53f8d9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
13 deletions
+0
-13
test_types.py
Lib/test/test_types.py
+0
-2
NEWS
Misc/NEWS
+0
-4
formatter_unicode.c
Python/formatter_unicode.c
+0
-7
No files found.
Lib/test/test_types.py
Dosyayı görüntüle @
809f90f3
...
@@ -343,8 +343,6 @@ class TypesTests(unittest.TestCase):
...
@@ -343,8 +343,6 @@ class TypesTests(unittest.TestCase):
self
.
assertRaises
(
ValueError
,
3
.
__format__
,
",n"
)
self
.
assertRaises
(
ValueError
,
3
.
__format__
,
",n"
)
# can't have ',' with 'c'
# can't have ',' with 'c'
self
.
assertRaises
(
ValueError
,
3
.
__format__
,
",c"
)
self
.
assertRaises
(
ValueError
,
3
.
__format__
,
",c"
)
# can't have '#' with 'c'
self
.
assertRaises
(
ValueError
,
3
.
__format__
,
"#c"
)
# ensure that only int and float type specifiers work
# ensure that only int and float type specifiers work
for
format_spec
in
([
chr
(
x
)
for
x
in
range
(
ord
(
'a'
),
ord
(
'z'
)
+
1
)]
+
for
format_spec
in
([
chr
(
x
)
for
x
in
range
(
ord
(
'a'
),
ord
(
'z'
)
+
1
)]
+
...
...
Misc/NEWS
Dosyayı görüntüle @
809f90f3
...
@@ -34,10 +34,6 @@ Core and Builtins
...
@@ -34,10 +34,6 @@ Core and Builtins
replacement fields. It now matches the behavior of str.format() in
replacement fields. It now matches the behavior of str.format() in
this regard. Patches by Phil Elson and Ramchandra Apte.
this regard. Patches by Phil Elson and Ramchandra Apte.
- Issue #8931: Make alternate formatting ('
#
') for type '
c
' raise an
exception. It had no effect, now trying to specify it is an error.
Patch by Torsten Landschoff.
Library
Library
-------
-------
...
...
Python/formatter_unicode.c
Dosyayı görüntüle @
809f90f3
...
@@ -846,13 +846,6 @@ format_long_internal(PyObject *value, const InternalFormatSpec *format,
...
@@ -846,13 +846,6 @@ format_long_internal(PyObject *value, const InternalFormatSpec *format,
" format specifier 'c'"
);
" format specifier 'c'"
);
goto
done
;
goto
done
;
}
}
/* error to request alternate format */
if
(
format
->
alternate
)
{
PyErr_SetString
(
PyExc_ValueError
,
"Alternate form (#) not allowed with integer"
" format specifier 'c'"
);
goto
done
;
}
/* taken from unicodeobject.c formatchar() */
/* taken from unicodeobject.c formatchar() */
/* Integer input truncated to a character */
/* Integer input truncated to a character */
...
...
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