Travis Jensen <[EMAIL PROTECTED]> writes:
> I wouldn't call it unfortunate. The list semantics follow LISP's
> semantics far more closely than C's array semantics. I would hazard
> to guess that they are called lists because that is what every
> functional language calls them and this aspect of p
On Jan 18, 2008, at 2:48 AM, [EMAIL PROTECTED] wrote:
> J. Peng>why perl call it array and python call it list?<
>
> Unfortunate naming, I'd say. Calling list a dynamic array is silly,
> despite all the things you may say about abstract data types having
> the correct methods, etc.
I wouldn't
> Paddy:
>
> > I guess 'under the hood' Python (& Perl?), arrays might be more like
> > an implementation of what the C programmer might call a linked list,
> > but even then there are differences as most linked list examples
> > given in C tutorials are lists of the same type of object,
>
>
J. Peng>why perl call it array and python call it list?<
Unfortunate naming, I'd say. Calling list a dynamic array is silly,
despite all the things you may say about abstract data types having
the correct methods, etc.
Paddy:
> I guess 'under the hood' Python (& Perl?), arrays might be more like
On Jan 18, 8:18 am, "J. Peng" <[EMAIL PROTECTED]> wrote:
> > On Jan 18, 3:23 am, "J. Peng" <[EMAIL PROTECTED]> wrote:
>
> >> what's the difference between an array and a list in python?
> >> I see list has all features of array in C or perl.
> >> so please tell me.thanks.
>
> > If you are new to Py
> On Jan 18, 3:23 am, "J. Peng" <[EMAIL PROTECTED]> wrote:
>
>> what's the difference between an array and a list in python?
>> I see list has all features of array in C or perl.
>> so please tell me.thanks.
>>
>
> If you are new to Python, then where other languages may reach for an
> 'ar
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> On Fri, 18 Jan 2008 15:05:23 +1100, Ben Finney wrote:
> > In Python, 'list' is a basic built-in type. Python has no 'array'
> > type [...]
> Did you forget the array module?
Yes.
--
\"Always code as if the guy who ends up maintaining your c
On Jan 18, 3:23 am, "J. Peng" <[EMAIL PROTECTED]> wrote:
> what's the difference between an array and a list in python?
> I see list has all features of array in C or perl.
> so please tell me.thanks.
If you are new to Python, then where other languages may reach for an
'array', Python programs mi
On Fri, 18 Jan 2008 15:05:23 +1100, Ben Finney wrote:
> "J. Peng" <[EMAIL PROTECTED]> writes:
>
>> what's the difference between an array and a list in python?
>
> In Python, 'list' is a basic built-in type. Python has no 'array' type,
> though that term is often used to refer to the 'array' typ
"J. Peng" <[EMAIL PROTECTED]> writes:
> what's the difference between an array and a list in python?
In Python, 'list' is a basic built-in type. Python has no 'array'
type, though that term is often used to refer to the 'array' type
defined in Numeric Python (which is not part of the standard lib
what's the difference between an array and a list in python?
I see list has all features of array in C or perl.
so please tell me.thanks.
--
http://mail.python.org/mailman/listinfo/python-list
11 matches
Mail list logo