To get pedantic, Rust has macros for print!
and println!
, but neither of them are functions. They basically just get translated[1] into the Rust equivalent of print(..., end="")
and print(...)
.
If Python were to grow a macro syntax[2], it’d be easy to define such macros. But the print()
function definitely can’t change this behavior because it would break the world, as @TomRitchford said.