Implement str.split(None).

Note that splitting by explicit string is not implemented so far.
This commit is contained in:
Paul Sokolovsky
2014-01-21 05:00:21 +02:00
parent 7380a83780
commit 4c316552c1
2 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
print("a b".split())
print(" a b ".split(None))
print(" a b ".split(None, 1))
print(" a b ".split(None, 2))
print(" a b c ".split(None, 1))
print(" a b c ".split(None, 0))
print(" a b c ".split(None, -1))