Gregor Horvath <[EMAIL PROTECTED]> wrote:
>
> >>>type(['1'])
><type 'list'>
>
> >>>type(('1'))
><type 'str'>
>
>I wonder why ('1') is no tuple????
There were lots of answers, but I'm not sure I saw the "why" addressed.
Consider this:
a = (3 + 5) * 5
You really, really want (3 + 5) to be an integer, not a one-item tuple.
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
