Chris Angelico <(E-Mail Removed)>:
> Not all problems need to be solved perfectly :) But at very least, I
> would put a comment against your collect() call explaining what
> happens: that self.tools is involved in a refloop. Most Python code
> shouldn't have to call gc.collect(), so it's worth explaining why you
> are here.
Refloops also are nothing to be avoided. Let GC do its job and forget
about it.
Marko
> Not all problems need to be solved perfectly :) But at very least, I
> would put a comment against your collect() call explaining what
> happens: that self.tools is involved in a refloop. Most Python code
> shouldn't have to call gc.collect(), so it's worth explaining why you
> are here.
Refloops also are nothing to be avoided. Let GC do its job and forget
about it.
Marko
Aucun commentaire:
Enregistrer un commentaire