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
d08972fd
Unverified
Kaydet (Commit)
d08972fd
authored
Nis 11, 2018
tarafından
Serhiy Storchaka
Kaydeden (comit)
GitHub
Nis 11, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-33260: Regenerate token.py after removing ASYNC and AWAIT. (GH-6447)
üst
c4b695f8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
9 deletions
+7
-9
expressions.rst
Doc/reference/expressions.rst
+1
-1
token.py
Lib/token.py
+5
-7
tokenize.py
Lib/tokenize.py
+1
-1
No files found.
Doc/reference/expressions.rst
Dosyayı görüntüle @
d08972fd
...
...
@@ -172,7 +172,7 @@ Common syntax elements for comprehensions are:
.. productionlist::
comprehension: `expression` `comp_for`
comp_for: [
ASYNC
] "for" `target_list` "in" `or_test` [`comp_iter`]
comp_for: [
"async"
] "for" `target_list` "in" `or_test` [`comp_iter`]
comp_iter: `comp_for` | `comp_if`
comp_if: "if" `expression_nocond` [`comp_iter`]
...
...
Lib/token.py
Dosyayı görüntüle @
d08972fd
...
...
@@ -65,14 +65,12 @@ RARROW = 51
ELLIPSIS
=
52
# Don't forget to update the table _PyParser_TokenNames in tokenizer.c!
OP
=
53
AWAIT
=
54
ASYNC
=
55
ERRORTOKEN
=
56
ERRORTOKEN
=
54
# These aren't used by the C tokenizer but are needed for tokenize.py
COMMENT
=
5
7
NL
=
5
8
ENCODING
=
5
9
N_TOKENS
=
60
COMMENT
=
5
5
NL
=
5
6
ENCODING
=
5
7
N_TOKENS
=
58
# Special definitions for cooperation with parser
NT_OFFSET
=
256
#--end constants--
...
...
Lib/tokenize.py
Dosyayı görüntüle @
d08972fd
...
...
@@ -284,7 +284,7 @@ class Untokenizer:
self
.
encoding
=
tokval
continue
if
toknum
in
(
NAME
,
NUMBER
,
ASYNC
,
AWAIT
):
if
toknum
in
(
NAME
,
NUMBER
):
tokval
+=
' '
# Insert a space between two consecutive strings
...
...
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