<div dir="ltr">My be construct bp::object from the result of _PyObject_New?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 21, 2014 at 8:29 AM, Gary Oberbrunner <span dir="ltr"><<a href="mailto:garyo@genarts.com" target="_blank">garyo@genarts.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
<br>
----- Original Message -----<br>
> From: "Neal Becker" <<a href="mailto:ndbecker2@gmail.com">ndbecker2@gmail.com</a>><br>
> To: <a href="mailto:cplusplus-sig@python.org">cplusplus-sig@python.org</a><br>
> Sent: Monday, January 20, 2014 8:39:55 PM<br>
> Subject: Re: [C++-sig] create a python object from scratch in boost.python?<br>
><br>
> Gary Oberbrunner wrote:<br>
><br>
> > I'd like to create a python object with some attributes in C++, and<br>
> > return it<br>
</div>> > to python. ...  Instead of None, I'd like to create a<br>
> > simple empty<br>
> > python class I can add attributes to....<br>
<div class="im">><br>
> I think if you've exposed your c++ class, then there is a conversion<br>
> from c++ object to python object.  So<br>
><br>
> bp::object plugin (Plugin_Info());<br>
<br>
</div>Thanks -- I can indeed do that (or a proxy C++ class in any case).  I was wondering though if it's possible to create an anonymous python class in BP, without a "starter" C++ class as it were.  But I suppose that's mostly an academic question right now.<br>

<span class="HOEnZb"><font color="#888888"><br>
--<br>
Gary Oberbrunner<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Cplusplus-sig mailing list<br>
<a href="mailto:Cplusplus-sig@python.org">Cplusplus-sig@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/cplusplus-sig" target="_blank">https://mail.python.org/mailman/listinfo/cplusplus-sig</a><br>
</div></div></blockquote></div><br></div>