Re: Please provide a better explanation of tuples and dictionaries

2013-02-02 Thread Chris Angelico
On Sun, Feb 3, 2013 at 6:14 PM, Michael Torrie wrote: > TL;DR: I find your list freezing proposal to be needlessly complicated. > No the burden of proof is not on me to explain why tuples are so. We have a list-freezing mechanism already. >>> list=[1,2,3,'logical'] >>> staticList=tuple(list) E

Re: Please provide a better explanation of tuples and dictionaries

2013-02-02 Thread Michael Torrie
On 02/02/2013 10:20 PM, Rick Johnson wrote: > *school-bell* I'm already regretting typing this, but really? The term, "tuple," was used rather consistently all through my university years. And Python's use of it is consistent with how it is used all through computer science. And for that matter

Re: Please provide a better explanation of tuples and dictionaries

2013-02-02 Thread Rick Johnson
# Quote: Daniel Rouse Jr. # # To me, this looks like an array. Is tuple just the # # Python name for an array?

Re: Please provide a better explanation of tuples and dictionaries

2013-01-30 Thread rusi
On Jan 30, 7:55 am, "Daniel W. Rouse Jr." wrote: > Or, can an anyone provide an example of > more than a three-line example of a tuple or dictionary? Have you seen this byt the creator of python -- GvR? http://www.python.org/doc/essays/graphs.html > I have recently started learning Python (2.7.3

Re: Please provide a better explanation of tuples and dictionaries

2013-01-29 Thread Steven D'Aprano
On Tue, 29 Jan 2013 22:14:42 -0800, Daniel W. Rouse Jr. wrote: > "John Gordon" wrote in message > news:keaa9v$1ru$1...@reader1.panix.com... >> A tuple is a linear sequence of items, accessed via subscripts that >> start at zero. >> >> Tuples are read-only; items cannot be added, removed, nor rep

Re: Please provide a better explanation of tuples and dictionaries

2013-01-29 Thread Chris Angelico
On Wed, Jan 30, 2013 at 5:14 PM, Daniel W. Rouse Jr. wrote: > To me, this looks like an array. Is tuple just the Python name for an array? Not quite. An array is closer to a Python list - a tuple can be thought of as a "frozen list", if you like. Lists can be added to, removed from, and changed i

Re: Please provide a better explanation of tuples and dictionaries

2013-01-29 Thread Daniel W. Rouse Jr.
"John Gordon" wrote in message news:keaa9v$1ru$1...@reader1.panix.com... In "Daniel W. Rouse Jr." writes: I have recently started learning Python (2.7.3) but need a better explanation of how to use tuples and dictionaries. A tuple is a linear sequence of items, accessed via subscripts tha

Re: Please provide a better explanation of tuples and dictionaries

2013-01-29 Thread John Gordon
In "Daniel W. Rouse Jr." writes: > I have recently started learning Python (2.7.3) but need a better > explanation of how to use tuples and dictionaries. A tuple is a linear sequence of items, accessed via subscripts that start at zero. Tuples are read-only; items cannot be added, removed, n

Re: Please provide a better explanation of tuples and dictionaries

2013-01-29 Thread Mitya Sirenef
On 01/29/2013 09:55 PM, Daniel W. Rouse Jr. wrote: Hi all, > > I have recently started learning Python (2.7.3) but need a better explanation of how to use tuples and dictionaries. > > I am currently using "Learning Python" by Mark Lutz and David Ascher, published by O'Reilly (ISBN 1-56592-464

Re: Please provide a better explanation of tuples and dictionaries

2013-01-29 Thread Chris Angelico
On Wed, Jan 30, 2013 at 2:42 PM, Daniel W. Rouse Jr. wrote: > "Chris Angelico" wrote in message > news:mailman.1197.1359515470.2939.python-l...@python.org... >> Have you checked out the online documentation at >> http://docs.python.org/ ? That might have what you're looking for. >> > I'll check t

Re: Please provide a better explanation of tuples and dictionaries

2013-01-29 Thread Daniel W. Rouse Jr.
"Chris Angelico" wrote in message news:mailman.1197.1359515470.2939.python-l...@python.org... On Wed, Jan 30, 2013 at 1:55 PM, Daniel W. Rouse Jr. wrote: I am currently using "Learning Python" by Mark Lutz and David Ascher, published by O'Reilly (ISBN 1-56592-464-9)--but I find the explanation

Re: Please provide a better explanation of tuples and dictionaries

2013-01-29 Thread Chris Angelico
On Wed, Jan 30, 2013 at 1:55 PM, Daniel W. Rouse Jr. wrote: > I am currently using "Learning Python" by Mark Lutz and David Ascher, > published by O'Reilly (ISBN 1-56592-464-9)--but I find the explanations > insufficient and the number of examples to be sparse. I do understand some > ANSI C progra

Please provide a better explanation of tuples and dictionaries

2013-01-29 Thread Daniel W. Rouse Jr.
Hi all, I have recently started learning Python (2.7.3) but need a better explanation of how to use tuples and dictionaries. I am currently using "Learning Python" by Mark Lutz and David Ascher, published by O'Reilly (ISBN 1-56592-464-9)--but I find the explanations insufficient and the numb