Python - is there a "don't care" symbol for tuple assignments?
- by Cristi Diaconescu
Given a string "VAR=value" I want to split it at the first '=' sign, something like this:
var, sep, value = "VAR=value".partition('=')
Is there a way to NOT declare a variable 'sep'? Like this (just made up the syntax):
var, -, value = "VAR=value".partition('=')
Just for completeness, I'm targetting Python v 2.6