An excercise in syntax abuse

Overloading string subtraction in Python to produce character ranges — a random act of senselessness. Never do this sort of shit. Thank you.

Or, a random act of senselessness (which is a nice word).

>>> class s(str):
...     def __sub__(self, other):
...         return "".join(chr(c) for c in range(ord(self), ord(other)+1))
...
>>> s("a") - s("g")
'abcdefg'

Never do this sort of thing. Thank you.