Python f-strings {expr=}

I’ve been learning rust recently, and have loved the ease of the dbg! macro which will print and return the value of a given expression, along with the file and line number of where it was called. Since it returns the value of the expression it can be used inline. For example : fn main () { let nums = vec! [ 1 , 2 , 3 , 4 , 5 ]; let doubled : Vec < _ > = nums .iter () .map (| x | dbg! ( x * 2 ))…