How to return an "not string' error in function?

Bruno Desthuilliers onurb at xiludom.gro
Thu Sep 21 12:24:14 EDT 2006


breakfastea at gmail.com wrote:
(OT : please dont top-post)

> Thank you for your inputing which has been great inspirational:)
> 
> What I tried to do is to write a string.split() module, 

So don't waste time:

>>> "ab eced f aazaz".split()
['ab', 'eced', 'f', 'aazaz']
>>> "ab-eced-ff-aazaz".split('-')
['ab', 'eced', 'ff', 'aazaz']
>>>



-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list