(I guess this question applies more to init than r...
# development
b
(I guess this question applies more to init than repr, but I'm encountering it in the context of testing where I want to just construct a bogus
Digest
)
e
You can add one. These are 1st class Python classes - just implemented in CPython via rust.
b
Perfect, I'll give it a shot. Thanks for the link
❤️ 1
e
b
Python + Rust CFFI is a dangerously attractive combo
💯 1
e
Pretty slick.
b
I guess this never really took off with Go because it has its own runtime, right?
GC, etc, would be fighting each other
Copy code
----------------------------- Captured stdout call -----------------------------
ResolvedClasspathEntry(coord='org.hamcrest:hamcrest-core:1.3', file_name='hamcrest-core-1.3.jar', digest=Digest(849756b0ab27a1f299505534e9ec9f0e666c61c7e97123eff4194702dd14c510, 97))
Well that was shockingly easy
❤️ 1
Hacking directly on the Rust and then seeing the change automatically built and applied just by rerunning my Python test. Very nice
h
Yep! I'm giving a Pycon talk about Rust + Python 🥰