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
9fd21e31
Kaydet (Commit)
9fd21e31
authored
Tem 29, 2006
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bug #835255: The "closure" argument to new.function() is now documented.
üst
1393d6a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
libnew.tex
Doc/lib/libnew.tex
+5
-2
No files found.
Doc/lib/libnew.tex
Dosyayı görüntüle @
9fd21e31
...
@@ -30,13 +30,16 @@ unbound if \var{instance} is \code{None}. \var{function} must be
...
@@ -30,13 +30,16 @@ unbound if \var{instance} is \code{None}. \var{function} must be
callable.
callable.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
function
}{
code, globals
\optional
{
, name
\optional
{
, argdefs
}}}
\begin{funcdesc}
{
function
}{
code, globals
\optional
{
, name
\optional
{
,
argdefs
\optional
{
, closure
}}}}
Returns a (Python) function with the given code and globals. If
Returns a (Python) function with the given code and globals. If
\var
{
name
}
is given, it must be a string or
\code
{
None
}
. If it is a
\var
{
name
}
is given, it must be a string or
\code
{
None
}
. If it is a
string, the function will have the given name, otherwise the function
string, the function will have the given name, otherwise the function
name will be taken from
\code
{
\var
{
code
}
.co
_
name
}
. If
name will be taken from
\code
{
\var
{
code
}
.co
_
name
}
. If
\var
{
argdefs
}
is given, it must be a tuple and will be used to
\var
{
argdefs
}
is given, it must be a tuple and will be used to
determine the default values of parameters.
determine the default values of parameters. If
\var
{
closure
}
is given,
it must be
\code
{
None
}
or a tuple of cell objects containing objects
to bind to the names in
\code
{
\var
{
code
}
.co
_
freevars
}
.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
code
}{
argcount, nlocals, stacksize, flags, codestring,
\begin{funcdesc}
{
code
}{
argcount, nlocals, stacksize, flags, codestring,
...
...
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