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 in.

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 that there may

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 remember how slices work is to

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 covered in

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 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 | +---+---+---+---+---+ 0 1 2 3 4

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 | p | A |

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 come

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 to later subjects and

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 But that is

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, since

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 2 3

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 ... +---+---+---+---+---+ | H | e | l | p |

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 Bentley [EMAIL PROTECTED] wrote

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 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 to

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 could

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 -3 -2

Re: Tutorial creates confusion about slices

2007-04-24 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, with the left

Re: Tutorial creates confusion about slices

2007-04-24 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.org Subject: Tutorial creates confusion about slices 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 to think of the

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 following

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 will answer

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 and explain that there

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: I suspect that if you

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 only

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 fight

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 Michael Bentley is

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 removed.

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 together. So the

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 of a

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 character numbered

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 right

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 explanation on slices in the