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
8bcf2629
Unverified
Kaydet (Commit)
8bcf2629
authored
Haz 04, 2019
tarafından
Ivan Levkivskyi
Kaydeden (comit)
GitHub
Haz 04, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
More updates to the annotated assignments docs (GH-13794)
üst
4cdbc452
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
simple_stmts.rst
Doc/reference/simple_stmts.rst
+3
-4
No files found.
Doc/reference/simple_stmts.rst
Dosyayı görüntüle @
8bcf2629
...
@@ -330,10 +330,9 @@ statement, of a variable or attribute annotation and an optional assignment stat
...
@@ -330,10 +330,9 @@ statement, of a variable or attribute annotation and an optional assignment stat
..
productionlist
::
..
productionlist
::
annotated_assignment_stmt
:
`
augtarget
`
":"
`
expression
`
annotated_assignment_stmt
:
`
augtarget
`
":"
`
expression
`
:
[
"="
(`
expression_list
`
|
`
yield_expression
`)]
:
[
"="
(`
starred_expression
`
|
`
yield_expression
`)]
The
difference
from
normal
:
ref
:`
assignment
`
is
that
only
single
target
and
The
difference
from
normal
:
ref
:`
assignment
`
is
that
only
single
target
is
allowed
.
only
single
right
hand
side
value
is
allowed
.
For
simple
names
as
assignment
targets
,
if
in
class
or
module
scope
,
For
simple
names
as
assignment
targets
,
if
in
class
or
module
scope
,
the
annotations
are
evaluated
and
stored
in
a
special
class
or
module
the
annotations
are
evaluated
and
stored
in
a
special
class
or
module
...
@@ -369,7 +368,7 @@ target, then the interpreter evaluates the target except for the last
...
@@ -369,7 +368,7 @@ target, then the interpreter evaluates the target except for the last
..
versionchanged
::
3.8
..
versionchanged
::
3.8
Now
annotated
assignments
allow
same
expressions
in
the
right
hand
side
as
Now
annotated
assignments
allow
same
expressions
in
the
right
hand
side
as
the
augmented
assignments
.
Previously
,
some
expressions
(
like
un
-
parenthesized
the
regular
assignments
.
Previously
,
some
expressions
(
like
un
-
parenthesized
tuple
expressions
)
caused
a
syntax
error
.
tuple
expressions
)
caused
a
syntax
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