[Python-ideas] Reducing colon uses to increase readability

Marcin ‘Qrczak’ Kowalczyk qrczak at knm.org.pl
Mon Jun 30 15:22:16 CEST 2008


2008/6/30 Mathias Panzenböck <grosser.meister.morti at gmx.net>:

> Well, but the , would be problematic. How to distinguish between the tuple
> ((start..end),step) and the slice object (start..end,step)?

This is not problematic, as you just showed: ((start..end),step) is a
tuple, (start..end,step) is a slice.

-- 
Marcin Kowalczyk
qrczak at knm.org.pl
http://qrnik.knm.org.pl/~qrczak/


More information about the Python-ideas mailing list