// src/python/util.rs
// ──────────────────────────────────────────────────────────────────────────────
// Shared helpers used by the Python shims.
use PyValueError;
use *;
/// Accept `str` or `bytes` as a lookup key and return owned bytes.
///
/// Every public Python method that accepts a key goes through this function —
/// it is the single place where "Python key → Rust bytes" is handled.