reference-cycle Questions

2

Solved

I'm implementing an observer-observable pattern in python: This is the Observable class: class Observable(object): def __init__(self, value): self.value = value self.observers = [] def set(s...
Bwana asked 22/11, 2016 at 11:41

1

Here I have some examples for closure strong reference cycles. If I assign a closure to a stored property, I can use a closure capture list to make the captured reference unowned/weak. But if I ass...
Escort asked 6/10, 2016 at 14:44
1

© 2022 - 2024 — McMap. All rights reserved.