[Python-ideas] Printf function?

Steven D'Aprano steve at pearwood.info
Sun May 13 09:05:43 CEST 2012


Cameron Simpson wrote:

> Printf isn't needed.

Agreed. printf does two things, formatting and printing, and Python can 
already do both. There's no point in a format-then-print function when you can 
just format then print.

However a lightweight alternative to regexes, something similar to scanf only 
safe, might be a nice idea. You can simulate scanf with regexes, but of course 
that's hardly lightweight.

(But now I'm indulging in idle speculation, not a serious proposal.)


-- 
Steven



More information about the Python-ideas mailing list