It happens to me quite often to have a piece of code that looks like this.
raw_data = [(s.split(\',\')[0], s.split(\',\')[1]) for s in all_lines if s.split(\',
You can't.
A list comprehension consists of brackets containing an expression followed by a for clause, then zero or more for or if clauses. The result will be a new list resulting from evaluating the expression in the context of the for and if clauses which follow it.
From here
Assignment in Python is not an expression.
As Padraic Cunningham comments - if you need to split it multiple times don't do it in list comprehension.