[Python-ideas] List Revolution

Matt Billenstein matt at vazor.com
Mon Sep 12 08:18:37 CEST 2011

Ugh, I hate the idea of library code having to think about dealing with the
possibility that you chose 42 as the starting index for some list you passed
into a function in said library.  Then I suppose we'll have to extend this to
strings and tuples and so forth as well?

Seriously, any further "solutions" for this non-problem are just mental
masturbation -- please stop.


On Sun, Sep 11, 2011 at 11:05:28PM -0700, mike.w.meyer at gmail.com wrote:
> Ok, how about enhancing the list type to allow specifying an offset,
> defaulting to 0? The offset should be positive, and that many elements simple
> aren't there. Asking for an element that isn't there, or a slice including
> such an element, raises value error exception. The iterators & etc for this
> list would all start at offset instead of zero.
> -- 
> Sent from my Android tablet with K-9 Mail. Please excuse my brevity.
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas

Matt Billenstein
matt at vazor.com

More information about the Python-ideas mailing list