| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
fixes E743
| # For backwards compatibility we allow self.l(s) see Issue #210 | ||
| l = l_function # no-cython-lint |
There was a problem hiding this comment.
There isn't any point in doing this unless the docstring is updated to suggest calling the new function name.
I would do it like:
def l_function(self, s):
"""
>>> l_function()
123
"""
...
def l(self, s):
"""
Alias for :meth:`l_function`
"""
return self.l_function(s)
Sorry, something went wrong.
There was a problem hiding this comment.
oh sorry, i just missed this
Sorry, something went wrong.
|
I'm not sure it is worth changing the name here. I don't know much about this function and I don't know what it would normally be called. If the linter wasn't complaining then it would not have been suggested to change this so I would probably just leave it I think. Putting "function" in the name seems sort of redundant when most methods are functions. |
Sorry, something went wrong.
reviewer feedback
|
I think l_function makes sense, as it's a mathematical object known as a l-function (https://en.wikipedia.org/wiki/Dirichlet_L-function), obviously all the code is built with methods/functions but just calling it l doesnt seem very helpful to me. Happy to just close this though if you disagree |
Sorry, something went wrong.
|
Okay, let's get it in. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #210