blob: 8e3e8feeefb3bfbd13fb9e4d6fd8de9e1009ea97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
Documentation for the 'split' module
=====================================
The module contains a 'split' function, which
splits a string taking as separators "," and ";".
This is an example of usage:
>>> from split import split
>>> split("hello, world!; welcome to the Italian Code Jam!")
['hello', 'world!', 'welcome to the Italian Code Jam!']
Notice that 'split' eats whitespaces:
>>> split("hello , world")
['hello', 'world']
>>> split("hello , ; world")
['hello', '', 'world']
|