Building python extension: Pass binary string (bytes) from python to codon #645
-
|
Hello. I am trying to write python extension in codon. The idea is to decode binary data in codon. As I understand, codon does not support unicode. So, when I try to write a function receiving string type (str), it wants 'str' parameter from python, but handles it as if it was 'bytes'. So question is: Is there is a way to pass binary string (bytes) to/from codon python extension? Examples: Python: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi @vsevolod-fedorov, we should be able to support this by just converting the bytes object to a Codon string. I've created a PR for this here: #646 -- should be able to get this into the next release. |
Beta Was this translation helpful? Give feedback.
Hi @vsevolod-fedorov, we should be able to support this by just converting the bytes object to a Codon string. I've created a PR for this here: #646 -- should be able to get this into the next release.