string.upto() and string.from()

Tim Williams (gmail) tdwdotnet at gmail.com
Wed Mar 22 10:22:16 EST 2006


On 22/03/06, Tim Williams (gmail) <tdwdotnet at gmail.com> wrote:
>
>
>
> > if  u"h" in u"hello, world !" and u"hello, world !".from("h"):
> >      return " u"hello, world !"
> >else:   # not really required, used for demonstration only
> >      return
>
> :)
>


OK,  python allows me to code faster than I can think ( not that hard
really!! )   Proof-reading is my next personal goal too.

 Try this instead.

> if  u"h" in u"hello, world !":
>       return u"hello, world !".from("h"):
>else:   # not really required, used for demonstration only
>      return
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060322/51ab3866/attachment.html>


More information about the Python-list mailing list