[C++-sig] wrap union types with boost.python
Stefan Seefeld
stefan at seefeld.name
Sun Jan 16 10:18:25 EST 2022
Hi Malte,
the first step is for you to decide what semantics you want `someStruct`
to carry, which would then translate into an API. This is also a
prerequisite for using this in pure C++, i.e. without any Python
bindings. It just becomes more obvious if you want to think about
accessing this in a pythonic way.
So, can you rephrase your question by describing `someStruct` in terms
of behaviour rather than structure, i.e. in an "object-oriented" way ?
Stefan
--
...ich hab' noch einen Koffer in Berlin...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/cplusplus-sig/attachments/20220116/fc5acab9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .signature.png
Type: image/png
Size: 2754 bytes
Desc: not available
URL: <https://mail.python.org/pipermail/cplusplus-sig/attachments/20220116/fc5acab9/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stefan.vcf
Type: text/vcard
Size: 4 bytes
Desc: not available
URL: <https://mail.python.org/pipermail/cplusplus-sig/attachments/20220116/fc5acab9/attachment.bin>
More information about the Cplusplus-sig
mailing list