[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-06-17 Thread Éric Araujo
Éric Araujo added the comment: Great addition, thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-06-17 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-06-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset bb63919cde6e by Ezio Melotti in branch '2.7': #14840: Add a bit on the difference between tuples and lists. Initial patch by Zachary Ware. http://hg.python.org/cpython/rev/bb63919cde6e New changeset 3550416d83b3 by Ezio Melotti in branch '3.2': #

[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-05-21 Thread Zachary Ware
Zachary Ware added the comment: Ezio's version looks pretty good to me. About the only quibble I can think of is the removal of the example uses; they still apply and do help the point. Just tacking on "Classic examples of tuples include (x, y) coordinate pairs and database records." to the

[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-05-19 Thread Ezio Melotti
Ezio Melotti added the comment: Here's a patch against 2.7. I changed a bit the previous paragraphs to make this fit better. -- assignee: docs@python -> ezio.melotti Added file: http://bugs.python.org/file25645/issue14840.diff ___ Python tracker

[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-05-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am ok with Ezio's 3rd version. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-05-19 Thread Ezio Melotti
Ezio Melotti added the comment: I think I liked the first version more, possibly with a few minor changes: > Though tuples may seem very similar to lists, their immutability > makes them ideal for fundamentally different usage. I would drop the 'very', and I'm not sure that it's the immutabili

[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-05-18 Thread Zachary Ware
Zachary Ware added the comment: I'll go with foolhardy, or just "green" :P. I wasn't aware that this topic was quite as contentious as it seems to be. I agree that tuples and lists are similar. I was trying to keep my wording at "here's another way to look at things that you may not have tho

[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-05-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Zachary, you are brave/foolhardy to take this on;) I agree that the XXX comment should be removed. One possible resolution is to do just that, replacing it with nothing. I would note that the fuss over tuples versus lists comes from a time before iterators b

[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-05-17 Thread Ezio Melotti
Ezio Melotti added the comment: Link to the discussion: https://groups.google.com/d/msg/python-ideas/P3lEYU9u0DU/H0gcuAAJvEgJ The actual discussion about tuples starts on https://groups.google.com/d/msg/python-ideas/P3lEYU9u0DU/JW2Lq3KYA4QJ and continues with the following posts. --

[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-05-17 Thread Zachary Ware
Zachary Ware added the comment: Perhaps an added line at the end, something like 'Of course, should you need an immutable list, tuples are quite handy for that, too.'? -- ___ Python tracker __

[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-05-17 Thread R. David Murray
R. David Murray added the comment: I don't think that the suggested text contradicts that. (Especially the wording "tends to".) So I think this might be a reasonable addition, but I can see that "some people" might get upset :) -- nosy: +r.david.murray _

[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-05-17 Thread Ezio Melotti
Ezio Melotti added the comment: I personally like your suggested text, but there have been some discussion on the topic (on python-ideas iirc) and some people think that it's ok to use tuples like immutable lists, rather than just structures with heterogeneous elements similar to C's structs.

[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-05-17 Thread Zachary Ware
New submission from Zachary Ware : I was looking through the documentation source files for things I might be able to fix, and stumbled across "XXX Add a bit on the difference between tuples and lists." in Doc\tutorial\datastructures.rst. So I took a stab at adding some prose to address that c