def __init__(self, arg1, arg2=None):
        #print "range", arg1, arg2
        #print dir(arg1)
        self.m_startPoint = None
        self.m_endPoint = None
        self.m_range = None
        if isinstance(arg1, RangeEndPoint):
            if arg2 and isinstance(arg2, RangeEndPoint):
                self.setRange(arg1, arg2)
            else:
                self.setCursor(arg1)
        elif arg2 is not None:
            self.m_document = arg1
            self.m_range = arg2
        else:
            if hasattr(arg1, "nodeType") and \
                    arg1.nodeType == DOM.DOCUMENT_NODE:
                self.setDocument(arg1)
            else:
                self.setRange(arg1)
Creates an empty range on this document
dataset/ETHPy150Open pyjs/pyjs/pyjswidgets/pyjamas/selection/Range.py/Range.__init__