
July 24, 2022
5:55 p.m.
Hello, I'll give an example: def func(param="default"): ... def func_wrapper(..., param="default"): ... func(param) We have to duplicate value of parameter "default" if we want to use this as the default. Or we can do that: def func(param="default"): ... def func_wrapper(..., *args): ... func(*args) But it won't always be possible. In addition, auto-completion in IDEs won't work. It would be cool to have an empty type like Void (not None) for explicit full control: def func(param="default"): ... def func_wrapper(..., param=Void): ... func(param)
946
Age (days ago)
946
Last active (days ago)
1 comments
2 participants
participants (2)
-
Paul Bryan
-
Крупенков Михаил