Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: PyArg_ParseTuple and float/double - Solution

Reply
Thread Tools

Re: PyArg_ParseTuple and float/double - Solution

 
 
Michael Gross
Guest
Posts: n/a
 
      07-30-2003
> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: PyArg_ParseTuple for parsing list and dictionary arguments Gabriel Genellina Python 0 09-16-2008 08:02 AM
PyArg_ParseTuple and dict sjh@gmail.com Python 4 06-06-2005 02:36 AM
PyArg_ParseTuple Patrick Stinson Python 1 06-09-2004 11:34 PM
PyArg_ParseTuple, test for SEVERAL possibilities Skip Montanaro Python 1 06-07-2004 08:22 PM
Re: Python/C API - PyArg_ParseTuple problem ? =?iso-8859-1?b?IkrpcvRtZQ==?= Laheurte Python 1 08-22-2003 09:15 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57