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
262e1241
Kaydet (Commit)
262e1241
authored
Şub 07, 1995
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
print class name for exceptions that are classes
üst
9e89f0a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
pythonrun.c
Python/pythonrun.c
+14
-2
No files found.
Python/pythonrun.c
Dosyayı görüntüle @
262e1241
...
@@ -62,6 +62,8 @@ static object *run_err_node PROTO((node *n, char *filename,
...
@@ -62,6 +62,8 @@ static object *run_err_node PROTO((node *n, char *filename,
object
*
globals
,
object
*
locals
));
object
*
globals
,
object
*
locals
));
static
object
*
run_node
PROTO
((
node
*
n
,
char
*
filename
,
static
object
*
run_node
PROTO
((
node
*
n
,
char
*
filename
,
object
*
globals
,
object
*
locals
));
object
*
globals
,
object
*
locals
));
static
object
*
run_pyc_file
PROTO
((
FILE
*
fp
,
char
*
filename
,
object
*
globals
,
object
*
locals
));
static
void
err_input
PROTO
((
perrdetail
*
));
static
void
err_input
PROTO
((
perrdetail
*
));
static
void
initsigs
PROTO
((
void
));
static
void
initsigs
PROTO
((
void
));
...
@@ -348,8 +350,18 @@ print_error()
...
@@ -348,8 +350,18 @@ print_error()
v
=
message
;
v
=
message
;
}
}
}
}
if
(
writeobject
(
exception
,
f
,
PRINT_RAW
)
!=
0
)
if
(
is_classobject
(
exception
))
{
err_clear
();
object
*
className
=
((
classobject
*
)
exception
)
->
cl_name
;
if
(
className
==
NULL
)
writestring
(
"<unknown>"
,
f
);
else
{
if
(
writeobject
(
className
,
f
,
PRINT_RAW
)
!=
0
)
err_clear
();
}
}
else
{
if
(
writeobject
(
exception
,
f
,
PRINT_RAW
)
!=
0
)
err_clear
();
}
if
(
v
!=
NULL
&&
v
!=
None
)
{
if
(
v
!=
NULL
&&
v
!=
None
)
{
writestring
(
": "
,
f
);
writestring
(
": "
,
f
);
if
(
writeobject
(
v
,
f
,
PRINT_RAW
)
!=
0
)
if
(
writeobject
(
v
,
f
,
PRINT_RAW
)
!=
0
)
...
...
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