Hi Robert,
It looks like you have found bug - the first one in many months! I'm
not sure if it is in our code, or the App Engine sandbox code, but I
will report it, and see if we can get it fixed.
Meanwhile, you can write code that returns lists instead of tuples.
That shouldn't limit your solutions too much.
Keep up the good work, and let me know if you find any other problems.
-- Dave
Robert wrote:
>
> Hi,
>
>
>
> At first I would like to say that PyKata is a good initiative.
>
>
>
> Secondly I have a problem. When I enter the following code into the
> range(min,max) problem:
> def minmax(numList):
>
> if (not numList) or (not filter(lambda x: x.isalpha(), str(numList))
> == ""):
>
> return tuple([None, None])
>
> return tuple([min(numList), max(numList)])
>
> I get this error:
> Traceback (most recent call last):
>
> File
> "/base/data/home/apps/pykata/5.341839373528784463/pykata/views.py",
> line 201, in run
>
> results, solved = execute_test_cases(request, test_cases, g)
>
> File
> "/base/data/home/apps/pykata/5.341839373528784463/pykata/views.py",
> line 71, in execute_test_cases
>
> li.append([call, expected, "%r" % got, status])
>
> TypeError: not all arguments converted during string formatting
>
>
>
> Even if I enter the following code:
> def minmax(numList):
>
> return tuple([1,2])
>
> I still get the exact same error.
>
>
>
--
You received this message because you are subscribed to the Google Groups "PyWhip" group.
To post to this group, send email to
pyw...@googlegroups.com.
To unsubscribe from this group, send email to
pywhip+un...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/pywhip?hl=en.