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.