Hi, I noticed that fractions in nested list comprehensions are apparently interpreted in the Python way. So, with the input [[j/k for j in range(1,k+1)] for k in range(1,5)] I get [[1], [0, 1], [0, 0, 1], [0, 0, 0, 1]] . With a single level there's no such issue: [j/3 for j in range(1,4)] returns [1/3, 2/3, 1] . For now I'm dealing with it by enclosing the variables in Integer(). Is there any better solution?
thanks, Makoto -- You received this message because you are subscribed to the Google Groups "sage-support" 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-support. For more options, visit https://groups.google.com/d/optout.
