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
a9b9c9fa
Kaydet (Commit)
a9b9c9fa
authored
Nis 23, 2003
tarafından
Alex Martelli
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
some more error-message enhancements
üst
a256f7d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
bltinmodule.c
Python/bltinmodule.c
+10
-10
No files found.
Python/bltinmodule.c
Dosyayı görüntüle @
a9b9c9fa
...
...
@@ -85,7 +85,7 @@ builtin_apply(PyObject *self, PyObject *args)
if
(
!
PyTuple_Check
(
alist
))
{
if
(
!
PySequence_Check
(
alist
))
{
PyErr_Format
(
PyExc_TypeError
,
"apply() arg 2 expect sequence, found %s"
,
"apply() arg 2 expect
ed
sequence, found %s"
,
alist
->
ob_type
->
tp_name
);
return
NULL
;
}
...
...
@@ -368,7 +368,7 @@ builtin_compile(PyObject *self, PyObject *args)
return
NULL
;
if
((
size_t
)
length
!=
strlen
(
str
))
{
PyErr_SetString
(
PyExc_TypeError
,
"expected string without null bytes"
);
"
compile()
expected string without null bytes"
);
return
NULL
;
}
...
...
@@ -644,7 +644,7 @@ builtin_getattr(PyObject *self, PyObject *args)
if
(
!
PyString_Check
(
name
))
{
PyErr_SetString
(
PyExc_TypeError
,
"attribute name must be string"
);
"
getattr():
attribute name must be string"
);
return
NULL
;
}
result
=
PyObject_GetAttr
(
v
,
name
);
...
...
@@ -700,7 +700,7 @@ builtin_hasattr(PyObject *self, PyObject *args)
if
(
!
PyString_Check
(
name
))
{
PyErr_SetString
(
PyExc_TypeError
,
"attribute name must be string"
);
"
hasattr():
attribute name must be string"
);
return
NULL
;
}
v
=
PyObject_GetAttr
(
v
,
name
);
...
...
@@ -1556,11 +1556,11 @@ builtin_raw_input(PyObject *self, PyObject *args)
return
NULL
;
if
(
fin
==
NULL
)
{
PyErr_SetString
(
PyExc_RuntimeError
,
"lost sys.stdin"
);
PyErr_SetString
(
PyExc_RuntimeError
,
"
[raw_]input:
lost sys.stdin"
);
return
NULL
;
}
if
(
fout
==
NULL
)
{
PyErr_SetString
(
PyExc_RuntimeError
,
"lost sys.stdout"
);
PyErr_SetString
(
PyExc_RuntimeError
,
"
[raw_]input:
lost sys.stdout"
);
return
NULL
;
}
if
(
PyFile_SoftSpace
(
fout
,
0
))
{
...
...
@@ -1601,7 +1601,7 @@ builtin_raw_input(PyObject *self, PyObject *args)
size_t
len
=
strlen
(
s
);
if
(
len
>
INT_MAX
)
{
PyErr_SetString
(
PyExc_OverflowError
,
"input too long"
);
"
[raw_]input:
input too long"
);
result
=
NULL
;
}
else
{
...
...
@@ -1776,7 +1776,7 @@ builtin_vars(PyObject *self, PyObject *args)
if
(
d
==
NULL
)
{
if
(
!
PyErr_Occurred
())
PyErr_SetString
(
PyExc_SystemError
,
"no locals!?"
);
"
vars():
no locals!?"
);
}
else
Py_INCREF
(
d
);
...
...
@@ -1823,7 +1823,7 @@ builtin_sum(PyObject *self, PyObject *args)
/* reject string values for 'start' parameter */
if
(
PyObject_TypeCheck
(
result
,
&
PyBaseString_Type
))
{
PyErr_SetString
(
PyExc_TypeError
,
"can't sum strings [use ''.join(seq) instead]"
);
"
sum()
can't sum strings [use ''.join(seq) instead]"
);
Py_DECREF
(
iter
);
return
NULL
;
}
...
...
@@ -2177,7 +2177,7 @@ filtertuple(PyObject *func, PyObject *tuple)
tuple
->
ob_type
->
tp_as_sequence
->
sq_item
)
{
item
=
tuple
->
ob_type
->
tp_as_sequence
->
sq_item
(
tuple
,
i
);
}
else
{
PyErr_SetString
(
PyExc_TypeError
,
"
unsubscriptable object
"
);
PyErr_SetString
(
PyExc_TypeError
,
"
filter(): unsubscriptable tuple
"
);
goto
Fail_1
;
}
if
(
func
==
Py_None
)
{
...
...
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