pyhacks
pyhacks
I will close this issue if you confirm you will never implement ```__trunc__```, ```__floor__```, ```__ceil__```, ```__buffer__```, ```__release_buffer__```
1 last thing: I recommend changing ```__mro_entries__``` with this one: ```python def __mro_entries__(self, bases): if not isinstance(self.__wrapped__, type) and hasattr(self.__wrapped__, "__mro_entries__"): return self.__wrapped__.__mro_entries__(bases) else: return (self.__wrapped__,) ```
> even building custom number classes would be rare It just came to my mind: there is ```decimal``` from standard library which provides a custom numeric class ```Decimal```. If someone...
I stumbled upon a strange behavior with in-place operators: ```python import wrapt class A: a = wrapt.ObjectProxy(10) b = 10 x = A() x.a += 1 x.b += 1 del...