Closed jhermann closed 7 years ago
Hi, I find this syntax rather inhuman (esp. the 3× repetition):
print('{red} white'.format(red=crayons.red('red')))
and would very much prefer:
print('{red}important {foo}{off}normal text {userval}' .format(**crayons.palette(userval=1, foo='bar')))
(with the arguments being optional of course). Also, those two variants can live in harmony.
Hi, I find this syntax rather inhuman (esp. the 3× repetition):
and would very much prefer:
(with the arguments being optional of course). Also, those two variants can live in harmony.