[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Python report typeError of argument for my block
From: |
Alex Zhang |
Subject: |
Re: [Discuss-gnuradio] Python report typeError of argument for my block |
Date: |
Thu, 15 Nov 2012 21:39:14 -0600 |
Thanks Josh,
Just found that my C++ interface is using type of uint64_t while I passed the data of time_t in python. And the python/SWIG cannot convert the time_t to uint64_t automatically, unlike in C++...
Changed the C++ interface to time_t and make the type conversion within the C++ code. The constructor works in python now.
But we do need to pay attention when c++ types is not recognized in python, assuming your suggestion is a solution. I will try this later for possible case.