Any other Python flaws?
phil hunt
philh at comuno.freeserve.co.uk
Thu Jun 14 18:47:00 EDT 2001
On Thu, 14 Jun 2001 15:46:40 -0400, Edward C. Jones <edcjones at erols.com> wrote:
>Andrew Kuchling wrote:
>
>> ... Are there any other flaws that should be added?
>
>
>It follows from some basic concepts of Python that
> "array = ([0] * 10) * 10"
>does not behave as usually intended.
I didn't know what this did before typing it in. I *expected*
it to produce an array with 100 elements, all 0, and when I
typed it in...
...I got an array with 100 elements, all 0.
I think python is OK here.
--
## Philip Hunt ##
## philh at comuno.freeserve.co.uk ##
More information about the Python-list
mailing list