I've seen it being used in a couple of projects in conjunction with yield and Deferred like so: yield ~ some_fun(). Sometimes it works without the ~ bit, sometimes it doesn't. Can't figure out what it actually does, help.
Asked
Active
Viewed 190 times
1
beetroot_fox
- 55
- 6
-
A bit vague. Why not give *examples* of when it works without `~` and when it doesn't? – John Coleman Jun 04 '18 at 14:24
1 Answers
3
Check the class being 'inverted' has a __invert__(self) method, if so, that's overriding the tilde operator.
DDS
- 2,340
- 16
- 34