Re: Tutorial creates confusion about slices

2007-04-28 Thread Steve Holden
Antoon Pardon wrote: > On 2007-04-26, Steve Holden <[EMAIL PROTECTED]> wrote: [...] > >> Warning: this is an explicit test to see whether you can sit on your >> hands and refrain from replying. It's hard to find a thread where you >> don't make the last comment on every branch you get involved i

Re: Tutorial creates confusion about slices

2007-04-27 Thread Antoon Pardon
On 2007-04-26, Steve Holden <[EMAIL PROTECTED]> wrote: > Antoon Pardon wrote: >> On 2007-04-25, Steve Holden <[EMAIL PROTECTED]> wrote: > [...] >>> Most people reading a tutorial are aware that they are being given the >>> knowledge they need to put the subject matter to immediate use, and th

Re: Tutorial creates confusion about slices

2007-04-26 Thread Steve Holden
Michael Hoffman wrote: > Neil Cerutti wrote: >>> On Apr 23, 1:38 pm, Antoon Pardon <[EMAIL PROTECTED]> wrote: The following is part of the explanation on slices in the tutorial: The best way to remember how slices work is >>> ... +---+---+---+---+---+ | H | e | l |

Re: Tutorial creates confusion about slices

2007-04-26 Thread Michael Hoffman
Neil Cerutti wrote: >> On Apr 23, 1:38 pm, Antoon Pardon <[EMAIL PROTECTED]> wrote: >>> The following is part of the explanation on slices in the >>> tutorial: >>> >>> The best way to remember how slices work is >> ... >>> +---+---+---+---+---+ >>> | H | e | l | p | A | >>> +---+---+---+---+-

Re: Tutorial creates confusion about slices

2007-04-26 Thread Neil Cerutti
On 2007-04-25, Ant <[EMAIL PROTECTED]> wrote: > On Apr 23, 1:38 pm, Antoon Pardon <[EMAIL PROTECTED]> wrote: >> The following is part of the explanation on slices in the >> tutorial: >> >> The best way to remember how slices work is > ... >> +---+---+---+---+---+ >> | H | e | l | p | A | >> +

Re: Tutorial creates confusion about slices

2007-04-26 Thread Steve Holden
Antoon Pardon wrote: > On 2007-04-25, Steve Holden <[EMAIL PROTECTED]> wrote: [...] >>> >> Most people reading a tutorial are aware that they are being given the >> knowledge they need to put the subject matter to immediate use, and that >> there may well be refinements that are glossed over or c

Re: Tutorial creates confusion about slices

2007-04-26 Thread Antoon Pardon
On 2007-04-25, Steve Holden <[EMAIL PROTECTED]> wrote: > Antoon Pardon wrote: >> On 2007-04-25, Ant <[EMAIL PROTECTED]> wrote: >>> On Apr 23, 1:38 pm, Antoon Pardon <[EMAIL PROTECTED]> wrote: The following is part of the explanation on slices in the tutorial: The best way to rem

Re: Tutorial creates confusion about slices

2007-04-25 Thread Ant
On Apr 23, 1:38 pm, Antoon Pardon <[EMAIL PROTECTED]> wrote: > The following is part of the explanation on slices in the > tutorial: > > The best way to remember how slices work is ... > +---+---+---+---+---+ > | H | e | l | p | A | > +---+---+---+---+---+ > 0 1 2 3 4 5 > -5 -4

Re: Tutorial creates confusion about slices

2007-04-25 Thread Neil Cerutti
On 2007-04-25, Hamilton, William <[EMAIL PROTECTED]> wrote: > That's how everything I've ever learned has been taught. Start > with a simple explanation that may not be completely accurate > but is functional, then fill in the details later when there is > a context to put them in. The tutorial c

Re: Tutorial creates confusion about slices

2007-04-25 Thread Duncan Booth
Steve Holden <[EMAIL PROTECTED]> wrote: >> Wording to that effect makes it more clear that it is a crutch >> that can be usefull now but that it should be discarded later. >> > Most people reading a tutorial are aware that they are being given the > knowledge they need to put the subject matter

Re: Tutorial creates confusion about slices

2007-04-25 Thread Steve Holden
Antoon Pardon wrote: > On 2007-04-25, Ant <[EMAIL PROTECTED]> wrote: >> On Apr 23, 1:38 pm, Antoon Pardon <[EMAIL PROTECTED]> wrote: >>> The following is part of the explanation on slices in the >>> tutorial: >>> >>> The best way to remember how slices work is to think of the indices as >> ... >>>

RE: Tutorial creates confusion about slices

2007-04-25 Thread Hamilton, William
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of Antoon Pardon > Sent: Tuesday, April 24, 2007 7:40 AM > To: python-list@python.org > Subject: Re: Tutorial creates confusion about slices > > On 2007-04-24, Michael B

Re: Tutorial creates confusion about slices

2007-04-25 Thread Antoon Pardon
On 2007-04-25, Ant <[EMAIL PROTECTED]> wrote: > On Apr 23, 1:38 pm, Antoon Pardon <[EMAIL PROTECTED]> wrote: >> The following is part of the explanation on slices in the >> tutorial: >> >> The best way to remember how slices work is to think of the indices as > ... >> +---+---+---+---+---+ >> |

Re: Tutorial creates confusion about slices

2007-04-25 Thread Ant
On Apr 23, 1:38 pm, Antoon Pardon <[EMAIL PROTECTED]> wrote: > The following is part of the explanation on slices in the > tutorial: > > The best way to remember how slices work is to think of the indices as ... > +---+---+---+---+---+ > | H | e | l | p | A | > +---+---+---+---+---+ > 0 1

Re: Tutorial creates confusion about slices

2007-04-25 Thread Tim Golden
Antoon Pardon wrote: > On 2007-04-24, Michael Hoffman <[EMAIL PROTECTED]> wrote: > >> Really only one person has argued that the docs do not need to be >> changed. The other two people seemed to think you were asking for help >> rather than discussing how to revise the docs. Understandable, sinc

Re: Tutorial creates confusion about slices

2007-04-25 Thread Ant
Hi Antoon, > The best way to remember how slices work is to think of the indices as ... > +---+---+---+---+---+ > | H | e | l | p | A | > +---+---+---+---+---+ > 0 1 2 3 4 5 > -5 -4 -3 -2 -1 > > This is all very well with a simple slice like: > > "HelpA"[2:4]=> "lp

Re: Tutorial creates confusion about slices

2007-04-25 Thread Antoon Pardon
On 2007-04-24, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Antoon Pardon wrote: >> On 2007-04-24, Michael Bentley <[EMAIL PROTECTED]> wrote: >> > >> > On Apr 24, 2007, at 6:35 AM, Antoon Pardon wrote: >> > >> >> People don't read tutorials in a strictly linear fashion. They can >> >> continue

Re: Tutorial creates confusion about slices

2007-04-25 Thread Antoon Pardon
On 2007-04-24, Michael Hoffman <[EMAIL PROTECTED]> wrote: > Really only one person has argued that the docs do not need to be > changed. The other two people seemed to think you were asking for help > rather than discussing how to revise the docs. Understandable, since > that's why most people

Re: Tutorial creates confusion about slices

2007-04-24 Thread [EMAIL PROTECTED]
Antoon Pardon wrote: > On 2007-04-24, Michael Bentley <[EMAIL PROTECTED]> wrote: > > > > On Apr 24, 2007, at 6:35 AM, Antoon Pardon wrote: > > > >> People don't read tutorials in a strictly linear fashion. They can > >> continue to later subjects and then come back here to see how things > >> tie

Re: Tutorial creates confusion about slices

2007-04-24 Thread Michael Hoffman
[Michael Hoffman] >> Personally, I do not think of slices in the way this tutorial suggests, >> but I think taking it out without replacement would not help. If you >> want to add a more accurate replacement, I think that would be better >> received than just saying that the section should be re

Re: Tutorial creates confusion about slices

2007-04-24 Thread Antoon Pardon
On 2007-04-24, Michael Hoffman <[EMAIL PROTECTED]> wrote: > Antoon Pardon wrote: > >>> Submit a patch if you want it changed. I'm sure your valuable >>> insights will greatly improve the quality of the python documentation. >> >> Fat chance, if they reason like you. > > I don't think that Micha

Re: Tutorial creates confusion about slices

2007-04-24 Thread Michael Hoffman
Antoon Pardon wrote: >> Submit a patch if you want it changed. I'm sure your valuable >> insights will greatly improve the quality of the python documentation. > > Fat chance, if they reason like you. I don't think that Michael Bentley is the documents maintainer. Are you trying to pick a fi

Re: Tutorial creates confusion about slices

2007-04-24 Thread Antoon Pardon
On 2007-04-24, Michael Bentley <[EMAIL PROTECTED]> wrote: > > On Apr 24, 2007, at 6:35 AM, Antoon Pardon wrote: > >> People don't read tutorials in a strictly linear fashion. They can >> continue to later subjects and then come back here to see how things >> tie together. So the fact that it is onl

Re: Tutorial creates confusion about slices

