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
00109c9b
Kaydet (Commit)
00109c9b
authored
Nis 10, 2014
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
teach 2to3 about 'yield from'
üst
da952f3f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
Grammar.txt
Lib/lib2to3/Grammar.txt
+2
-1
test_parser.py
Lib/lib2to3/tests/test_parser.py
+7
-0
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/lib2to3/Grammar.txt
Dosyayı görüntüle @
00109c9b
...
@@ -155,4 +155,5 @@ testlist1: test (',' test)*
...
@@ -155,4 +155,5 @@ testlist1: test (',' test)*
# not used in grammar, but may appear in "node" passed from Parser to Compiler
# not used in grammar, but may appear in "node" passed from Parser to Compiler
encoding_decl: NAME
encoding_decl: NAME
yield_expr: 'yield' [testlist]
yield_expr: 'yield' [yield_arg]
yield_arg: 'from' test | testlist
Lib/lib2to3/tests/test_parser.py
Dosyayı görüntüle @
00109c9b
...
@@ -50,6 +50,13 @@ class TestMatrixMultiplication(GrammarTest):
...
@@ -50,6 +50,13 @@ class TestMatrixMultiplication(GrammarTest):
self
.
validate
(
"a @= b"
)
self
.
validate
(
"a @= b"
)
class
TestYieldFrom
(
GrammarTest
):
def
test_matrix_multiplication_operator
(
self
):
self
.
validate
(
"yield from x"
)
self
.
validate
(
"(yield from x) + y"
)
self
.
invalid_syntax
(
"yield from"
)
class
TestRaiseChanges
(
GrammarTest
):
class
TestRaiseChanges
(
GrammarTest
):
def
test_2x_style_1
(
self
):
def
test_2x_style_1
(
self
):
self
.
validate
(
"raise"
)
self
.
validate
(
"raise"
)
...
...
Misc/NEWS
Dosyayı görüntüle @
00109c9b
...
@@ -266,6 +266,8 @@ Library
...
@@ -266,6 +266,8 @@ Library
Tools
/
Demos
Tools
/
Demos
-----------
-----------
-
Add
support
for
``
yield
from
``
to
2
to3
.
-
Add
support
for
the
PEP
465
matrix
multiplication
operator
to
2
to3
.
-
Add
support
for
the
PEP
465
matrix
multiplication
operator
to
2
to3
.
-
Issue
#
19936
:
Added
executable
bits
or
shebang
lines
to
Python
scripts
which
-
Issue
#
19936
:
Added
executable
bits
or
shebang
lines
to
Python
scripts
which
...
...
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