> How could you not notice?   If I do is_Integer I get a big DeprecationWarning:
> Does your Sage not do that?

The reason I did not notice it is that is_Integer() was in the body of
a main loop and no warnings were printed.

For example,

[n for n in range(0,10) if is_Integer(n+1)]

returns

[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

However

[n for n in range(0,10) if is_Integer(n)]

returns null list

[ ]

In the first case the answer was correct and in the second case the
answer was wrong. In both cases, please note no warning was printed.
My sage version is 3.4 and using it on Mac OS X.

I am using Robert's solution. It seems to work well.

Thanks,
Nirmal


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to