Coder Social home page Coder Social logo

Boost Python List Append about python HOT 4 CLOSED

boostorg avatar boostorg commented on August 18, 2024
Boost Python List Append

from python.

Comments (4)

stefanseefeld avatar stefanseefeld commented on August 18, 2024

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.

tfgsupport avatar tfgsupport commented on August 18, 2024

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.

stefanseefeld avatar stefanseefeld commented on August 18, 2024

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.

stefanseefeld avatar stefanseefeld commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.