Joachim Folz
Joachim Folz
`strip_code` could accept an optional kwarg for a custom mapping function and/or dict of mapping functions for different node types. Probably not worth it though just to remove a loop...
Also ran into this just now. I was building against the system CUDA 10.2 and installed Pytorch from PyPI which is built against 10.1 and comes with the required libraries...
I think this can be fixed relatively easily. Replace `PyMemoryView_FromMemory` ([here](https://github.com/msgpack/msgpack-python/blob/38dba9634e4efa7886a777b9e7c739dc148da457/msgpack/buff_converter.h)) with `PyMemoryView_FromBuffer(Py_buffer *view)` where [`view.obj`](https://docs.python.org/3/c-api/buffer.html#c.Py_buffer.obj) points to self and `incref` self, though I am not entirely clear on this...
Oh wow... that's really convoluted. So you need to implement `__getbuffer__` and `__releasebuffer__` magic methods, and `getbuffer` can then do `memoryview(self)`.
Well, I know for a fact that [this](https://github.com/sbdchd/msgpack-types/blob/8162ba524b39fccc4d64adbaf887962e20b2af85/msgpack-stubs/fallback.pyi#L10) is incorrect. Unpacking methods accept any object that implements the buffer protocol, so next to `bytes` there's also `bytearray`, `array`, `memoryview`, `numpy.ndarray`,...
Same. Issue can be closed from my point of view as all involved software has changed dramatically since then.
Well, for one a PEP needs to be accepted and implemented first to make a difference. As of now it's just a draft.
Good news is that PEP 688 has been accepted. Bad news is that it'll be available in Python 3.12 at the earliest. Any earlier version would need a backport.
Just ran into this (again). This change in `websocket.py` is sufficient even for Python 3.12: ``` context = ssl.create_default_context(purpose=ssl.Purpose.SERVER_AUTH) #context = ssl.create_default_context(purpose=ssl.Purpose.CLIENT_AUTH) ``` This was already fixed in master about...
@hagen1778 interesting. That would provide some amount of separation from the actual config, which is probably changed more often than credentials. However, unless we do something fancy, we would still...