Re: "RuntimeError: dictionary changed ... & Ruby
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: "RuntimeError: dictionary changed ... & Ruby

From: Marc 'BlackJack' Rintsch <bj_666@gmx.net>
Date: Mon Mar 13 2006 - 22:35:13 CET

In <duvjsk$2r0f$1@ulysses.news.tiscali.de>, robert wrote:

> * Ruby without refcounts provides no deterministic __del__ in
> non-circular refs ==> your type finally finally finally .close .close
> .close all the time

Which is what you should type in Python too as there's no guarantee that
`__del__()` will be called immidiatly when the file object goes out of
scope or isn't referenced anymore. The reference counting memory
management is an implementation detail.

Ciao,
        Marc 'BlackJack' Rintsch
Received on Sun Apr 30 11:45:43 2006