in
Size: a a a
in
A🌚
RB
in
in
in
RB
AS
VB
DV
SB
AM
__format__
AM
format
that basically just calls __format__
method of the passed argument type with passed spec. It is used in str.format
as well.class A:
def __format__(self, spec):
return spec
format(A(), 'oh hi mark')
# 'oh hi mark'
'{:oh hi mark}'.format(A())
# 'oh hi mark'
SZ
БС
RB