Python equivil equivalent to PHP's explode() function

Hey, I am very new to Python and am wondering if there is a function like PHP’s explode for Python.

Thanks

split…

But this documented function is deprecated.
It’s not anymore


import string
string.split(the_string, the_separator)

but


the_string.split(the_separator[,the_limit])

example:


>>> print "this is a not so long string".split(' ')
['this', 'is', 'a', 'not', 'so', 'long', 'string']
>>> print "this is a not so long string".split(' ',3)
['this', 'is', 'a', 'not so long string']
>>>

Thanks!