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
4bf108d7
Kaydet (Commit)
4bf108d7
authored
Mar 03, 2005
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #802188: better parser error message for non-EOL following line cont.
üst
a4dac409
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
1 deletion
+8
-1
errcode.h
Include/errcode.h
+1
-0
NEWS
Misc/NEWS
+3
-0
tokenizer.c
Parser/tokenizer.c
+1
-1
pythonrun.c
Python/pythonrun.c
+3
-0
No files found.
Include/errcode.h
Dosyayı görüntüle @
4bf108d7
...
@@ -28,6 +28,7 @@ extern "C" {
...
@@ -28,6 +28,7 @@ extern "C" {
#define E_DECODE 22
/* Error in decoding into Unicode */
#define E_DECODE 22
/* Error in decoding into Unicode */
#define E_EOFS 23
/* EOF in triple-quoted string */
#define E_EOFS 23
/* EOF in triple-quoted string */
#define E_EOLS 24
/* EOL in single-quoted string */
#define E_EOLS 24
/* EOL in single-quoted string */
#define E_LINECONT 25
/* Unexpected characters after a line continuation */
#ifdef __cplusplus
#ifdef __cplusplus
}
}
...
...
Misc/NEWS
Dosyayı görüntüle @
4bf108d7
...
@@ -10,6 +10,9 @@ What's New in Python 2.5 alpha 1?
...
@@ -10,6 +10,9 @@ What's New in Python 2.5 alpha 1?
Core and builtins
Core and builtins
-----------------
-----------------
- Patch #802188: Report characters after line continuation character
('
\
') with a specific error message.
- Bug #723201: Raise a TypeError for passing bad objects to '
L
' format.
- Bug #723201: Raise a TypeError for passing bad objects to '
L
' format.
- Bug #1124295: the __name__ attribute of file objects was
- Bug #1124295: the __name__ attribute of file objects was
...
...
Parser/tokenizer.c
Dosyayı görüntüle @
4bf108d7
...
@@ -1413,7 +1413,7 @@ tok_get(register struct tok_state *tok, char **p_start, char **p_end)
...
@@ -1413,7 +1413,7 @@ tok_get(register struct tok_state *tok, char **p_start, char **p_end)
if
(
c
==
'\\'
)
{
if
(
c
==
'\\'
)
{
c
=
tok_nextc
(
tok
);
c
=
tok_nextc
(
tok
);
if
(
c
!=
'\n'
)
{
if
(
c
!=
'\n'
)
{
tok
->
done
=
E_
TOKEN
;
tok
->
done
=
E_
LINECONT
;
tok
->
cur
=
tok
->
inp
;
tok
->
cur
=
tok
->
inp
;
return
ERRORTOKEN
;
return
ERRORTOKEN
;
}
}
...
...
Python/pythonrun.c
Dosyayı görüntüle @
4bf108d7
...
@@ -1484,6 +1484,9 @@ err_input(perrdetail *err)
...
@@ -1484,6 +1484,9 @@ err_input(perrdetail *err)
msg
=
"unknown decode error"
;
msg
=
"unknown decode error"
;
break
;
break
;
}
}
case
E_LINECONT
:
msg
=
"unexpected character after line continuation character"
;
break
;
default:
default:
fprintf
(
stderr
,
"error=%d
\n
"
,
err
->
error
);
fprintf
(
stderr
,
"error=%d
\n
"
,
err
->
error
);
msg
=
"unknown parsing error"
;
msg
=
"unknown parsing error"
;
...
...
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