On Sun, May 2, 2010 at 12:37 PM, VictorMiller <[email protected]> wrote:
> If I write a function in a cell of a notebook like:
>
> @interact
> def foo(a = input_box(default=0, type=Integer)):
>     # do something here
>     pass
>
> And the user enters something that cannot be coerced to Integer, then
> I get a verbose (and rather unhelpful) exception, which, as far as I
> can see, can't be caught inside of foo.  So, I would suggest that if a
> type is specified in input_box, and the coercion fails that a nicer
> looking message be given (perhaps next to the box that a specifies).
>
> Victor

Good idea.  This is now trac #8842:
http://trac.sagemath.org/sage_trac/ticket/8842

William


>
> --
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to 
> [email protected]
> For more options, visit this group at 
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org
>



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to