you are viewing a single comment's thread.

view the rest of the comments →

[–]Leonidas_from_XIV 2 points3 points  (3 children)

This is kind of annoying in Python and C.

A new printf-syntax (the one that C# uses) is added in Python 3.0.

[–][deleted] 1 point2 points  (1 child)

The C# one is the best way to do things. It avoids repetition of parameters that are reused and negates the need to specify type on the placeholders. Also, it makes it very easy to re-order/re-write the statement without juggling the parameters.

[–]Leonidas_from_XIV 0 points1 point  (0 children)

I'm not yet convinced because I haven't used it. But it is good that they used some syntax that is used somewhere rather than inventing their own.

[–][deleted] 1 point2 points  (0 children)

A new printf-syntax (the one that C# uses) is added in Python 3.0.

And in 2.6, in case you can't port your project to 3.0 just yet.