j
k
j a
j l
I've just spotted inconsistency between string and lists handling:
......'' in 'abc' True '' in 'abc'.split() False [] in ['a', 'b', 'c'] False
...'' in 'abc' True '' in 'abc'.split() False [] in ['a', 'b', 'c'] False
'' 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?
Back to the thread
Back to the list