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
e19e3f0b
Kaydet (Commit)
e19e3f0b
authored
Kas 22, 2013
tarafından
Zachary Ware
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #18326: merge with 3.3
üst
58ca93cb
e1391a0d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
glossary.rst
Doc/glossary.rst
+4
-2
stdtypes.rst
Doc/library/stdtypes.rst
+3
-0
NEWS
Misc/NEWS
+7
-0
No files found.
Doc/glossary.rst
Dosyayı görüntüle @
e19e3f0b
...
@@ -41,7 +41,7 @@ Glossary
...
@@ -41,7 +41,7 @@ Glossary
argument
argument
A value passed to a :term:`function` (or :term:`method`) when calling the
A value passed to a :term:`function` (or :term:`method`) when calling the
function. There are two
types of arguments
:
function. There are two
kinds of argument
:
* :dfn:`keyword argument`: an argument preceded by an identifier (e.g.
* :dfn:`keyword argument`: an argument preceded by an identifier (e.g.
``name=``) in a function call or passed as a value in a dictionary
``name=``) in a function call or passed as a value in a dictionary
...
@@ -601,7 +601,7 @@ Glossary
...
@@ -601,7 +601,7 @@ Glossary
parameter
parameter
A
named
entity
in
a
:
term
:`
function
`
(
or
method
)
definition
that
A
named
entity
in
a
:
term
:`
function
`
(
or
method
)
definition
that
specifies
an
:
term
:`
argument
`
(
or
in
some
cases
,
arguments
)
that
the
specifies
an
:
term
:`
argument
`
(
or
in
some
cases
,
arguments
)
that
the
function
can
accept
.
There
are
five
types
of
parameters
:
function
can
accept
.
There
are
five
kinds
of
parameter
:
*
:
dfn
:`
positional
-
or
-
keyword
`:
specifies
an
argument
that
can
be
passed
*
:
dfn
:`
positional
-
or
-
keyword
`:
specifies
an
argument
that
can
be
passed
either
:
term
:`
positionally
<
argument
>`
or
as
a
:
term
:`
keyword
argument
either
:
term
:`
positionally
<
argument
>`
or
as
a
:
term
:`
keyword
argument
...
@@ -615,6 +615,8 @@ Glossary
...
@@ -615,6 +615,8 @@ Glossary
parameters
.
However
,
some
built
-
in
functions
have
positional
-
only
parameters
.
However
,
some
built
-
in
functions
have
positional
-
only
parameters
(
e
.
g
.
:
func
:`
abs
`).
parameters
(
e
.
g
.
:
func
:`
abs
`).
..
_keyword
-
only_parameter
:
*
:
dfn
:`
keyword
-
only
`:
specifies
an
argument
that
can
be
supplied
only
*
:
dfn
:`
keyword
-
only
`:
specifies
an
argument
that
can
be
supplied
only
by
keyword
.
Keyword
-
only
parameters
can
be
defined
by
including
a
by
keyword
.
Keyword
-
only
parameters
can
be
defined
by
including
a
single
var
-
positional
parameter
or
bare
``*``
in
the
parameter
list
single
var
-
positional
parameter
or
bare
``*``
in
the
parameter
list
...
...
Doc/library/stdtypes.rst
Dosyayı görüntüle @
e19e3f0b
...
@@ -1149,6 +1149,9 @@ application).
...
@@ -1149,6 +1149,9 @@ application).
fail, the entire sort operation will fail (and the list will likely be left
fail, the entire sort operation will fail (and the list will likely be left
in a partially modified state).
in a partially modified state).
:meth:`sort` accepts two arguments that can only be passed by keyword
(:ref:`keyword-only arguments <keyword-only_parameter>`):
*key* specifies a function of one argument that is used to extract a
*key* specifies a function of one argument that is used to extract a
comparison key from each list element (for example, ``key=str.lower``).
comparison key from each list element (for example, ``key=str.lower``).
The key corresponding to each item in the list is calculated once and
The key corresponding to each item in the list is calculated once and
...
...
Misc/NEWS
Dosyayı görüntüle @
e19e3f0b
...
@@ -351,6 +351,13 @@ Tests
...
@@ -351,6 +351,13 @@ Tests
- Issue 19384: Fix test_py_compile for root user, patch by Claudiu Popa.
- Issue 19384: Fix test_py_compile for root user, patch by Claudiu Popa.
Documentation
-------------
- Issue #18326: Clarify that list.sort'
s
arguments
are
keyword
-
only
.
Also
,
attempt
to
reduce
confusion
in
the
glossary
by
not
saying
there
are
different
"types"
of
arguments
and
parameters
.
Build
Build
-----
-----
...
...
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