Mercurial > hg > vampy-host
comparison native/PyPluginObject.cpp @ 147:8b08cbbdfe77
Python 3: make error message note that initialise args must be ints; fix erroneous float arg
author | Chris Cannam |
---|---|
date | Tue, 08 Nov 2016 11:41:09 +0000 |
parents | aa96f69e2f14 |
children |
comparison
equal
deleted
inserted
replaced
146:f87e711308e4 | 147:8b08cbbdfe77 |
---|---|
352 if (!PyArg_ParseTuple (args, "nnn", | 352 if (!PyArg_ParseTuple (args, "nnn", |
353 &channels, | 353 &channels, |
354 &stepSize, | 354 &stepSize, |
355 &blockSize)) { | 355 &blockSize)) { |
356 PyErr_SetString(PyExc_TypeError, | 356 PyErr_SetString(PyExc_TypeError, |
357 "initialise() takes channel count, step size, and block size arguments"); | 357 "initialise() takes channel count (int), step size (int), and block size (int) arguments"); |
358 return 0; | 358 return 0; |
359 } | 359 } |
360 | 360 |
361 PyPluginObject *pd = getPluginObject(self); | 361 PyPluginObject *pd = getPluginObject(self); |
362 if (!pd) return 0; | 362 if (!pd) return 0; |