"RuntimeError: dictionary changed ... & Ruby

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Mon Mar 13 22:35:13 CET 2006

In <duvjsk$2r0f$1 at 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.

	Marc 'BlackJack' Rintsch

More information about the Python-list mailing list