function to split strings and lists on predicate

Mark Lawrence breamoreboy at yahoo.co.uk
Mon Jan 6 01:48:11 EST 2014


I came across this over the weekend 
http://paddy3118.blogspot.co.uk/2013/10/unifying-pythons-string-and-list.html. 
  I couldn't come up with a solution to the fsplit function that seemed 
in any way cleaner.  What can our nest of avid Pythonistas come up with?

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list