osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Python3 - How do I import a class from another file


On Tue, 10 Dec 2019 22:08:48 +0100
"R.Wieser" <address at not.available> wrote:

> And although you have been fighting me over when the __del__ method is
> called, it /is/ called directly as a result of an "del instance" and
> the refcount goes zero.  There is /no/ delay.    (with the only
> exception is when a circular reference exists).
> 
> Hence, no "race condition" problem.

Under what circumstances would freeing memory in an unspecified order
gerenate race conditions (except when freeing an unused chunk of
memory too late would cause the system to run out of memory)?

Genuinely interested, not loooking for a fight.