Re: [Tutor] Slicing Tuples

2010-12-12 Thread John Russell
Thanks to all for your answers, especially those that went into detail about why its done in that way. As far as whether this is actually addressed in the book, as far as I can tell by going a few pages forward, it does not. In fact, after the code there's a how it works section which only added t

Re: [Tutor] Slicing Tuples

2010-12-11 Thread David Hutto
So, in essence, that would be redefining(in Python) basic division of grammatical structures(splices)? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Slicing Tuples

2010-12-11 Thread Steven D'Aprano
John Russell wrote: So, my question is this, and I realize that this is *very* basic - what is going on with the last element? Why is it returning one less than I think it logically should. Am I missing something here? There is not much of an explanation in the book, but I would really like to u

Re: [Tutor] Slicing Tuples

2010-12-11 Thread Hugo Arts
On Sat, Dec 11, 2010 at 5:25 PM, John Russell wrote: > Last night I started working through a book (Beginning Python: Using Python > 2.6 and Python 3.1)  I bought to learn Python, and there is an example in it > that doesn't make sense to me. > There is an example on slicing sequences that goes li