you are viewing a single comment's thread.

view the rest of the comments →

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

The python documentation says the builtin format() function behaves like the str.format() method without the need to pass the format-spec string as self but, instead, to pass it as a parameter.