python-is-cool icon indicating copy to clipboard operation
python-is-cool copied to clipboard

forced named arguements

Open rishabhdeepsingh opened this issue 3 years ago • 0 comments

Will it be cool to add forced-named arguments to this list?

def foo(pos, *, forcenamed):
     print(pos, forcenamed)
>>> foo(pos=10, forcenamed=20)
10 20
>>> foo(10, forcenamed=20)
10 20

rishabhdeepsingh avatar May 01 '22 21:05 rishabhdeepsingh