pybind / pybind/pybind11

Export a class used as a metaclass

Open
#1,319 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
18k
Forks
2.3k
Avg merge
5d 17h
Merged PRs (30d)
10

Description

Hello,

I'm migrating my project from Boost.Python to pybind11. What I wanted is exactly what's done in this post: https://stackoverflow.com/a/9166298/1614576

I tried almost every possible combination and read all issues, I just cannot find the proper way to do it. Anyone has any idea about this?

Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Stack Overflow example and compare it with pybind11's documented support for exporting classes used as metaclasses. The issue names no repository file, test, or entry point; done would require identifying and documenting or implementing a supported approach for the Boost.Python migration scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.