James Stroud <[EMAIL PROTECTED]> wrote:
...
> > I wonder if its the philosophical difference between:
> >
> > "Anything not expressly allowed is forbidden"
> >
> > and
> >
> > "Anything not expressly forbidden is allowed" ?
> >
> > - Hendrik
>
> The latter is how I interpret any religious
Hendrik van Rooyen wrote:
> "Paul Hankin" wrote:
>
>> If everything else is equal, use tuples.
>
> Interesting point of view - mine is just the opposite.
>
> I wonder if its the philosophical difference between:
>
> "Anything not expressly allowed is forbidden"
>
> and
>
> "Anything not expr
"Paul Hankin" wrote:
> If everything else is equal, use tuples.
Interesting point of view - mine is just the opposite.
I wonder if its the philosophical difference between:
"Anything not expressly allowed is forbidden"
and
"Anything not expressly forbidden is allowed" ?
- Hendrik
--
http
On 2007-10-21, Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> A note on terminology: the things inside curly brackets {} are called
> dictionaries, or dicts, not directories. And the things you use to store
> data in dictionaries are called keys, not indexes:
Thanks for catching that. Kids, d
On Sat, 20 Oct 2007 12:43:31 +, Steve Lamb wrote:
> The quick answer is that tuples can be indexes into directories
> while lists cannot.
A note on terminology: the things inside curly brackets {} are called
dictionaries, or dicts, not directories. And the things you use to store
data in d
On Oct 20, 11:15 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> what is the difference between the two kinds of brackets?
> I tried a few examples but I can't make out any real difference:
The main difference in the language between tuples and lists is that
tupl
On 2007-10-20, James Stroud <[EMAIL PROTECTED]> wrote:
>The long of it is that there are deep computer-science
> issues that distinguish the two and the differences become more
> important the more you know (presumably). However, I have been
> programming this language for 5 years, and I still c
[EMAIL PROTECTED] wrote:
> hi
>
> what is the difference between the two kinds of brackets?
> I tried a few examples but I can't make out any real difference:
> Are these two kinds of brackets mean the same thing in the "list"
> context? Thanks.
The square
On Saturday 20 October 2007, [EMAIL PROTECTED] wrote:
> hi
>
> what is the difference between the two kinds of brackets?
> I tried a few examples but I can't make out any real difference:
Lists are mutable, tuples aren't:
Python 2.4.4 (#2, Aug 16 2007, 00:34:54)
[GCC 4.1.
hi
what is the difference between the two kinds of brackets?
I tried a few examples but I can't make out any real difference:
lst = [10, 20, 30]
print lst[0]
print lst[2]
print lst
lst = (10, 20, 30)
print lst[0]
print lst[2]
print lst
lst = [10, 20, 40, "string", 302.234]
print
10 matches
Mail list logo