Python pals: Can I create a function that is an alias for another function, but has a different docstring? (But same parameters and returns)
-
-
I assume so - pass all positional arguments through in the right place followed by kwargs
-
There's a variety of way but it's likely it's not the best idea in general IMHO. But I would like to see what Chris is doing.
-
I've decided to make the functions more distinct instead, but still figuring out how to best organize the module
-
Is it private?
-
Assuming from the non-PEP8 in some places, you might wanna use a linter? Also which is the function you wanna alias?
-
Yeah, I probably should use a linter soon, right now been going more for basic functionality and then improving docs and generalizability
-
KEY_BLANK was going to be an alias of icon_solid, but instead decided to make it a constant to make things more efficient
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.