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
-
Replying to @cMadan
import types g = types.FunctionType(f.func_code, f.func_globals, "g") g.__doc__ = "new docstring" Also: don't do this.
1 reply 0 retweets 4 likes -
Replying to @michaelhoffman @cMadan
Yeah, doesn't sound like a good idea...
1 reply 0 retweets 1 like -
Replying to @o_guest @michaelhoffman
Thanks for the feedback, will change things around to make the functions more independent
1 reply 0 retweets 0 likes
Replying to @cMadan @michaelhoffman
Why are the dependent currently?
5:15 AM - 30 Oct 2017
0 replies
0 retweets
0 likes
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.