[C++-sig] Re: Retiring the Python/C++-sig mailing list

2025-06-02 Thread Trigve Siver via Cplusplus-sig
Hello,just the last good bye to everyone ;) -- Trigve On Monday, June 2, 2025 at 07:19:35 PM GMT+2, Jim Bosch via Cplusplus-sig wrote: On Wed, May 28, 2025 at 9:23 AM Stefan Seefeld wrote: I agree, but leave it to the list maintainer(s) to take any final decision. I'll answer questi

Re: [C++-sig] Problem with and fix for automatic pointer registration in Boost.Python 1.60

2016-03-08 Thread Trigve Siver via Cplusplus-sig
> > From: Stefan Seefeld >To: cplusplus-sig@python.org >Sent: Sunday, March 6, 2016 7:03 PM >Subject: Re: [C++-sig] Problem with and fix for automatic pointer registration >in Boost.Python 1.60 > > >On 04.03.2016 13:45, Greg Falcon via Cplusplus-sig wrote: >> Boo

Re: [C++-sig] pybind11 -- alternative to Boost.Python

2015-10-19 Thread Trigve Siver via Cplusplus-sig
> > From: Wenzel Jakob >To: cplusplus-sig@python.org >Sent: Sunday, October 18, 2015 2:56 PM >Subject: [C++-sig] pybind11 -- alternative to Boost.Python > > > >Hello all, > > >after being a long-time Boost.Python user, I’ve been working on an alternative >that ma

Re: [C++-sig] Returning C++ buffer to Python 2.7

2015-10-19 Thread Trigve Siver via Cplusplus-sig
> > From: Tony Cappellini >To: cplusplus-sig@python.org >Sent: Thursday, October 15, 2015 10:27 PM >Subject: [C++-sig] Returning C++ buffer to Python 2.7 > > > > > >I've allocated memory in C++ and need to expose a function to Python >so that Python can read this

Re: [C++-sig] Boost.Python docs update

2015-08-06 Thread Trigve Siver via Cplusplus-sig
> > From: Francesco Biscani >To: Development of Python/C++ integration >Sent: Thursday, August 6, 2015 4:00 PM >Subject: Re: [C++-sig] Boost.Python docs update > > > >Kudos and thanks a lot, that looks great! (and it must have taken a lot of >effort...) > >

Re: [C++-sig] Boost.Python C++ object reference in Python: unexpected behaviour.

2015-06-02 Thread Trigve Siver via Cplusplus-sig
> From: Christoff Kok >To: cplusplus-sig@python.org >Sent: Tuesday, June 2, 2015 7:34 AM >Subject: Re: [C++-sig] Boost.Python C++ object reference in Python: >unexpected behaviour. > > > >Hi, > > >This looks like a bug in Boost.Python to me. > > >Could anyone confirm this? I provided a minim

Re: [C++-sig] C++ copy construction and Python object copies

2015-05-31 Thread Trigve Siver via Cplusplus-sig
> From: Stefan Seefeld > To: cplusplus-sig@python.org > Cc: > Sent: Saturday, May 30, 2015 12:57 AM > Subject: Re: [C++-sig] C++ copy construction and Python object copies > > On 29/05/15 06:48 PM, Alex Mohr wrote: >> On 5/29/2015 7:28 AM, Stefan Seefeld wrote: >>> Python's copy module allo

Re: [C++-sig] Returning values to Python in C++ reference arguments

2015-05-25 Thread Trigve Siver via Cplusplus-sig
- Original Message - > From: Jason Addison > To: cplusplus-sig@python.org > Cc: > Sent: Saturday, May 23, 2015 6:05 PM > Subject: [C++-sig] Returning values to Python in C++ reference arguments > > How can results be returned in function arguments? > I don't think that you can retur

Re: [C++-sig] issues with loading the boost_python dll on different computers

2012-08-23 Thread Trigve Siver
> From: Ronny Herzog > To: cplusplus-sig@python.org > Cc: > Sent: Thursday, August 23, 2012 4:53 PM > Subject: [C++-sig] issues with loading the boost_python dll on different > computers > > Dear all, > > I installed and used boost (1.50.0) to build a python extension on my Windows > 7 > / 3

Re: [C++-sig] Member function of other class

