Re: PyArg_ParseTuple and float/double - Solution

Discussion in 'Python' started by Michael Gross, Jul 30, 2003.

  1. > it seems, that I cant use float and double arguments with
    > PyArg_ParseTuple:

    The problem was, that there was an error from another PyArg_ParseTuple
    in another method before, so PyError_Occured() was true and
    PyArg_ParseTuple test for this when parsing a double or float argument.
    So a call to PyErr_Clear helps.

    thx
    Michael
     
    Michael Gross, Jul 30, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. JKop
    Replies:
    4
    Views:
    16,525
  2. Sydex
    Replies:
    12
    Views:
    6,503
    Victor Bazarov
    Feb 17, 2005
  3. bd
    Replies:
    0
    Views:
    632
  4. ma740988
    Replies:
    1
    Views:
    313
    Phlip
    Apr 8, 2006
  5. Carsten Fuchs
    Replies:
    45
    Views:
    1,553
    James Kanze
    Oct 8, 2009
Loading...

Share This Page