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
7d7a11b5
Kaydet (Commit)
7d7a11b5
authored
Haz 08, 2016
tarafından
Martin Panter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #23275: Backport target list assignment documentation fixes
üst
84f387d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
15 deletions
+14
-15
simple_stmts.rst
Doc/reference/simple_stmts.rst
+14
-15
No files found.
Doc/reference/simple_stmts.rst
Dosyayı görüntüle @
7d7a11b5
...
...
@@ -85,7 +85,7 @@ attributes or items of mutable objects:
target_list
:
`
target
`
(
","
`
target
`)*
[
","
]
target
:
`
identifier
`
:
|
"("
`
target_list
`
")"
:
|
"["
`
target_list
`
"]"
:
|
"["
[`
target_list
`]
"]"
:
|
`
attributeref
`
:
|
`
subscription
`
:
|
`
slicing
`
...
...
@@ -115,21 +115,25 @@ given with the definition of the object types (see section :ref:`types`).
Assignment
of
an
object
to
a
target
list
,
optionally
enclosed
in
parentheses
or
square
brackets
,
is
recursively
defined
as
follows
.
*
If
the
target
list
is
a
single
target
:
The
object
is
assigned
to
that
target
.
*
If
the
target
list
is
empty
:
The
object
must
also
be
an
empty
iterable
.
*
If
the
target
list
is
a
comma
-
separated
list
of
targets
:
The
object
must
be
an
iterable
with
the
same
number
of
items
as
there
are
targets
in
the
target
list
,
and
the
items
are
assigned
,
from
left
to
right
,
to
the
corresponding
targets
.
*
If
the
target
list
is
a
single
target
in
parentheses
:
The
object
is
assigned
to
that
target
.
*
If
the
target
list
is
a
comma
-
separated
list
of
targets
,
or
a
single
target
in
square
brackets
:
The
object
must
be
an
iterable
with
the
same
number
of
items
as
there
are
targets
in
the
target
list
,
and
the
items
are
assigned
,
from
left
to
right
,
to
the
corresponding
targets
.
*
If
the
target
list
contains
one
target
prefixed
with
an
asterisk
,
called
a
"starred"
target
:
The
object
must
be
a
sequenc
e
with
at
least
as
many
items
"starred"
target
:
The
object
must
be
a
n
iterabl
e
with
at
least
as
many
items
as
there
are
targets
in
the
target
list
,
minus
one
.
The
first
items
of
the
sequenc
e
are
assigned
,
from
left
to
right
,
to
the
targets
before
the
starred
target
.
The
final
items
of
the
sequenc
e
are
assigned
to
the
targets
after
the
starred
target
.
A
list
of
the
remaining
items
in
the
sequenc
e
is
then
iterabl
e
are
assigned
,
from
left
to
right
,
to
the
targets
before
the
starred
target
.
The
final
items
of
the
iterabl
e
are
assigned
to
the
targets
after
the
starred
target
.
A
list
of
the
remaining
items
in
the
iterabl
e
is
then
assigned
to
the
starred
target
(
the
list
can
be
empty
).
*
Else
:
The
object
must
be
a
sequenc
e
with
the
same
number
of
items
as
there
*
Else
:
The
object
must
be
a
n
iterabl
e
with
the
same
number
of
items
as
there
are
targets
in
the
target
list
,
and
the
items
are
assigned
,
from
left
to
right
,
to
the
corresponding
targets
.
...
...
@@ -150,11 +154,6 @@ Assignment of an object to a single target is recursively defined as follows.
count
for
the
object
previously
bound
to
the
name
to
reach
zero
,
causing
the
object
to
be
deallocated
and
its
destructor
(
if
it
has
one
)
to
be
called
.
*
If
the
target
is
a
target
list
enclosed
in
parentheses
or
in
square
brackets
:
The
object
must
be
an
iterable
with
the
same
number
of
items
as
there
are
targets
in
the
target
list
,
and
its
items
are
assigned
,
from
left
to
right
,
to
the
corresponding
targets
.
..
index
::
pair
:
attribute
;
assignment
*
If
the
target
is
an
attribute
reference
:
The
primary
expression
in
the
...
...
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