[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 a

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
59 without issue. >> >> If someone on this list could take a look at this change, I'd >> appreciate it. Let me know if you have any questions. > >I have merged the PR, and will try to get it into master for the 1.61 >release. Sorry this t

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

2015-10-19 Thread Trigve Siver via Cplusplus-sig
be shame not incorporate the useful stuff in boost.python. > >Best, >Wenzel >___ >Cplusplus-sig mailing list >[email protected] >https://mail.python.org/mailman/listinfo/cplusplus-sig > > -- Trigve ___

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

2015-10-19 Thread Trigve Siver via Cplusplus-sig
> > From: Tony Cappellini >To: [email protected] >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
; >Could anyone confirm this? I provided a minimal, full working example. > > >I would like to make sure it is a bug before reporting it as one. > > >Christoff > What about making the Factory and Manufacturer class as noncopyable (and also exportin

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

2015-05-31 Thread Trigve Siver via Cplusplus-sig
onvenience utility that adds a __copy__ or >> __deepcopy__ method, but given the semantic subtlety, I think trying >> to do it automatically is dicey. > > That's a fair point. > I agree with Alex Mohr. Adding some mechanism of implementing the copy using copy constructor would be welcome. But doing it automatically wouldn't be ok. I think that explicit is better than implicit. Trigve ___ Cplusplus-sig mailing list [email protected] https://mail.python.org/mailman/listinfo/cplusplus-sig

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: [email protected] > 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
it possible that you are using debug version of your extension? * If you are using VS, have you installed VC redist of *your's VS version* on target PC? Also try depends.exe to find if you aren't missing any dependencies.   > Thanks a lot, > Ronny Trigve ___

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

2012-08-17 Thread Trigve Siver
BOOST_PYTHON_MODULE(main) > { class_("Base", init<>()) > .def("func", &Wrap::func) ; > } struct BaseClass {   void func() {} }; struct Wrap {   static void func(BaseClass &Instance)   {     Instance.func();   } }; BOOST_PYTHON_MODULE(main) {

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

2012-08-17 Thread Trigve Siver
d want to know if it is UB or not: struct BaseClass { void func() {} }; struct Wrap { static void func(BaseClass &Instance) { Instance.func(); } }; BOOST_PYTHON_MODULE(main) { class_("Base", init<>()) .def("func", &Wrap::func) ; }

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

2012-06-21 Thread Trigve Siver
> From: Jim Bosch > To: [email protected] > 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: [email protected] > 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
I think because it finds only default constructor. I've tried also raw_constructor from http://wiki.python.org/moin/boost.python/HowTo#A.22Raw.22_constructor but without success. Anyone know if it is somehow possible? Thanks Trigve ___ Cplusplus-sig mailing list [email protected] http://mail.python.org/mailman/listinfo/cplusplus-sig

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

2012-02-29 Thread Trigve Siver
ds, >> Ta, >>     Avi > > There's no explicit support for it, no. > > Sorry, But I think you could implement it like this:  class_(...) .def("__enter__", &somefunc) .def("__exit__", &someotherfunc) ; Trigve ___ Cplusplus-sig mailing list [email protected] http://mail.python.org/mailman/listinfo/cplusplus-sig

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

2010-12-20 Thread Trigve Siver
n't routinely exercised. > Overlooked incompatibilities are possible. > I only have time to maintain the python2 support. We need a > volunteer to port the unit tests to python3. > Ralf > I'm testing release branch against python 3 (see Trigve in http://www.boost.org

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

2010-10-01 Thread Trigve Siver
python 3.1. I've created ticket https://svn.boost.org/trac/boost/ticket/4701 with patch. Could anyone look at this? Thanks Trigve ___ Cplusplus-sig mailing list [email protected] http://mail.python.org/mailman/listinfo/cplusplus-sig

[C++-sig] division operator in 3.1

2010-08-02 Thread Trigve Siver
omebody look at it? Thanks Trigve ___ Cplusplus-sig mailing list [email protected] http://mail.python.org/mailman/listinfo/cplusplus-sig

[C++-sig] multithreading and interpreters

2009-11-22 Thread Trigve Siver
s configuration work? Could be there some problems with boost.python when using multiple threads? Thanks Trigve ___ Cplusplus-sig mailing list [email protected] http://mail.python.org/mailman/listinfo/cplusplus-sig

Re: [C++-sig] destructor not called

2009-03-09 Thread Trigve
Trigve yahoo.com> writes: > > Hi, > I've got problem with embedded python. When using some classes inside embedded > python... Sorry, It looks like it is not python fault. Trigve ___ Cplusplus-sig mailing list Cplusplus

[C++-sig] destructor not called

2009-03-08 Thread Trigve
ssion { boost::shared_ptr m_pImpl; ... }; So as you can see when the destructor is not called appropriate times, the shared_ptr isn't destroyed. I've tried searching but no working solution was found. thanks Trigve ___ Cplusplus-sig mailing list