News for hackers. Stuff that matters.
Re:Go Python, Go: Stream Processing for Python by iterati on Thursday October 12, 2017 @09:21AM (#15457726)
So use @property then?
Re:Go Python, Go: Stream Processing for Python by pryelluw on Thursday October 12, 2017 @09:52AM (#15457902)

    __SOME_VAR = "foo"


    @property
    def some_var(self):
        return self.__SOME_VAR

?
Re:Go Python, Go: Stream Processing for Python by TremendousJudge on Thursday October 12, 2017 @10:17AM (#15458080)
Yes, just like that. Check out this fantastic talk on being pythonic: https://www.youtube.com/watch?v=wf-BqAjZb8M
Re:Go Python, Go: Stream Processing for Python by harel on Thursday October 12, 2017 @03:01PM (#15460395)
Indeed.