Skip to content
New issue

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

Is it good practice to reuse a function name as the name of a class attribute? #108

Closed
weikang9009 opened this issue Jul 8, 2019 · 2 comments
Assignees

Comments

@weikang9009
Copy link
Member

Just curious: is it good practice to reuse a function name as the name of a class attribute?

An example is steady_state:

from giddy.ergodic import Markov
mc = Markov(y)
mc.steady_state
@sjsrey
Copy link
Member

sjsrey commented Jul 8, 2019

I think this makes it clear, where the method came from. So, to me, it seems like good practice.

@weikang9009
Copy link
Member Author

Makes sense. Thanks for replying!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants