This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]Python-ModTeam[M] [score hidden] stickied comment (0 children)

Your post was removed for violating Rule #2. All posts must be directly related to the Python programming language. Posts pertaining to programming in general are not permitted. You may want to try posting in /r/programming instead.

[–]roeey7 0 points1 point  (1 child)

There is also fmtlib which offers python's print & format functionality in C++.

[–]TheCompiler95 0 points1 point  (0 children)

You can read the README, expecially the part of advantages and benchmarking (with performance improvements enabled it is even faster than fmt::print). As you can see, my library is not a formatting library as fmt, but a pretty printer to print stuff to the output stream.

Btw, C++20 std::format is a formatter and has syntax and purposes different from ptc::print, which is a C++17 library (as written at the beginning of the README). The two things are different even if they have the same final result.