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

%-based string interpolation still works in python 3.



Huh, you're right. I could have sworn it was taken out in favor of '.format'; I wonder where I got that idea from...?


I believe they were going to but were met with stern resistance from the community and caved.


I concur. % formatting is extremely cute and I miss it in every other language.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: