3 ms·
I’ve written a similar python library called `safetywrap` that implements both Result and Option types from rust, with almost all of the interfaces implemented,
by mplanchard 7y ago
I’ve written a similar python library called `safetywrap` that implements both Result and Option types from rust, with almost all of the interfaces implemented, including unwrap, map, flat map, err_map, etc. It fully supports types and works well with mypy.
Feel free to give it a shot! https://pypi.org/project/safetywrap/ https://pypi.org/project/safetywrap/
- dbrgn 7y agoAt first glance, this looks really solid! Maybe I can deprecate my result library now :D