Currently i need to transfer data between C++ and Python applications.
As long as Thrift doesn't work with unsigned int
, what's the best way to transfer unsigned
?
Is there only way like:
Should i do it manually all the time or there are already some 3rd party libraries?
How do i do it in the case of C++/Python applications? In C++/C++ applications i can just static_cast<signed/unsigned>(unsigned/signed)
for conversion, but what about Python?
There are two options that make sense (and a bunch of others):
The "bunch of others" include
But again, I'd recommend 1. or 2.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.