Python pals: Can I create a function that is an alias for another function, but has a different docstring? (But same parameters and returns)
-
Show this thread
-
1 reply 0 retweets 1 likeShow this thread
-
-
I assume so - pass all positional arguments through in the right place followed by kwargs
1 reply 0 retweets 1 like -
Replying to @spinicist @cMadan and
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.
1 reply 0 retweets 1 like -
Replying to @o_guest @spinicist and
I've decided to make the functions more distinct instead, but still figuring out how to best organize the module
1 reply 0 retweets 1 like -
-
Replying to @o_guest @spinicist and
Current code is here https://github.com/cMadan/ElGateau/blob/master/dev_notebooks/ElGateau.py …
1 reply 0 retweets 2 likes
Assuming from the non-PEP8 in some places, you might wanna use a linter? Also which is the function you wanna alias?
-
-
Replying to @o_guest @spinicist and
Yeah, I probably should use a linter soon, right now been going more for basic functionality and then improving docs and generalizability
2 replies 0 retweets 1 like - 5 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.