2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-26 18:52:26 +00:00

Convert doubles to_python.

[SVN r7990]
This commit is contained in:
Dave Abrahams
2000-10-18 04:27:19 +00:00
parent a14555f4a7
commit 3d7a5041d1

5
py.h
View File

@@ -165,6 +165,11 @@ PyObject* to_python(boost::shared_ptr<T> p)
// inline implementations
//
inline PyObject* to_python(double d)
{
return PyFloat_FromDouble(d);
}
inline PyObject* to_python(long l)
{
return PyInt_FromLong(l);