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

breakfastea at gmail.com breakfastea at gmail.com
Thu Sep 21 12:28:31 EDT 2006


Thank you for your reminder:)

However I saw the split() function in the first place and that why I'm
trying write one myself:)

Peace

Bruno Desthuilliers wrote:
> 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