18 Jul
2012
18 Jul
'12
5:43 p.m.
On 2012-07-18, at 19:30 , anatoly techtonik wrote:
I've just spotted inconsistency between string and lists handling:
'' in 'abc' True '' in 'abc'.split() False [] in ['a', 'b', 'c'] False
Why strings here behave differently than other sequence types? Is that by design?
Erm… yes? `in` would not be very useful for strings if you could only use it to check for a single character would it?