The behavior of len is just a CPython implementation detail. One that is perfectly fine if you have actual containers but really crappy if you want to do math. Its not like we would break len, it is still in line with the Python docs.
On Tuesday, April 14, 2015 at 12:25:58 PM UTC+2, vdelecroix wrote: > > On 14/04/15 12:20, Volker Braun wrote: > > The output of the magic __len__ method must be a (non-long) int in > CPython. > > So > 64-bit integers are not supported. > > > > On the commandline we should probably overwrite len with a version that > > looks at cardinality() first.... > > I am very against overriding more Python builtins. > > Vincent > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