2012-08-17 Thread Trigve Siver
Code formatting went wrong > ... > struct BaseClass > { void func() {} > }; struct Wrap > { void func() {} > }; BOOST_PYTHON_MODULE(main) > { class_("Base", no_init) > .def("func", &Wrap::func) ; > } struct BaseClass {   void func() {} }; struct Wrap {   void func() {} }; BOOST_PYTHON_MODULE(m

[C++-sig] Member function of other class

2012-08-17 Thread Trigve Siver
Hi, I'm curios, why this piece of code does compile? struct BaseClass { void func() {} }; struct Wrap { void func() {} }; BOOST_PYTHON_MODULE(main) { class_("Base", no_init) .def("func", &Wrap::func) ; } I'm asking because a want to do something like this and want to know if it is UB or not: s

Re: [C++-sig] C++ clas with (*args, **kwargs) constructor

2012-06-21 Thread Trigve Siver
> From: Jim Bosch > To: cplusplus-sig@python.org > Cc: > Sent: Friday, June 22, 2012 12:28 AM > Subject: Re: [C++-sig] C++ clas with (*args, **kwargs) constructor > > On 06/21/2012 06:07 PM, Trigve Siver wrote: >>> From: Jim Bosch >>> To: cplusplus-sig@

Re: [C++-sig] C++ clas with (*args, **kwargs) constructor

2012-06-21 Thread Trigve Siver
> From: Holger Brandsmeier > To: Trigve Siver ; Development of Python/C++ integration > > Cc: > Sent: Thursday, June 21, 2012 11:58 PM > Subject: Re: [C++-sig] C++ clas with (*args, **kwargs) constructor > >T rigve, > > with the line >   > class_>(&q

Re: [C++-sig] C++ clas with (*args, **kwargs) constructor

2012-06-21 Thread Trigve Siver
> From: Jim Bosch > To: cplusplus-sig@python.org > Cc: > Sent: Thursday, June 21, 2012 11:57 PM > Subject: Re: [C++-sig] C++ clas with (*args, **kwargs) constructor > > On 06/21/2012 05:31 PM, Trigve Siver wrote: >> >> >> Hi, >> I'm tryi

Re: [C++-sig] C++ clas with (*args, **kwargs) constructor

2012-06-21 Thread Trigve Siver
> From: Trigve Siver > To: Development of Python/C++ integration > Cc: > Sent: Thursday, June 21, 2012 11:31 PM > Subject: [C++-sig] C++ clas with (*args, **kwargs) constructor > > ... > then in main: > ... > try { > object main = import("

[C++-sig] C++ clas with (*args, **kwargs) constructor

2012-06-21 Thread Trigve Siver
Hi, I'm trying to find some solution to my problem but without succes. I need to be able to export C++ class constructor that takes arbitraty arguments (as in python __init__(self, *args, **kwargs). Is it possible to have this kind of constructor? I've tried something like this: BOOST_PYTHON_

Re: [C++-sig] [Boost-users] boost python & context manager/with statement

2012-02-29 Thread Trigve Siver
> From: Dave Abrahams > To: boost-us...@lists.boost.org > Cc: cplusplus-sig@python.org > Sent: Tuesday, February 28, 2012 10:06 PM > Subject: Re: [Boost-users] boost python & context manager/with statement > > > on Sun Feb 12 2012, Avi Bahra wrote: > >> Does boost python support context mana

Re: [C++-sig] Multiple calls to bp::detail::init_module() causing conflicts?

2010-12-20 Thread Trigve Siver
> From: Ralf W. Grosse-Kunstleve > To: Development of Python/C++ integration > Sent: Tue, December 21, 2010 12:48:35 AM > Subject: Re: [C++-sig] Multiple calls to bp::detail::init_module() causing >conflicts? > > Hi Austin, > Just a remark: the python3 support isn't routinely exercised. > Ove

[C++-sig] [python] base::get_override() exception set

2010-10-01 Thread Trigve Siver
Hi, when calling get_override() method while trying to find python overload and overload is not found exception in python is set. This is because PyObject_GetAttrString() is used for retrieving the attribute. If attribute is not found, PyObject_GetAttrString() set the exception. This is using py

[C++-sig] division operator in 3.1

2010-08-02 Thread Trigve Siver
Hi, I've found bug in boost python with division operator. Division operator with custom types doesn't work with python 3.1. It is because there were some changes in this regard in python 3. I've created ticket with patch https://svn.boost.org/trac/boost/ticket/4497 . Can somebody look at i

[C++-sig] multithreading and interpreters

2009-11-22 Thread Trigve Siver
Hi, I'm working on project where we used boost.python (embedded). In general I have the "modules" where each module is something like sandbox, is isolated from others modules and run in solo thread. I want to be able to use python (and boost python functions of course) from each module thread. So