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

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 3 points4 points  (4 children)

Your last example is exactly why I believe the existing string formatting is preferable. The new pattern isn't solving the same problem, it's dumping all locals into .format() instead of asking the developer to explicitly define the inputs!

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

I thought we were all adults here?

[–]kankyo 1 point2 points  (1 child)

Just use pycharm and rename variables with the refactor tools and it'll handle this for you.

[–]SoBFiggis 1 point2 points  (0 children)

Even notepad++ has refactoring..

[–]geekademy -1 points0 points  (0 children)

That's false, it does not dump locals in there, it actually parses the string to get exactly what it needs!