[Tutor] pass tuples to user defined function(beginner)
Dave Angel
d at davea.name
Tue Nov 29 03:59:40 CET 2011
1. Please post messages to the list, a private response is not
appropriate unless it's just a thanks, or other private msg. Easiest
way is probably to use Reply-All.
2. Don't top-post. Put your responses AFTER whatever you're quoting.
It's a forum policy, for most usenet groups.
On 11/28/2011 01:45 PM, Mayo Adams wrote:
> Thanks for your reply. I didn't say Python had a type called "tuple
> strings", just that the lines in the file were tuples, and that the
> elements of each tuple were strings. I suppose that is what I should
> have said.
Still wrong on both counts. A tuple does not and cannot exist in such a
file. And the original tuple must have consisted of a string and a number.
> If I knew how to avoid the parenthesis, I would have, and it is
> helpful to know that there is nothing meaningful about the
> parentheses, as you say. Ill try to find a way to write the data to
> the file without the parentheses.
The parentheses is only part of the problem. You still haven't defined
what constraints you had on the data in those tuples. If you do, we can
suggest various ways to store the data so that it's easy, efficient,
and/or possible to retrieve it again.
Now since your message was out of order, I had to delete all the rest of
the history.
--
DaveA
More information about the Tutor
mailing list