• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is there a way I could make class method property?  RSS feed

 
Harish Shivaraj
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.

Is there a way I could make class method a property rather than method when accessing it.
As we do in python using decorators?

Thanks
Harish
 
Junilu Lacar
Sheriff
Posts: 11476
180
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're going to have to clarify what you want to do because it's not very clear from your initial description. Can you give an example of Python code that shows what you want to do?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!