We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Just curious: is it good practice to reuse a function name as the name of a class attribute?
An example is steady_state:
steady_state
giddy
from giddy.ergodic import steady_state
Markov
from giddy.ergodic import Markov mc = Markov(y) mc.steady_state
The text was updated successfully, but these errors were encountered:
I think this makes it clear, where the method came from. So, to me, it seems like good practice.
Sorry, something went wrong.
Makes sense. Thanks for replying!
sjsrey
ljwolf
No branches or pull requests
Just curious: is it good practice to reuse a function name as the name of a class attribute?
An example is
steady_state
:steady_state
is a function ingiddy
and can be imported asfrom giddy.ergodic import steady_state
steady_state
is an attribute of classMarkov
ingiddy
and can be used as:The text was updated successfully, but these errors were encountered: