Dave Abrahams
3ad52bce72
Support different MS calling conventions, thanks to Nicolas Lelong.
...
Closes #3833 .
[SVN r59247]
2010-01-24 02:08:46 +00:00
Troy D. Straszheim
8b0655ce94
Fix for #2582 , thanks for the patch.
...
[SVN r57016]
2009-10-20 15:06:21 +00:00
Ralf W. Grosse-Kunstleve
35ff0adf2b
boost/python: some Py_ssize_t replaced with boost::python::ssize_t to restore compatibility with Python 2.3 and 2.4
...
[SVN r56491]
2009-09-30 12:35:54 +00:00
Stefan Seefeld
ef2a02c396
Merged 2009 GSoC work from sandbox-branches/bhy/py3k branch back into trunk.
...
[SVN r56305]
2009-09-19 02:32:41 +00:00
Ralf W. Grosse-Kunstleve
e3f6f01588
boost/python/object_operators.hpp: added missing error checks in operator bool_type(), operator!(); this resolves https://svn.boost.org/trac/boost/ticket/3356 posted by Stefan Seefeld
...
[SVN r55708]
2009-08-22 00:18:28 +00:00
Dave Abrahams
6ffeca641c
GCC Warning Suppression
...
[SVN r53659]
2009-06-05 20:15:01 +00:00
Jeremiah Willcock
3ecb3301a2
Fixed most tab and min/max issues from trunk inspection report
...
[SVN r53141]
2009-05-20 19:19:00 +00:00
Ralf W. Grosse-Kunstleve
472b18881b
Boost.Python enable_shared_from_this patches by Nicolas Lelong and Chad Austin:
...
http://mail.python.org/pipermail/cplusplus-sig/2008-December/014103.html
http://mail.python.org/pipermail/cplusplus-sig/2008-February/013003.html
[SVN r50368]
2008-12-23 07:55:33 +00:00
Ralf W. Grosse-Kunstleve
97f3d849df
boost/python, boost/mpl: gcc 4.4 compatibility (see http://svn.boost.org/trac/boost/ticket/2069 )
...
[SVN r48960]
2008-09-25 04:49:24 +00:00
Ralf W. Grosse-Kunstleve
61fc9cf054
python/object_core.hpp: "inline" added to declarations, to match definitions (resolves MIPSpro 7.41 warnings)
...
[SVN r48659]
2008-09-08 02:15:06 +00:00
Ralf W. Grosse-Kunstleve
b3e91f845e
boost/python/object_core.hpp: work around Tru64 cxx 6.5 name lookup problems (with fully-qualified names)
...
[SVN r48629]
2008-09-06 05:30:02 +00:00
Stefan Seefeld
d67cd6717d
Add generic call operator support.
...
[SVN r47846]
2008-07-27 19:41:41 +00:00
Beman Dawes
801326275f
With his kind permission, change Jaakko "Järvi" to "Jarvi"
...
[SVN r46808]
2008-06-28 13:45:21 +00:00
Markus Schöpflin
b01e0e6b9c
Added missing ostream header file.
...
[SVN r46115]
2008-06-04 15:11:05 +00:00
Ralf W. Grosse-Kunstleve
304277b806
See Python C++-SIG thread: "object.attr(object& attrname) proposal"
...
Started 2008-05-25 by hohehohe2@gmail.com .
Excerpts:
If char const* is passed to objecjt.attr(), it uses
PyObject_GetAttrStrng() or PyObject_SetAttrStrng(). If object is
passed to objecjt.attr(), it takes the object as a Python string
object and uses PyObject_GetAttr() or PyObject_SetAttr().
If attr() behaves like this, it can be useful when there are lots
of objects which you know have the same attribute name. You can save
time by first making a boost::python::object and passing it to every
object's attr() inside a loop.
I just made a bit of modification to boost:python locally and did a
quick test, like
test 1:
for(int i = 0; i < n; ++i)
{
omain.attr(attrname) = 444; //attrname is a char const*
}
test 2:
for(int i = 0; i < n; ++i)
{
object o = omain.attr(attrname); //attrname is a char const*
}
test 3:
for(int i = 0; i < n; ++i)
{
omain.attr(oaaaa) = 444; //oaaaa is boost::python::object that represents a string
}
test 4:
for(int i = 0; i < n; ++i)
{
object o = omain.attr(oaaaa); //oaaaa is boost::python::object that represents a string
}
and it reasonably reflected the difference between PyObject_*Attr() and PyObject_*AttrString.
test 1 :2783ms
test 2 :2357ms
test 3 :1882ms
test 4 :1267ms
test5: PyObject_SetAttrString(po_main, "aaaa", po_num444);
test6: Py_DECREF(PyObject_GetAttrString(po_main, "aaaa"));
test7: PyObject_SetAttr(po_main, po_aaaa, po_num444);
test8: Py_DECREF(PyObject_GetAttr(po_main, po_aaaa));
(po_ prefixed variables are PyObject*),
all inside each for loop, and the results were
test 5 :2410ms
test 6 :2277ms
test 7 :1629ms
test 8 :1094ms
It's boost 1.35.0, Python 2.5 on linux(gcc4.1.2).
I also did the same test on windows(vs8) and the tendency was not
so different.
[SVN r45918]
2008-05-29 19:48:55 +00:00
Ralf W. Grosse-Kunstleve
a334649b0c
braces added to resolve g++ 4.3.0 warning
...
[SVN r45359]
2008-05-14 19:38:08 +00:00
Joel de Guzman
52245de2e5
Andreas patch
...
[SVN r44449]
2008-04-16 03:07:06 +00:00
Ralf W. Grosse-Kunstleve
2f1f79ce87
bogus VC8 warning C4180 disabled
...
[SVN r44041]
2008-04-04 18:57:27 +00:00
Jürgen Hunold
ff44521920
Silence unused paramter warning in release mode.
...
[SVN r41649]
2007-12-03 18:47:17 +00:00
Jürgen Hunold
5cbb539ec5
Remove unused paramters.
...
Add -Wextra to gcc flags to enable more warnings.
[SVN r41550]
2007-12-01 20:26:37 +00:00
Dave Abrahams
0d81eb6695
Boost.Python:
...
* Workarounds for many SunCC 5.9 bugs
* Suppression of many SunCC 5.9 warnings
* Improve the style of some test invocations in Jamfile
[SVN r41521]
2007-12-01 02:15:17 +00:00
Dave Abrahams
e0b535df1e
Try to extend the workaround to SunPro 5.9, since we're marked as not working on 5.8
...
[SVN r41408]
2007-11-26 22:01:50 +00:00
Beman Dawes
8cd4ff8950
Remove extra ) from prior commit
...
[SVN r41355]
2007-11-25 13:56:09 +00:00
Dave Abrahams
26f77691ee
Attempt SunPro workaround
...
[SVN r41352]
2007-11-25 09:02:01 +00:00
Nikolay Mladenov
e14c702a40
added forgotten array_object_manager_traits::get_pytype
...
[SVN r40889]
2007-11-07 16:06:55 +00:00
Dave Abrahams
6a3085ad5d
Merging some of the more obvious changes from RC_1_34_0
...
[SVN r40714]
2007-11-03 03:25:13 +00:00
Joel de Guzman
190d0d7ea6
replacing reinterpret_cast with static_cast<PySliceObject*>(static_cast<void*>(i))
...
[SVN r40712]
2007-11-03 03:05:26 +00:00
Ralf W. Grosse-Kunstleve
abc4abf84a
gcc 4.3.0 compatibility (resolves new "changes meaning" error)
...
[SVN r39434]
2007-09-20 23:20:45 +00:00
Nikolay Mladenov
62ef542eaf
fixed problem reported by Neal Becker; added a test case
...
[SVN r39223]
2007-09-12 21:31:39 +00:00
Ralf W. Grosse-Kunstleve
5809078ba9
Patches by Nikolay Mladenov (nickm at sitius com): new pythonic signatures; docstring support for enums; fix unrelated Visual C++ 6 problem
...
[SVN r39191]
2007-09-11 16:53:50 +00:00
Thomas Witt
a5706ec3b0
Fixes for #583 .
...
[SVN r37929]
2007-06-07 18:08:54 +00:00
Stefan Seefeld
b130c93af6
Backport new eval() function from HEAD.
...
[SVN r37693]
2007-05-15 13:43:52 +00:00
Stefan Seefeld
fe23d9885f
Add new eval() function.
...
[SVN r37560]
2007-05-02 13:11:20 +00:00
Ralf W. Grosse-Kunstleve
a6125a3632
merged from trunk
...
[SVN r37520]
2007-04-27 22:16:47 +00:00
Ralf W. Grosse-Kunstleve
e7ee17b71b
MIPSpro: undo Python 2.5.1 define (the define leads to many warnings)
...
[SVN r37502]
2007-04-25 04:45:17 +00:00
Dave Abrahams
4827ae73d5
Trivial change to force a rebuild on incremental testers' machines.
...
[SVN r37327]
2007-04-02 00:54:48 +00:00
Dave Abrahams
ea4e6c0a4c
Trivial change to force a rebuild on incremental testers' machines.
...
[SVN r37311]
2007-03-28 12:44:57 +00:00
Dave Abrahams
7cd7f6d8ee
Trivial change to force a rebuild on incremental testers' machines.
...
[SVN r37287]
2007-03-26 15:47:05 +00:00
Dave Abrahams
4c39e8c990
Making a trivial change to trigger a test run from incremental testers
...
[SVN r37278]
2007-03-24 18:57:19 +00:00
Dave Abrahams
c73ad50286
Roll back improved error message because it causes problems for vc6/7
...
[SVN r36435]
2006-12-16 22:00:35 +00:00
Dave Abrahams
0910710ac4
Correct class/function mismatches for MSVC and bring across
...
documentation tweaks from HEAD.
[SVN r36355]
2006-12-13 15:08:26 +00:00
Dave Abrahams
c2dd9fa833
Fix auto-link to look at the right variable.
...
[SVN r36319]
2006-12-11 03:00:26 +00:00
Dave Abrahams
0c4ebef579
Fix auto-link to look at the right variable.
...
Make boost-build.jam point at the v2 Boost.
[SVN r36318]
2006-12-11 02:54:48 +00:00
Dave Abrahams
b085121369
merged from trunk
...
[SVN r36292]
2006-12-07 17:45:17 +00:00
Dave Abrahams
8a4590b2ef
Enable auto-linking
...
[SVN r36291]
2006-12-07 17:44:05 +00:00
Dave Abrahams
6d2ee96ba3
improve error message
...
[SVN r35822]
2006-11-03 16:34:53 +00:00
Stefan Seefeld
ca91dc828e
Fix symbol visibility.
...
[SVN r35754]
2006-10-27 21:19:47 +00:00
Stefan Seefeld
a74c8e3da3
Fix symbol visibility.
...
[SVN r35754]
2006-10-27 21:19:47 +00:00
Dave Abrahams
c3bd0fcbad
Make object comparison operators return object instead of bool, to
...
accomodate strange beasts like numarray arrays that return arrays that
can't be used as truth values from their comparison ops.
Fix numpy test for portability with old doctest (again!)
[SVN r35572]
2006-10-12 09:07:07 +00:00
Dave Abrahams
d61909d3ea
Make object comparison operators return object instead of bool, to
...
accomodate strange beasts like numarray arrays that return arrays that
can't be used as truth values from their comparison ops.
Fix numpy test for portability with old doctest (again!)
[SVN r35572]
2006-10-12 09:07:07 +00:00