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
6af7fe05
Kaydet (Commit)
6af7fe05
authored
Agu 02, 2005
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add example
üst
a2e21cb9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
whatsnew25.tex
Doc/whatsnew/whatsnew25.tex
+14
-2
No files found.
Doc/whatsnew/whatsnew25.tex
Dosyayı görüntüle @
6af7fe05
...
...
@@ -60,9 +60,21 @@ def log (message, subsystem):
server
_
log = functional.partial(log, subsystem='server')
\end{verbatim}
Here's another example, from a program that uses PyGTk.
Here's another example, from a program that uses PyGTk. Here a
context-sensitive pop-up menu is being constructed dynamically. The
callback provided for the menu option is a partially applied version
of the
\method
{
open
_
item()
}
method, where the first argument has been
provided.
% XXX add example from my GTk programming
\begin{verbatim}
...
class Application:
def open
_
item(self, path):
...
def init (self):
open
_
func = functional.partial(self.open
_
item, item
_
path)
popup
_
menu.append( ("Open", open
_
func, 1) )
\end{verbatim}
\begin{seealso}
...
...
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