[mod_python] R: servlet possible little bug

Manera, Villiam vmanera at manord.com
Tue Aug 3 11:21:42 EDT 2004


Date: Mon, 02 Aug 2004 11:23:47 -0400
From: Jorey Bump <list at joreybump.com>
Subject: Re: [mod_python] servlet possible little bug?
To: mod_python user mailing list <mod_python at modpython.org>
Message-ID: <410E5C83.9090104 at joreybump.com>
Content-Type: text/plain; charset=us-ascii; format=flowed

Jorey Bump wrote:

>     assert isinstance(default, (list, dict, str)),\
              ^ missing left parenthesis

Without left parenthesis it work fine. with parenthesis the assert dont'
work properly.

in my previous example I call the assert with a string and it print ok
after with a number and it also print ok instead of raise error.

without left parenthesis it work properly, it print ok with string, but it
raise error with number.

for me servlet.py has to be corret in order to work properly.

Villiam



More information about the Mod_python mailing list