Thank you, Jeroen ! That is indeed much better. I'm still a bit wet behind 
the ears about Python...

Too bad I didn't see this until after posting this 
<!topic/sage-support/hwt02q1N6ds> ...

Emmanuel Charpentier

Le mercredi 12 octobre 2016 08:01:54 UTC+2, Jeroen Demeyer a écrit :
> On 2016-10-11 22:07, William Stein wrote: 
> >      try: return abs(gamma(x+I*y)) 
> >      except: return 0 
> That is almost never what you want, since this will also catch things 
> like KeyboardInterrupt. Better use 
> try: 
>      ... 
> except Exception: 
>      ... 

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 post to this group, send email to
Visit this group at
For more options, visit

Reply via email to