def make_property(attr):
        def set_attr():
            def inner(self, value):
                setattr(self, attr + "_x", value[0])
                setattr(self, attr + "_y", value[1])
            return inner

        def get_attr(self):
            return getattr(self, attr + "_x"),  getattr(self, attr + "_y")
        return property(
            get_attr,
            set_attr(),
            doc='''a property to get fast access to "+attr+"_[x|y]

            :type: (int, int)
            ''')

    #: Transformation anchor point. Children will be added at this point and
    #: transformations like scaling and rotation
    #: will use this point as its center.
dataset/ETHPy150Open los-cocos/cocos/cocos/cocosnode.py/CocosNode.make_property/original