On 2017-02-22 10:17, Bruno Grenet wrote: > The output line for `type((1,2,3))` is different in Python2.x and > Python3.x: `<type 'tuple'>` versus `tuple`. One solution for your > doctests is to use `isinstance`. Your doctest may become: > > ``` > sage: isinstance(k, tuple), isinstance(v, Integer) > (True, True) > ```
isinstance would still result in True if the result is a class derived from tuple. It is now <... 'tuple'> Best Daniel -- 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 sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.