Post

Realizing that I over-engineered my #Python dict in Memphis in a laughable way. Essentially, when #rustlang compares two keys in a HashMap, it calls ==/PartialEq. I wired mine up to call __eq__ IN PYTHON. You know, in case the two objects provided a custom implementation.

Gonna rip this out and mirror CPython more closely, but I can't stop chuckling at how past me thought it was a good idea to call arbitrary Python code each time we compare keys in Rust.

0 reposts0 likes

No replies yet.