https://pantsbuild.org/ logo
#development
Title
# development
b

bored-art-40741

04/11/2021, 7:22 PM
(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

enough-analyst-54434

04/11/2021, 7:38 PM
You can add one. These are 1st class Python classes - just implemented in CPython via rust.
b

bored-art-40741

04/11/2021, 7:40 PM
Perfect, I'll give it a shot. Thanks for the link
❤️ 1
e

enough-analyst-54434

04/11/2021, 7:40 PM
b

bored-art-40741

04/11/2021, 7:43 PM
Python + Rust CFFI is a dangerously attractive combo
💯 1
e

enough-analyst-54434

04/11/2021, 7:44 PM
Pretty slick.
b

bored-art-40741

04/11/2021, 7:45 PM
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

hundreds-father-404

04/11/2021, 8:09 PM
Yep! I'm giving a Pycon talk about Rust + Python 🥰