Separate print() and println() functions

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.


  1. at compile time, which Python doesn’t have… ↩︎

  2. but I wouldn’t count on it! that PEP is probably abandoned ↩︎