In article <m34rveehiy.fsf at atrus.jesus.cam.ac.uk>, Michael Hudson <mwh21 at cam.ac.uk> writes >Robin Becker <robin at jessikat.fsnet.co.uk> writes: > >> can someone jog my cpu to solve a problem with this C fragment >[snip] >> >> so I'm getting the attribute ok and it is a float (checked in >> python) so why does my PyArg_Parse of v fail? > >Works for me (well, something similar does). What exception is >getting set? If it's > >Traceback (most recent call last): > File "<stdin>", line 1, in ? >TypeError: bad argument type for built-in operation > >then you probably haven't passed in a float. IOW, I don't think the >problem's in the code you posted. > >Could be wrong, of course. > >CHeers, >M. > I just get 0 back from the PyArg_Parse so have to assume it didn't work and as the value printed out suggests it hasn't put anything into r. -- Robin Becker
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4