strs = '/forums/support/'
spl = strs.strip('/').split('/')
a, b, c, d, e = spl + [None] * (5 - len(spl))
a, b, c, d, e
strs = '/forums/support/windows/'
spl = strs.strip('/').split('/')
a, b, c, d, e = spl + [None] * (5 - len(spl))
a, b, c, d, e
strs = '/forums/support/windows/help_i_deleted_sys32/6/'
spl = strs.strip('/').split('/')
a, b, c, d, e = spl + [None] * (5 - len(spl))
a, b, c, d, e
Элегантное назначение переменных неизвестной длины