[SciPy-user] Inconsistent function calls?

Ondrej Certik ondrej at certik.cz
Thu May 21 12:42:13 EDT 2009


On Thu, May 21, 2009 at 9:35 AM, Robert Kern <robert.kern at gmail.com> wrote:
> On Thu, May 21, 2009 at 11:29, Travis Vaught <travis at enthought.com> wrote:
>> On May 21, 2009, at 11:13 AM, Ivo Maljevic wrote:
>>
>>> ...
>>>
>>> Robert, by following this list I know that I shouldn't even try to
>>> respond to your message as
>>> you always turn out to be right, but I'll try anyway. ...
>>
>> Robert,
>>
>> Could you write some code to verify this?
>>
>> Here's a snippet off the top of my head:
>>
>> def check_robert():
>>     if 1:
>>         print "Robert is right."
>>     else:
>>         print "Robert is wrong."
>
> These days, it's been more like:
>
>  def check_robert():
>    if random() > 0.5:
>      print "Robert is right."
>    else:
>      print "Robert is wrong."

what about:

def check_enthought():
  if 1:
    print "Robert is right."
  else:
    print "Travis is right."

O.



More information about the SciPy-User mailing list