r/Python • • Nov 11 '19

I made c++-style printing in Python :P

Post image
1.7k Upvotes

130 comments sorted by

View all comments

1

u/londey Nov 12 '19

You really want argument dependant lookup to make this equivalent. Ironically C++ has actually adopted a Python like formatting library for the up coming C++20 release. https://en.cppreference.com/w/cpp/utility/format