str.partition

partition(sep)

Split the string at the first occurrence of sep, and return a 3-tuple containing the part before the separator, the separator itself, and the part after the separator. If the separator is not found, return a 3-tuple containing the string itself, followed by two empty strings. New in version 2.5.

 

Comment:

An example would be nice!

Posted by olle (2007-04-19)

A Django site. this page was rendered by a django application in 0.00s 2012-05-16 20:19:17.898602. hosted by webfaction.