ÁâÐÝØáÛÐÒ ÏÓÛÞ <[EMAIL PROTECTED]> writes:
> text[s:e] generates the following error:
>     TypeError: slice indices must be integers or None
> 
> How to be? :)

s and e both have to be integers or None.  Try printing them out just
before your slice to see if their values are reasonable.

    >>> s = 2
    >>> e = 4
    >>> "python"[s:e]
    'th'
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to