Graham Dumpleton
Graham Dumpleton
Do you have a practical use case for where `weakref.WeakMethod` would be used? Am curious, but also may help to understand what the purpose of it is.
First observation is that the implementation of ``WeakMethod`` is arguably wrong. This is because it doesn't correctly apply the descriptor protocol to rebind the function to the instance when it...
I am curious as to why you are wrapping the context manager in the first place. Not suggesting you are doing anything wrong, I just haven't ever sat down to...
Having proxy methods for `__aiter__` and `__anext__` should not be an issue because you would have to be using `async for` for that test to happen, in which case they...
Most likely because internally to the Python object model, ``__mro__`` access is trying to in turn access ``__class__``, with that causing the exception since wrapper hasn't been initialised. What happens...
If trying to use the no argument ``super()`` back port for 2.7, then yes at this point it doesn't look like it will work. Would need to dig into how...
I am not sure it should be attempting to unwrap the modulo. Even so, ``pow()`` should not crash. It should be raising an exception it not given a value of...
All I can is that ternary operators are a mess. ``` /* Calling scheme used for ternary operations: Order operations are tried until either a valid result or error: v.op(v,w,z),...
I don't see a crash. I see: ``` TypeError: unsupported operand type(s) for pow(): 'int', 'int', 'ObjectProxy' ``` in most cases. But for pypy I get: ``` > self.assertEqual(pow(3, 2,...
And how pure Python even does all the conversion I can't remember. ``` def __pow__(self, other, *args): return pow(self.__wrapped__, other, *args) ``` I only unwrap the first argument on all...