On 13 nov 2003, at 0:48, Greg Ewing wrote: > Bernhard Herzog <bh at intevation.de>: > >> Wouldn't it be possible to call the callbacks of all weakrefs that >> point >> to a cycle about to be destroyed before that destruction begins? > > I'm not sure that would be a good idea, for the same reasons that it > wouldn't be a good idea to do the same for __del__ methods. Something > might depend on them being called in the right order, or in not being > called too soon. But isn't the order in which they are called undefined (for cycles)? Another option would be to record what callbacks you will do and call them after completing the destruction of the cycle. Ronald
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4