python - How is the __format__ method suposed to be used for int? -
I saw that there was a __format__ method but the help (int .__ format__) provides no help.
I also know that you do not consider directing ___ method_. When is this method called? What is the reason?
It is used for Py3k's new string formatting scheme.
You can find more information here:
You are right that it is not directly called it str.format
Or new format
builtin
Comments
Post a Comment