Lets see, Code highlighting?

class Node(object):
    def __init__(self, value: int = None, next_node=None):
        if isinstance(value, int):
            self.__value = value
        else:
            raise Exception('Invalid value sent to Node.__init__, not type\'Int\'')

        if isinstance(next_node, Node) or next_node is None:
            self.__next_node = next_node
        else:
            raise Exception('Invalid next_node sent to Node.__init__, not type \'Node\' or \'None\'')

    @property
    def value(self):
        return self.__value

    @value.setter
    def value(self, value):
        if isinstance(value, int):
            self.__value = value
        else:
            raise Exception('Attempted to set Invalid value inside a Node; not type \'Int\'')

    @property
    def next_node(self):
        return self.__next_node

    @next_node.setter
    def next_node(self, next_node):
        if isinstance(next_node, Node) or next_node is None:
            self.__next_node = next_node
        else:
            raise Exception('Attempted to set Invalid object to next_node inside a Node; not type \'Node\' or \'None\'')

Maybe I’ll put an image below here?

A simple, elegant, untainted Node.

Some stuff I might do here someday.

  • Write RestEasy for the 4th 5th 6th time, and maybe share it this time.
  • Teach the Dummies in Discord nodes and lists!
  • Write any useful code at all.

And lets finish it all out by trying a blockquote!

I am lazy, but for some reason, I am so paranoid that I end up working hard. —Seth Rogen