News for hackers. Stuff that matters.
Re:Hyperpolyglot: PHP, Perl, Python, Ruby by grncdr on Sunday August 14, 2011 @07:01PM (#2884758)
I agree with your general point, but feel I should point out that this is possible in python using properties:

   class Int(object):
       def __init__(self, value):
           self.value = value

       @property
       def value(self):
           print("Accessing value")
           return self.value

       @value.setter
       def value(self, value):
           print("Setting value")
           self.value = value

There are no comments on this comment yet.