String comparison question

Michael Spencer mahs at
Mon Mar 20 20:41:25 CET 2006

Fredrik Lundh wrote:

>>>> " hello world ".split()
> ['hello', 'world']

a.split() == b.split() is a convenient test, provided you want to normalize
whitespace rather than ignore it.  I took the OP's requirements to mean that
'A   B' == 'AB', but this is just a guess.


More information about the Python-list mailing list