3 ms·
Why is the example greet = partial(str.format, greeting) greet("world") as opposed to just greeting.format("world") ?
by thaumasiotes 6y ago
Why is the example
greet = partial(str.format, greeting)
greet("world")
as opposed to just
greeting.format("world")
?
- contravariant 6y agoThe real question is why they didn't just write: greet = greeting.format
- linkdd 6y agoIt was implying you could use the str.format function as argument to other computations, something you cannot do with f-strings.