[SciPy-user] Inconsistent function calls?

Ondrej Certik ondrej@certik...
Thu May 21 11:42:13 CDT 2009


On Thu, May 21, 2009 at 9:35 AM, Robert Kern <robert.kern@gmail.com> wrote:
> On Thu, May 21, 2009 at 11:29, Travis Vaught <travis@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