Re: [C++-sig] Python converters for raw pointers: request for help

2009-10-27 Thread Michele De Stefano
That's not what I'd like to do. I'd like to make a "from-Python"
converter. I don't want to make a wrapper that takes a
boost::python::object and then call extract ...

The problem in my converter (see the previous e-mails) is that Python
does not even enter into the "convertible" method ...


2009/10/26 Randolph Fritz :
> I think what you want is here:
>  
>
> and here:
>  
>
> Take a look at that--see if it helps.
>
> --
> Randolph Fritz
>  design machine group, architecture department, university of washington
> rfr...@u.washington.edu -or- rfritz...@gmail.com
>
> ___
> Cplusplus-sig mailing list
> Cplusplus-sig@python.org
> http://mail.python.org/mailman/listinfo/cplusplus-sig
>



-- 
Michele De Stefano
http://www.linkedin.com/in/micdestefano
http://xoomer.virgilio.it/michele_de_stefano
___
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig


Re: [C++-sig] Python converters for raw pointers: request for help

2009-10-27 Thread Randolph Fritz
On 2009-10-27, Michele De Stefano  wrote:
> That's not what I'd like to do. I'd like to make a "from-Python"
> converter. I don't want to make a wrapper that takes a
> boost::python::object and then call extract ...
>
> The problem in my converter (see the previous e-mails) is that Python
> does not even enter into the "convertible" method ...
>

Hunh.  Well, I'm out of ideas, then.  Sorry.

-- 
Randolph Fritz
  design machine group, architecture department, university of washington
rfr...@u.washington.edu -or- rfritz...@gmail.com

___
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig


[C++-sig] New mds-utils release (1.2.0)

2009-10-27 Thread Michele De Stefano
mds-utils 1.2.0 have been released.

Release Notes:

- Improved python/fileobj.hpp: now there are 3 helper file objects
  and they are copy-constructible. Derivation from boost::python::object
  has been mantained.
- Added utilities for indexing support in Python extensions.
- Added boost::python converters for some boost::numeric::ublas classes.

---
What is mds-utils ?
---

mds-utils is a library intended to become a collection of several C++ utilities.
It makes heavy usage of the Boost C++ libraries.

Release 1.2.0 contains:
- a tool for detecting machine endianity.
- some useful classes that allow to treat the old C FILE pointer as a
C++ stream.
- C++ classes that help on treating Python file objects as C++ streams.
- simple utilities for indexing support in Python extensions.
- new C++ to-Python and from-Python converters for some Boost uBlas 
objects.

Project home: http://code.google.com/p/mds-utils/

-- 
Michele De Stefano
http://www.linkedin.com/in/micdestefano
http://xoomer.virgilio.it/michele_de_stefano
___
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig