Y
Hacker News
new
|
ask
|
show
|
jobs
by
solarmist
1739 days ago
I forget which version it starts in, but in newer python’s you can have keyword only arguments (they can’t be positional like in your example)
def calc_formula(first, second, *, is_gain=False): …