Re: bug in string.is_integer
- On Sat, Jun 15, 2002 at 12:15:49AM -0300, Daniel F Moisset wrote:
> The method `is_integer' of class STRING returns True when applied toTrue.
> strings "+" and "-", which don't satisfy the grammar specified in tis
> header comment.
> the line
> if state /= 0 and then state /= 4 then
> should be changed to
> if state /= 0 and then state /= 4 and then state /= 1 then
> Daniel F Moisset
The state goes to 1, but the block for 1 is never executed
as i > count is true.
Thanks for the notice!
I suspect the same is true for is_double.
I'll correct this bug and send a corrected version
of string.e made from the current beta (b074beta22) today
Arno Wagner, Communication Systems Group, ETH Zuerich, wagner@...
GnuPG: ID: 1E25338F FP: 0C30 5782 9D93 F785 E79C 0296 797F 6B50 1E25 338F
For every complex problem there is an answer that is clear, simple,
and wrong. -- H L Mencken