jcrist · GitHub

added 8 commits

June 9, 2021 08:52
Also adds tests
This takes an optional callable of the form:
```python
def ext_hook(code: int, data: memoryview) -> Any:
    pass
```
If provided, this will be used to decode any extension types found in a
message (except those that are marked via type-annotation to remain as
`Ext` objects). Note that `data` is a memoryview into the larger message
buffer, minimizing data copies. To prevent the whole message buffer from
persisting in memory for too long, the user should ensure they don't
keep a reference to the `data` buffer in the decoded object.
Also renames `ExtType` to `Ext`.

Closed

Vectorcall for constructors doesn't work universally in python 3.8
(afaict). Dropping for now.

@jcrist jcrist changed the title [WIP] Add Extension Type support Add Extension Type support

Jun 12, 2021

@jcrist

@jcrist

Closed

Merged

Read the original on github.com ↗