Думал, format - метод класса string. Читаю доку: http://docs.python.org/2/library/string.html
New in version 2.6.
The built-in str and unicode classes provide the ability to do complex variable substitutions and value formatting via the str.format() method described in PEP 3101. The Formatter class in the string module allows you to create and customize your own string formatting behaviors using the same implementation as the built-in format() method.
class string.Formatter
The Formatter class has the following public methods:
format(format_string, *args, **kwargs)
format() is the primary API method. It takes a format string and an arbitrary set of positional and keyword arguments. format() is just a wrapper that calls vformat().
Что значит string.Formatter? Класс, определённый внутри класса string? Каким тогда образом метод format доступен записью str.format(), он же не метод класса string?