Search Discussions
-
I thought I'd post this SO question here as well, thanks: I exposed boost::gregorian::date with the following: date_from_python_date{}; to_python_converter<date, date_to_python_date, true {}; where ...
MM
Sep 7, 2015 at 10:02 pm
Sep 7, 2015 at 10:02 pm -
I have a c++ class T that I succesfully expose via: class_<T, T* ... later on, I have struct S { const T* underlying; }; class_<S,S* ("S"). .def_readonly("underlying", &S::underlying) ; s.underlying ...
MM
Sep 5, 2015 at 3:40 pm
Sep 9, 2015 at 8:04 am -
I expose the return type of a C++ function that is a pair of strings with the following snippet: to_python_converter< std::pair<std::string, std::string , Converter (); Later, I have a unrelated C++ ...
MM
Aug 28, 2015 at 11:49 am
Aug 28, 2015 at 3:42 pm -
Hi everyone, I have what I assume is a fairly basic or naive question, but I'm still quite new to Boost.Python so after scouring the documentation fruitlessly I need to turn to community wisdom. The ...
Jeremy Murphy
Aug 18, 2015 at 8:38 am
Aug 18, 2015 at 9:41 pm -
Hi, I'm reviewing the Boost.Python tutorial, and I'm stumbling over the section on "Virtual Functions with Default implementations" ...
Stefan Seefeld
Aug 17, 2015 at 12:03 pm
Aug 17, 2015 at 9:44 pm -
I have the following class: class T { }; // T has been exposed to python with class_ and free function: void add_T( T* ); Ownership of the T* is taken by this C++ function. If I create an instance of ...
MM
Aug 13, 2015 at 9:24 am
Aug 13, 2015 at 4:09 pm -
Hi. I am trying (off and on, because it would be useful, but I am not quite there yet) to find a way to make Boost.Python cooperate with Boost.Variant. I sort of managed to make a variant behave like ...
Mario Lang
Aug 10, 2015 at 3:00 pm
Aug 15, 2015 at 12:16 pm -
Hi all, I have updated the Boost.Python documentation. The new docs are available at http://boostorg.github.io/python. (For any issues you notice please submit a bug report at ...
Stefan Seefeld
Aug 5, 2015 at 12:23 pm
Aug 6, 2015 at 4:12 pm -
I am trying to bind a C++ class but python is reporting there is no matching signature for two of the methods which are I am trying to bind using the member function overloads macro. The class looks ...
James Maddison
Jul 30, 2015 at 4:53 pm
Jul 31, 2015 at 3:04 pm -
Hi! I?ve compiled python 3.4.2 with vs2013, it works. I want to use python script for google oauth2 authentication. If i run the script from command line with my custom build python instance, it ...
Imre I Horvath
Jul 20, 2015 at 8:36 am
Jul 20, 2015 at 8:36 am -
Hello, Python's copy module allows for objects to be copied. The protocol for this will look up special method __copy__. It seems to me that this would trivially work for C++ objects providing a ...
Stefan Seefeld
May 29, 2015 at 2:28 pm
May 31, 2015 at 7:16 am -
Hi, I am having an issue with Boost.Python with a very simple use case. I am returning a reference to an object, and it seems that my python object looses its C++ object's reference at a stage for ...
Christoff Kok
May 28, 2015 at 7:29 am
Jun 3, 2015 at 7:43 am -
How can results be returned in function arguments? I've include my example C++ extension and Python code below. I've tried, what I think, are some obvious approaches (Python objects, ctypes), though ...
Jason Addison
May 23, 2015 at 4:05 pm
May 26, 2015 at 12:14 pm -
Hi I have an application that uses Boost Python. It links and runs fine on Centos 5 systems but fails on an Ubuntu 14.04 LTS system. The code that uses Boost Python is compiled using: g++ -c -Wall ...
David Aldrich
May 19, 2015 at 8:44 am
May 20, 2015 at 8:09 am -
Hi, In: http://www.boost.org/doc/libs/1_58_0/libs/python/doc/tutorial/doc/html/python/exposing.html#python.class_operators_special_functions It is explained how to automagicaly get a str conversion ...
Alain Miniussi
May 12, 2015 at 2:44 pm
May 12, 2015 at 2:44 pm -
Hi everybody, I have been affected for years by the [1] bug: when shared_ptr for an object created in python is released in c++ in multi-threaded code, Python crashes -- because the ...
Václav Šmilauer
May 6, 2015 at 5:27 am
Aug 13, 2015 at 12:01 pm -
(Original Message Posted At : http://www.gamedev.net/topic/667952-boostpython-as-engines-scripting-language/ <http://www.gamedev.net/topic/667952-boostpython-as-engines-scripting-language/ ) Am I ...
Oam
Apr 28, 2015 at 1:30 am
Apr 28, 2015 at 1:07 pm -
Hi, I'm trying to compile C++ class to a python module extension. I found a way here: http://www.boost.org/doc/libs/1_52_0/libs/python/doc/building.html#configuring-boost-build but it doesn't work ...
Quentin Blanchon
Apr 23, 2015 at 8:28 am
Apr 24, 2015 at 12:50 pm -
Dear all, In the hexhex project on github [1] we execute a python program using boost::python::exec_file, the respective code is in src/PythonPlugin.cpp in the function ...
Peter Schüller
Apr 2, 2015 at 7:12 pm
May 13, 2015 at 10:05 am -
Hi, adding more Python 3 features, the "contains" method was added (in 1.55.0?) http://www.boost.org/doc/libs/1_55_0/libs/python/doc/news.html Unfortunately, I found a nasty compile bug when ...
Huebl, Axel
Mar 30, 2015 at 3:16 pm
Mar 30, 2015 at 8:42 pm -
I have an abstract class A2, with derived class B2. I want to map a function returning a boost::shared_ptr of A. This abstract class is wrapped : struct A2{ virtual ~A2(){} virtual int ret() =0; } ...
Warin
Mar 27, 2015 at 1:27 pm
Mar 30, 2015 at 1:08 pm -
I have a use case where we have a C++ framework that is exposed through boost python. If I use a C++ factory to create objects, I want to always return the same python object once it is exposed. I've ...
Goode, Carl R (PG GT LGT EN MT 4 2)
Mar 25, 2015 at 7:45 pm
Mar 25, 2015 at 7:45 pm -
Hi, I'm trying to figure out how to build Python modules using Boost Python against Python3; and I'm currently stuck at getting cmake to find Python 3. I have already installed Python3 via brew ...
Dong Ta
Mar 25, 2015 at 12:21 am
Mar 25, 2015 at 12:21 am -
Hi I am using boost python for providing python bindings for a C++ library. I am using Python 2.7. My library needs to call callbacks that are defined in Python. There callbacks can take a string ...
Bogdan Cristea
Mar 18, 2015 at 9:25 pm
Apr 3, 2015 at 8:16 am -
Hi there, I am creating binding for some C++ classes and I need to be able to subclass exposed C++ classes in Python (and pass subclassed instances back in to C++ code). I was able to make this work ...
Ernie Lee
Mar 16, 2015 at 12:34 am
Mar 16, 2015 at 6:05 pm -
[I posted the same question on Ubuntu's Launchpad's answers site, where earlier discussions of pybindgen took place. However, there seems to be no activity on that site, so i am reposting here] ...
Stefano franchi
Mar 12, 2015 at 4:05 pm
Mar 12, 2015 at 4:05 pm -
Hello, I am working on adding Python binding to C++ project and run into the following problem: For some reason Python tries to delete objects that are still held by smart pointer instances in our ...
Ernie Lee
Mar 9, 2015 at 8:26 pm
Apr 2, 2015 at 7:05 pm -
Well, I'm embarrassed. I don't believe I did that. Thanks so much! From: Cplusplus-sig [cplusplus-sig-bounces+cbotos=aer.com at python.org] on behalf of cplusplus-sig-request at python.org ...
Botos, Christopher
Feb 23, 2015 at 7:35 pm
Feb 23, 2015 at 7:35 pm -
I have an example C++ base class (Song) with a virtual method (chorus) returning void that is called by another method (play) of the same class. I want to be able to derive a python class from this ...
Botos, Christopher
Feb 20, 2015 at 3:29 pm
Feb 23, 2015 at 7:52 am -
Hi, Based on websearches we have done, we believe that boost-python does not allow passing arguments by non-const-reference (at least, not easily). Can someone confirm this is still the case, or ...
Christopher O'Grady
Feb 18, 2015 at 10:13 pm
Feb 19, 2015 at 1:25 pm -
Hm, the language binding is dead and 404 http://sourceforge.net/p/boost/mailman/boost-langbinding/ Has anyone an idea about my question? :) Best, Axel -- Axel Huebl Phone +49 351 260 3582 ...
Huebl, Axel
Feb 2, 2015 at 6:43 pm
Feb 12, 2015 at 10:20 am -
Hello, My problem is the following: I am trying to bind a third party C++ library to python using boost-python. This library has a class Element and a class Owner (the later takes ownership of an ...
Tiago Coutinho
Jan 8, 2015 at 5:42 pm
Jan 13, 2015 at 4:07 pm -
Hi all. I wrapped the boost ipc message queue into Python using Boost.Python. Everything goes fine except I found that 1. the try_receive / try_send will block python when the mq is empty / full. 2 ...
袁振飞
Jan 7, 2015 at 2:19 pm
Jan 9, 2015 at 8:40 am -
I got a class: class X { private: std::wstring text_; public: std::wstring text() const { return text_; } void set_text(const std::string& text) { text_ = from_utf8(text); } void set_text(const ...
Ilias
Dec 18, 2014 at 11:21 am
Dec 18, 2014 at 11:21 am -
I got an overloaded function: void f(int n) { std::clog << "invoked f(int n = " << n << ")" << std::endl; } void f(double d) { std::clog << "invoked f(double d = " << d << ")" << std::endl; } If I ...
Ilias
Dec 18, 2014 at 11:13 am
Dec 27, 2014 at 7:45 pm -
I'm embedding Python (using boost::python) into an application plugin that uses callbacks. Essentially, I want to do something like: In Python (say test.py): def do_something(): .. ...
Peter LaDow
Dec 17, 2014 at 4:13 am
Dec 19, 2014 at 4:26 am -
Hi, We have a simple data structure like this, that we would like to expose via boost python: struct Layer { double value; }; struct Document { std::vector< Layer layer; }; If we were writing this in ...
James Bird
Nov 25, 2014 at 2:54 pm
Nov 26, 2014 at 12:02 pm -
I am pleased to announce the release of mds-utils 2.1.1 <http://www.micheledestefano.joomlafree.it/en/mds-utils.html . This release fixes small bugs present into the 2.1.0 release. Users are strongly ...
Michele De Stefano
Nov 21, 2014 at 1:43 pm
Nov 21, 2014 at 1:43 pm -
Hi, I had a hard time building the example/tutorial project. Some of this is, I believe, due to bugs in the distribution, and some is probably my lack of understanding. Some of this I posted to the ...
Michael Rolle
Nov 17, 2014 at 4:10 am
Nov 18, 2014 at 8:28 am -
Hello all, I don't know if the subject makes any sense, but hopefully the description of the problem will make things clearer :) I have a template class which I am exposing to Python with different ...
Francesco Biscani
Nov 16, 2014 at 6:51 pm
Nov 16, 2014 at 7:47 pm -
Hi, I'm following the instructions for building Boost, as far as I know correctly. When I run 'b2 python link=shared', I get link errors for symbols in the Python interpreter. The problem is that ...
Michael Rolle
Nov 15, 2014 at 9:26 pm
Nov 15, 2014 at 9:26 pm -
An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20141113/bc645169/attachment.html ??????? -------- ???? -------- ????cplusplus-sig-request at ...
515f2
Nov 13, 2014 at 1:34 pm
Nov 13, 2014 at 1:34 pm -
Hi all, I'm trying to determine if the following constitutes a thread safety violation with Python. To simplify the discussion, let's say have the following fictional classes: * Teacher - Fully ...
Davidson, Josh
Oct 29, 2014 at 3:34 pm
Oct 29, 2014 at 3:34 pm -
Hi Python-Experts :-) i am starting to get really frustrated trying to expose a simple C++ polymorphism to python with boost::python. I do have the following structure in C++: struct Base { int ...
Erik Türke
Oct 23, 2014 at 7:38 am
Oct 24, 2014 at 11:09 am -
Hi there I have a little problem with two Python extensions (C++ with boost::python) where share code. An example of what I am trying to do is attached to this mail so I will refer to the code in the ...
Wintersberger, Eugen
Oct 22, 2014 at 12:08 pm
Oct 28, 2014 at 3:21 pm -
Hi class C { public: const std::string& name() const; std::string& name(); private: std::string name_; }; given this class C, how would I expose it to python with the class property name? class_<C ...
MM
Oct 2, 2014 at 8:09 pm
Oct 3, 2014 at 6:11 pm -
Dear All, I must build boost 1.46.1 from source since yum does not support it. I am running into issues with the proper make commands. I have run: ./bootstrap.sh -with-libraries=python ...
Whitmore, Mattie [USA]
Sep 9, 2014 at 10:19 pm
Sep 11, 2014 at 8:12 am -
Hi all, I am having trouble with a really simple example, and I am hoping someone on this list can help me. I have created a github repo for code in question: git clone git at ...
Brian Bruggeman
Aug 28, 2014 at 10:19 pm
Aug 30, 2014 at 1:38 pm -
I am pleased to announce the release of mds-utils 2.0.0 <http://www.micheledestefano.joomlafree.it/en/mds-utils.html . MDS-UTILS provides: 1. a tool for detecting machine endianity. 2. utilities for ...
Michele De Stefano
Aug 15, 2014 at 7:38 pm
Aug 15, 2014 at 7:38 pm -
I would like to know if it is possible to use Boost-compiled pyd on Windows that do not have Boost Python installed. If so, how can I do it ? Thank you for your help, Olivier Zheng An HTML attachment ...
Olivier Zheng
Aug 11, 2014 at 8:10 am
Aug 12, 2014 at 6:51 pm
Group Overview
group | cplusplus-sig |
categories | python |
discussions | 4,093 |
posts | 17,238 |
users | 1,737 |
website | python.org |
Top users
Archives
- September 2015 (3)
- August 2015 (27)
- July 2015 (3)
- May 2015 (24)
- April 2015 (9)
- March 2015 (24)
- February 2015 (10)
- January 2015 (7)
- December 2014 (11)
- November 2014 (20)
- October 2014 (19)
- September 2014 (3)
- August 2014 (6)
- July 2014 (11)
- May 2014 (10)
- April 2014 (1)
- March 2014 (14)
- February 2014 (6)
- January 2014 (31)
- December 2013 (4)
- November 2013 (2)
- October 2013 (18)
- September 2013 (20)
- August 2013 (7)
- July 2013 (5)
- June 2013 (17)
- May 2013 (19)
- April 2013 (25)
- March 2013 (40)
- February 2013 (5)
- January 2013 (23)
- December 2012 (52)
- November 2012 (34)
- October 2012 (28)
- September 2012 (12)
- August 2012 (39)
- July 2012 (29)
- June 2012 (47)
- May 2012 (76)
- April 2012 (78)
- March 2012 (32)
- February 2012 (94)
- January 2012 (35)
- December 2011 (23)
- November 2011 (55)
- October 2011 (57)
- September 2011 (53)
- August 2011 (94)
- July 2011 (18)
- June 2011 (30)
- May 2011 (36)
- April 2011 (20)
- March 2011 (34)
- February 2011 (14)
- January 2011 (22)
- December 2010 (39)
- November 2010 (15)
- October 2010 (54)
- September 2010 (46)
- August 2010 (39)
- July 2010 (75)
- June 2010 (41)
- May 2010 (65)
- April 2010 (66)
- March 2010 (130)
- February 2010 (95)
- January 2010 (103)
- December 2009 (101)
- November 2009 (55)
- October 2009 (73)
- September 2009 (89)
- August 2009 (43)
- July 2009 (72)
- June 2009 (107)
- May 2009 (64)
- April 2009 (76)
- March 2009 (108)
- February 2009 (62)
- January 2009 (78)
- December 2008 (134)
- November 2008 (114)
- October 2008 (121)
- September 2008 (89)
- August 2008 (138)
- July 2008 (172)
- June 2008 (101)
- May 2008 (91)
- April 2008 (94)
- March 2008 (63)
- February 2008 (76)
- January 2008 (113)
- December 2007 (61)
- November 2007 (71)
- October 2007 (110)
- September 2007 (121)
- August 2007 (59)
- July 2007 (159)
- June 2007 (148)
- May 2007 (125)
- April 2007 (137)
- March 2007 (123)
- February 2007 (113)
- January 2007 (165)
- December 2006 (51)
- November 2006 (167)
- October 2006 (171)
- September 2006 (248)
- August 2006 (154)
- July 2006 (62)
- June 2006 (153)
- May 2006 (115)
- April 2006 (137)
- March 2006 (127)
- February 2006 (258)
- January 2006 (132)
- December 2005 (111)
- November 2005 (107)
- October 2005 (156)
- September 2005 (104)
- August 2005 (179)
- July 2005 (204)
- June 2005 (173)
- May 2005 (79)
- April 2005 (104)
- March 2005 (148)
- February 2005 (89)
- January 2005 (40)
- December 2004 (156)
- November 2004 (141)
- October 2004 (33)
- September 2004 (144)
- August 2004 (145)
- July 2004 (249)
- June 2004 (154)
- May 2004 (143)
- April 2004 (211)
- March 2004 (187)
- February 2004 (179)
- January 2004 (199)
- December 2003 (108)
- November 2003 (311)
- October 2003 (414)
- September 2003 (350)
- August 2003 (350)
- July 2003 (441)
- June 2003 (337)
- May 2003 (367)
- April 2003 (178)
- March 2003 (191)
- February 2003 (105)
- January 2003 (225)
- December 2002 (341)
- November 2002 (400)
- October 2002 (255)
- September 2002 (157)
- August 2002 (112)
- July 2002 (300)
- June 2002 (371)
- May 2002 (206)
- April 2002 (108)
- March 2002 (37)
- February 2002 (54)
- January 2002 (124)
- December 2001 (14)
- April 2001 (3)
- March 2001 (5)
- December 2000 (4)
- November 2000 (12)
- October 2000 (13)
- September 2000 (15)
- August 2000 (5)
- June 2000 (4)
- May 2000 (63)
- April 2000 (2)
- March 2000 (11)
- February 2000 (5)
- January 2000 (1)
- December 1999 (33)
- November 1999 (24)
- July 1999 (15)
- June 1999 (2)
- May 1999 (1)
- April 1999 (13)
- January 1999 (3)
- December 1998 (6)
- September 1998 (2)
- July 1998 (4)
- May 1998 (1)
- April 1998 (13)
- March 1998 (5)
- January 1998 (15)
- December 1997 (5)
- November 1997 (7)
- August 1997 (2)
- July 1997 (2)
- June 1997 (3)
- May 1997 (4)
- February 1997 (31)
- February 1980 (1)