modbot.py/modbot/helpers.py

11 lines
204 B
Python
Raw Normal View History

2022-04-18 00:09:13 +00:00
class RID(object):
def __init__(self):
self._id = 0
@property
def x(self):
self._id += 1
return self._id
@x.setter
def x(self, value):
self._id = value