Loading ...
Sorry, an error occurred while loading the content.

Re: bug in string.is_integer

Expand Messages
  • Arno Wagner
    ... True. The state goes to 1, but the block for 1 is never executed as i count is true. Thanks for the notice! Dominique: I suspect the same is true for
    Message 1 of 2 , Jun 15, 2002
    • 0 Attachment
      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 to
      > 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
      >

      True.

      The state goes to 1, but the block for 1 is never executed
      as i > count is true.

      Thanks for the notice!


      Dominique:

      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
      or tomorrow.

      Regards,
      Arno
      --
      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
    Your message has been successfully submitted and would be delivered to recipients shortly.