I've fiddled a bit with automatic controls for different types:
https://github.com/sagemath/sagecell/commit/6612cabb355699638b033567fc1cb1cdf7a7c43a

I dislike the distinction in behaviour between tuples/lists/generators, 
especially when it is dependent on length, but tried to keep the logic that 
presumably used to work at some point. Namely:
- range used to return a list, so I treat it as a list
- there was treatment for GeneratorType and 1..10 now returns generator 
(which is a different thing, not sure if it was the case before), so I 
treat it the same way as Generator type.
Check the behaviour on this code:

@interact
def f(n=range(2,7)):
    @interact
    def g(a=range(n), b=list(range(n)), c=(0..n), d=tuple(range(n))):
        print(a, b, c, d)

-- 
You received this message because you are subscribed to the Google Groups 
"sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-cell/3121ae41-c524-490c-8bd4-cb5ba11c73e0o%40googlegroups.com.

Reply via email to