Hacker News new | past | comments | ask | show | jobs | submit login

You could do that before with % substitution too. But I prefer .format() because (1) it's the new idiom and (2) will coerce to string without me binding the type in the format string.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: