Comments (4)
Hi Nilufar,
your sample code seems very incomplete, as the error you are reporting refers to a class "MYNAMESPACE::Context", which is nowhere to be seen in the code snippet you pasted.
from python.
Hi,
Apologies. I've updated the error to the one thrown by my simple test case above.
I've found that you can pass a vector object to a python function from C++ directly, without the need for a boost python list, by exposing the vector using boost python and the vector_indexing_suite. Is there a way I can pass a set? My understanding is that boost python supports vectors, maps and hash_maps only.
from python.
I'm sorry, I don't see what update you are talking about. As I mentioned, the code snippet from your previous comment is incomplete and wouldn't compile. (There is no declaration or definition of the "getSquare" member function anywhere, for example.
Please submit a minimal self-contained test case so I can attempt to help.
To answer your question: Boost.Python currently has no support for set
, simply because no-one has added that yet. (It should be straight forward, and I'll try to get to it ASAP.)
from python.
I'm going to close this issue as the code you posted is still invalid / incomplete. Feel free to re-open when you have a minimal self-contained test case.
from python.
Related Issues (20)
- `no_proxy_helper` should not access `Container::value_type`
- Boost.Python doesn't build under MSVC... HOT 4
- NULL ptr deref in instance_dealloc
- About `No Python class registered for C++ class`,throw errors. HOT 1
- Is it possible to programmatically retrieve C++ class name / Python class name mapping ? HOT 1
- __qualname__ on embedded/inner classes is wrong
- Outdated reference to bjam in examples dir
- Broken URL in build/Jamfile HOT 2
- Qt binding to python - undefined symbol HOT 2
- Compilation failure using numpy 2.0.0b1 HOT 4
- Is Boost.Python is bound to specific python version? HOT 1
- Jupyter Kernel Notebook Dies After Starting Threaded Class HOT 4
- Cannot import Boost.Python from Python 3.11 HOT 4
- Minimal Boost Python example not working HOT 7
- Segfault when importing Python Module HOT 1
- How to Properly Expose Enum Comparison Operators to Python Using Boost.Python? HOT 1
- Expose shared_ptr to const
- missing lib boost_numpy312-vc143-mt-x64-1_85.lib HOT 1
- Boost Python 1.83.0 doesn't support NumPy 2.0
- Move operators for make_tuple and list::append?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python.