Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

C++/Python Binding API #59

Closed
isaachier opened this issue Nov 8, 2017 · 1 comment
Closed

C++/Python Binding API #59

isaachier opened this issue Nov 8, 2017 · 1 comment

Comments

@isaachier
Copy link

I've been experimenting using pybind11 to wrap my C++ tracer (https://github.com/isaachier/cpp-client) as a Python tracer. The question I have for this project is whether or not I need to inherit from these classes in order to be opentracing-python compliant. Seeing as Python subclasses are somewhat unnecessary because of Python's duck typing, I'm wondering how far I should pursue subclassing versus just implementing the API without the inheritance.

@isaachier
Copy link
Author

Actually, have a way of faking the isinstance check here: pybind/pybind11#1170.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant