Pastebin

Paste #1694: python class instantiation

< previous paste - next paste>

Pasted by chrivers

Download View as text


class MetaNode(spye.plugin):

    def __init__(self, parent, line, column):
        super(MetaNode, self).__init__(parent)
        self.line = line
        self.column = column

...

class MetaText(MetaNode):

    def __init__(self, parent, line, column, text):
        super(MetaText, self).__init__(parent, line, column)
        self.text = text

...

class XMSParser(spye.plugin):

    def token(self, tt, *args):
        return tt(self, 12, 34, *args)


    def test(self):
         self.token(MetaText, text)

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.