View Single Post
Eski 06/09/2007, 02:05   #5 (permalink)
myavuzselim
Eski Cevizci
 
myavuzselim Adlı Üyenin Profil Grafiği
 
Üyelik Tarihi: 05/2004
Mesaj: 818
Varsayılan

Alıntı:
http://docs.python.org/lib/node328.html, mesajından alıntı:
Depending on the implementation, closing a persistent dictionary may or may not be necessary to flush changes to disk. The __del__ method of the Shelf class calls the close method, so the programmer generally need not do this explicitly.
Yani bu demek oluyor ki Shelf sinifi zaten dogru seyi yapiyor, yukaridaki Kapatici sinifini kullanmana veya close metodunu ozellikle cagirmana gerek yok.
myavuzselim hatta değil   Alıntı Yaparak Yanıtla