Roundup Robot devn...@psf.upfronthosting.co.za 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
Ezio Melotti ezio.melo...@gmail.com added the comment:
Fixed, thanks for the patch!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14840
Éric Araujo mer...@netwok.org added the comment:
Great addition, thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14840
___
___
Zachary Ware zachary.w...@gmail.com 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
Ezio Melotti ezio.melo...@gmail.com 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
Terry J. Reedy tjre...@udel.edu added the comment:
I am ok with Ezio's 3rd version.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14840
___
___
Ezio Melotti ezio.melo...@gmail.com 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
Zachary Ware zachary.w...@gmail.com 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
New submission from Zachary Ware zachary.w...@gmail.com:
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
Ezio Melotti ezio.melo...@gmail.com 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
R. David Murray rdmur...@bitdance.com 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
Zachary Ware zachary.w...@gmail.com 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 rep...@bugs.python.org
Ezio Melotti ezio.melo...@gmail.com 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
Terry J. Reedy tjre...@udel.edu 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
14 matches
Mail list logo