Guilherme Polo <[EMAIL PROTECTED]> wrote:
>  Let me post another one, and longer:
> 
>  if ord(somechar) in range(ord('A'), ord('Z') + 1) + range(ord('a'),
>  ord('z') + 1):
>      ...

That is very inefficient!  Every time it is run it creates two lists
then joins them then throws the whole lot away!

-- 
Nick Craig-Wood <[EMAIL PROTECTED]> -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to