On 2009-09-02 11:28 AM, Mark Dickinson wrote:
On Sep 2, 2:51 pm, Thomas Philips<tkp...@gmail.com>  wrote:
def student_t(df):         # df is the number of degrees of freedom
     if df<  2  or int(df) != df:
        raise ValueError, 'student_tvariate: df must be a integer>  1'

By the way, why do you exclude the possibility df=1 here?

Similarly, requiring df to be an integer is extraneous.

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to