Just out of curiosity:  What is "a"?

Guillermo

On Tue, 26 Jan 2021 at 09:29, Vincent Delecroix <20100.delecr...@gmail.com>
wrote:

>
> And what should be thought about "4.0 in ZZ" ?
>
> Even more fun
>
> sage: a in ZZ
> False
> sage: 4 / a in ZZ
> False
> sage: 4.0 / a in ZZ
> True
>
> Does Sage even have any clear specification for "x in P"?
>
> Concerning input that are of the wrong type, it is common
> in Python (?) to just throw error
>
>  >>> list(range(4))
> [0, 1, 2, 3]
>  >>> list(range(4.0))
> Traceback (most recent call last):
> ...
> TypeError: 'float' object cannot be interpreted as an integer
>
> Vincent
>

-- 
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 sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CANnG18_hXZ%3Dcr088zKc1%2Bez3GpQ7yb%3DVGC8U14v1rWpkbk_q2w%40mail.gmail.com.

Reply via email to