I only put None there so that the colon would be more visible: in some
browser fonts, [value:] looks the same as [value]

On 4/5/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote:

En Thu, 05 Apr 2007 15:09:18 -0300, Collin Stocks <[EMAIL PROTECTED]>
escribió:

> message=whole_message[len(headers):None]
>
> You can omit the word None: it is just there for clarity purposes.

Uhm... I can't find any usage of slices including an explicit None in
code.google.com (except on the Python test suite), and really I don't
consider that to be more readable than whole_message[len(headers):]
But of course this is just a stylistic issue.

--
Gabriel Genellina

--
http://mail.python.org/mailman/listinfo/python-list

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to