"Splitting a semicolon-separated string to a dictionary, in Python",dict(item.split('=') for item in s.split(';'))