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
9e6aab6b
Kaydet (Commit)
9e6aab6b
authored
Eki 06, 2002
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Backport 1.33:
Update programmer's note on nested functions.
üst
397848fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ref7.tex
Doc/ref/ref7.tex
+5
-5
No files found.
Doc/ref/ref7.tex
Dosyayı görüntüle @
9e6aab6b
...
...
@@ -389,11 +389,11 @@ form. The ``\keyword{def}'' form is actually more powerful since it
allows the execution of multiple statements.
\indexii
{
lambda
}{
form
}
\strong
{
Programmer's note:
}
a ``
\code
{
def
}
'' form executed inside a
function definition defines a local function that can be returned or
passed around. The semantics of name resolution in the nested
function will change in Python 2.2. See the appendix for a
description of the new semantic
s.
\strong
{
Programmer's note:
}
Functions are first-class objects. A
``
\code
{
def
}
'' form executed inside a function definition defines a
local function that can be returned or passed around. Free variables
used in the nested function can access the local variables of the
function containing the def. See section
\ref
{
naming
}
for detail
s.
\section
{
Class definitions
\label
{
class
}}
...
...
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