1

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.

1 Answers1

3

Check the class being 'inverted' has a __invert__(self) method, if so, that's overriding the tilde operator.

DDS
  • 2,340
  • 16
  • 34