class Forum_Spot:

    def __init__(self, url):
        parts = url.split('/')[1:]
self.set_url(*parts)

def set_url(self, root, section=None, subsection=None, thread=None, post=None):
    self.root = root
self.section = section
self.subsection = subsection
self.thread = thread
self.post = post
Elegantly Assign Variables of Unknown Length