2007-04-24 Thread Michael Bentley
On Apr 24, 2007, at 6:35 AM, Antoon Pardon wrote: > On 2007-04-24, Michael Bentley <[EMAIL PROTECTED]> wrote: >> >> On Apr 24, 2007, at 4:47 AM, Antoon Pardon wrote: >> >>> On 2007-04-24, Michael Bentley <[EMAIL PROTECTED]> wrote: On Apr 24, 2007, at 1:39 AM, Antoon Pardon wrote: >

Re: Tutorial creates confusion about slices

2007-04-24 Thread Antoon Pardon
On 2007-04-24, Michael Bentley <[EMAIL PROTECTED]> wrote: > > On Apr 24, 2007, at 4:47 AM, Antoon Pardon wrote: > >> On 2007-04-24, Michael Bentley <[EMAIL PROTECTED]> wrote: >>> >>> On Apr 24, 2007, at 1:39 AM, Antoon Pardon wrote: >>> I suspect that if you give this explanation to someone an

Re: Tutorial creates confusion about slices

2007-04-24 Thread Michael Bentley
On Apr 24, 2007, at 4:47 AM, Antoon Pardon wrote: > On 2007-04-24, Michael Bentley <[EMAIL PROTECTED]> wrote: >> >> On Apr 24, 2007, at 1:39 AM, Antoon Pardon wrote: >> >>> I suspect that if you give this explanation to someone and explain >>> that there is also a step parameter, chances are he w

Re: Tutorial creates confusion about slices

2007-04-24 Thread Antoon Pardon
On 2007-04-24, Michael Bentley <[EMAIL PROTECTED]> wrote: > > On Apr 24, 2007, at 1:39 AM, Antoon Pardon wrote: > >> I suspect that if you give this explanation to someone and explain >> that there is also a step parameter, chances are he will answer >> correctly if you ask him, what he thinks the

Re: Tutorial creates confusion about slices

2007-04-24 Thread Michael Bentley
On Apr 24, 2007, at 1:39 AM, Antoon Pardon wrote: > On 2007-04-23, Michael Bentley <[EMAIL PROTECTED]> wrote: >> >> On Apr 23, 2007, at 7:38 AM, Antoon Pardon wrote: >> >>> The following is part of the explanation on slices in the >>> tutorial: >>> >>> The best way to remember how slices work is

Re: Tutorial creates confusion about slices

2007-04-23 Thread Antoon Pardon
On 2007-04-23, Hamilton, William <[EMAIL PROTECTED]> wrote: >> -Original Message- >> From: [EMAIL PROTECTED] > [mailto:python- >> [EMAIL PROTECTED] On Behalf Of Antoon > Pardon >> Sent: Monday, April 23, 2007 7:38 AM >> To: python-list@python.

Re: Tutorial creates confusion about slices

2007-04-23 Thread Antoon Pardon
On 2007-04-23, Michael Bentley <[EMAIL PROTECTED]> wrote: > > On Apr 23, 2007, at 7:38 AM, Antoon Pardon wrote: > >> The following is part of the explanation on slices in the >> tutorial: >> >> The best way to remember how slices work is to think of the indices as >> pointing between characters, wi

RE: Tutorial creates confusion about slices

2007-04-23 Thread Hamilton, William
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of Antoon Pardon > Sent: Monday, April 23, 2007 7:38 AM > To: python-list@python.org > Subject: Tutorial creates confusion about slices > > The following is part of the

Re: Tutorial creates confusion about slices

2007-04-23 Thread Michael Bentley
On Apr 23, 2007, at 7:38 AM, Antoon Pardon wrote: > The following is part of the explanation on slices in the > tutorial: > > The best way to remember how slices work is to think of the indices as > pointing between characters, with the left edge of the first character > numbered 0. Then the righ

Tutorial creates confusion about slices

2007-04-23 Thread Antoon Pardon
The following is part of the explanation on slices in the tutorial: The best way to remember how slices work is to think of the indices as pointing between characters, with the left edge of the first character numbered 0. Then the right edge of the last character of a string of n characters has in

Re: Tutorial creates confusion about slices

2007-04-23 Thread Antoon Pardon
On 2007-04-23, Rob Wolfe <[EMAIL PROTECTED]> wrote: > > Antoon Pardon wrote: >> The following is part of the explanation on slices in the >> tutorial: >> >> The best way to remember how slices work is to think of the indices as >> pointing between characters, with the left edge of the first charact

Re: Tutorial creates confusion about slices

2007-04-23 Thread Rob Wolfe
Antoon Pardon wrote: > The following is part of the explanation on slices in the > tutorial: > > The best way to remember how slices work is to think of the indices as > pointing between characters, with the left edge of the first character > numbered 0. Then the right edge of the last character o