Hi,
On Aug 17, 2011, at 00:20 , pong wrote:
> [radical(k) for k in [1..30]] produces the expected list however
>
> [radical(k) for k in range(1,31)] rises an error
>
> AttributeError: 'int' object has no attribute 'factor'
The problem here is the distinction between Python 'int's and Sage 'Int
Hum...
[radical(k) for k in [1..30]] produces the expected list however
[radical(k) for k in range(1,31)] rises an error
AttributeError: 'int' object has no attribute 'factor'
Wouldn't it be nice if the 2nd comprehension also give the desire
list? Any reason why shouldn't SAGE take that?
--