Opened 11 years ago

Last modified 7 years ago

#6545 assigned Bugs

boost:::python doesn't recognize std::shared_ptr

Reported by: Neal Becker <ndbecker2@…> Owned by: Jim Bosch
Milestone: To Be Determined Component: python USE GITHUB
Version: Boost 1.48.0 Severity: Problem
Keywords: Cc: jhasse@…

Description

boost::python specially handles boost::shared_ptr, but special handling is also needed for std::shared_ptr

Change History (12)

comment:1 by viboes, 10 years ago

Component: NonePython
Owner: set to Ralf W. Grosse-Kunstleve

Please set the component in the future if you want it to be analyzed.

comment:2 by jhasse, 10 years ago

Cc: jhasse@… added

comment:3 by Jim Bosch, 10 years ago

Owner: changed from Ralf W. Grosse-Kunstleve to Jim Bosch
Status: newassigned

I'm going to take a crack at implementing this.

comment:4 by anonymous, 9 years ago

Any progress on this?

comment:5 by Jim Bosch, 9 years ago

Sorry, no...I'm probably too busy to do this, and certainly too busy to do this if it involves teaching myself SVN again. I'd been putting it off until Boost converted fully to git, which has been right around the corner for several years now.

If anyone would like to take ownership of the ticket, please feel free to. Otherwise I might get to it when I can do it with git, but even then, no promises. (I'd reliquish ownership back to whoever it would default to if I could, but Trac doesn't seem to provide a way to do that).

Sorry!

comment:6 by Akim Demaille <akim.demaille@…>, 9 years ago

Ping! (Yeah, I know, easy to say…)

Thanks in advance.

comment:7 by karasevpa@…, 8 years ago

I'm hitting this issue extensively at the moment... can you give me a couple tips on what verification needs to happen for a proposed patch to get merged into boost::python?

Peter Karasev karasevpa@…

comment:8 by Jim Bosch, 8 years ago

I'm afraid I don't know much more than you do. I'd be happy to provide a code review, but I don't have commit privileges myself, and I've only ever contributed trivial bugfixes to Boost in the past. So we'd need to find someone to help with the last few steps, and I while there are many people who could do that, I don't know that anyone in particular actually considers merging Boost.Python patches their responsibility.

comment:9 by anonymous, 7 years ago

Any news on this?

comment:10 by nevion@…, 7 years ago

Seriously, this is important. This makes an artificial island where one cannot safely pass from code module to another. The converters/details look mostly copy paste. FYI I tried to do an "overlay" fix with detail/is_shared_ptr, value_is_shared_ptr and the converters but got sidelined on the other files as it's beyond the time I can sink into this.

boost::get recognizes std::shared_ptr now adays.

And while we're at it, add support for std::array -> http://stackoverflow.com/questions/17885639/exposing-a-c-style-array-data-member-to-python-via-boost-python and maybe update the old ndarray support to the current c-interface :-)

Please come back to us jbosch!

comment:11 by anonymous, 7 years ago

Ping

comment:12 by Stefan Seefeld, 7 years ago

This (or at least a similar) issue is now tracked in https://github.com/boostorg/python/issues/29, so I'm going to close this issue.

Note: See TracTickets for help on using tickets.