Any list larger than any number by way of dimensions?
danb_83 at yahoo.com
Wed Jun 30 10:08:57 CEST 2004
Harald Massa <cpl.19.ghum at spamgourmet.com> wrote in message news:<Xns9516E5F85104Ecpl19ghumspamgourmet at 188.8.131.52>...
> > data = [ ... some list ]
> > buffersize = min(data,10)
> > Of course what I really wanted was
> > buffersize = min(len(data),10)
> if my memory suits me right, when everything else fails, Python is just
> comparing the IDs of the objects. IDs are connected to the memory
That's true for user-defined objects, but for built-in types the rule is
None < number < list < string < tuple
Which is consistent but wrong.
More information about the Python-list