Hello ng,
I don't understand why split (string split) doesn't work with the same
method if I can't pass values or if I pass a whitespace value:
[color=blue][color=green][color=darkred]
>>> "".split()[/color][/color][/color]
[][color=blue][color=green][color=darkred]
>>> "".split(" ")[/color][/color][/color]
['']
But into the doc I see:
""" If sep is not specified or is None, any whitespace string is a
separator.
"""
In this two cases, split would to return the _same_ result?
Thanks,
Michele
I don't understand why split (string split) doesn't work with the same
method if I can't pass values or if I pass a whitespace value:
[color=blue][color=green][color=darkred]
>>> "".split()[/color][/color][/color]
[][color=blue][color=green][color=darkred]
>>> "".split(" ")[/color][/color][/color]
['']
But into the doc I see:
""" If sep is not specified or is None, any whitespace string is a
separator.
"""
In this two cases, split would to return the _same_ result?
Thanks,
Michele
Comment