Re: [Boost-bugs] [Boost C++ Libraries] #2230: Wrapping Python function pointer

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2230: Wrapping Python function pointer
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-06-13 03:30:49


#2230: Wrapping Python function pointer
--------------------------------------+-------------------------------------
  Reporter: william.marie@… | Owner: dave
      Type: Feature Requests | Status: closed
 Milestone: Boost 1.37.0 | Component: Python
   Version: Boost 1.36.0 | Severity: Optimization
Resolution: invalid | Keywords: function pointer
--------------------------------------+-------------------------------------
Changes (by steven_watanabe):

  * status: new => closed
  * resolution: => invalid

Comment:

 It isn't possible to convert a python function into a C function pointer,
 because a function pointer has no state. The closest you can get is to
 use the call operator of boost::python::object. See
 http://www.boost.org/libs/python/doc/v2/callbacks.html.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2230#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:03 UTC