Daniel Laügt
b988d70207
Alignment fixes
2024-09-21 21:56:41 -04:00
Jakob van Santen
c76d67ef3f
Ensure that virtual default implementation has the same kwargs as dispatcher
2024-09-17 17:07:44 -04:00
Jakob van Santen
0102b31945
Unwrap back_reference in get_pytype()
...
This prevents back_reference parameters from decaying to "object" in py signatures
2024-09-17 17:07:44 -04:00
Jakob van Santen
4c6f40fb82
Add generated docstrings to property fget/fset
2024-09-17 17:07:44 -04:00
Jakob van Santen
a498e2458c
Qualify types defined in other modules
2024-09-17 17:07:44 -04:00
Jakob van Santen
7a3cc07042
Emit qualfied names in docstrings
2024-09-17 17:07:44 -04:00
Peter Dimov
6c3f3ecacf
Normalize static/dynamic link macros and avoid redefinition warnings
2023-12-22 08:14:53 -05:00
Denis Arnaud
41e208ecb5
Update call_method.hpp
...
Was missing from https://github.com/boostorg/python/pull/320
I've tested it on one of my projects with (that patch on) Boost.Python/Boost 1.76.0 and it works well. Without that patch, there is a deprecation error.
2022-03-19 13:06:49 -04:00
TaWeiTu
aee2667407
Fix deprecated usage of <boost/bind.hpp>
...
Replace <boost/bind.hpp> with <boost/bind/bind.hpp> and use namespace
boost::placeholders when necessary.
2021-06-09 07:16:19 -04:00
Stefan Seefeld
aca3c80c4f
Respect alignment of by-value storage.
2021-04-30 22:59:25 -04:00
Stefan Seefeld
500194edb7
Fix Python 3.10 (PEP-620) incompatibility.
2021-01-04 01:31:40 -05:00
Pat Riehecky
944fa075b3
Stop using deprecated API calls (python-3.9) #319
2020-10-15 21:54:47 -04:00
Austin Maliszewski
9e1132f4f5
Handle NULL from call to PyLong_Type
...
PyLong_Type raises an exception if the argument is not convertible to
long, therefore, this has to be handled as new_reference and not
new_non_null_reference, otherwise a segfault will occur.
2020-08-08 02:30:46 -04:00
Andrey Semashev
01ab510585
Removed usage of deprecated header boost/detail/iterator.hpp.
...
The header is deprecated in favor of <iterator>. It generates compiler
warnings and will be removed in a future release.
2020-08-07 18:09:31 -04:00
Edward Diener
5e2d55d801
Revert back to original, as __cdecl is fine with the Embarcadero C++ clang-based compilers.
2020-08-07 17:35:12 -04:00
Edward Diener
17886fc296
Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers.
2020-08-07 17:35:12 -04:00
Julien Schueller
1727b67a5a
detail/caller.hpp:127:2: error: extra ';' [-Wpedantic]
2019-06-01 19:07:40 -04:00
Nikita Kniazev
0b0c0536d6
The right hypot fix for MinGW
2019-03-26 15:56:03 -04:00
Owens
0d0cd711a7
Enable forward declaration of unwind_type() in msvc14.15 and later.
...
Name lookup in msvc has changed between 14.14 and 14.15 making it consistent with other compilers. Forward declaration of unwind_type() is now required as it is for other compilers.
Resolves compilation errors identified in:
https://github.com/boostorg/python/issues/228
2019-03-25 11:00:48 -04:00
Nikita Kniazev
1f1b9b6aef
Fix hypot issue on MinGW
2019-03-23 20:37:35 -04:00
Nikita Kniazev
6bd6d71850
Fix -Wregister error on Clang in C++17 mode
...
Suppresses the warning on GCC, Clang, and MSVC.
2019-03-21 16:40:41 -04:00
Tom Kent
4b01139720
Ssize t warning - trac #3353 ( #21 )
...
Fixes msvc unsafe type conversion warning - trac num: 3353
2019-03-03 22:02:57 -05:00
SPKorhonen
65bfec2d97
Fix static object initialization under Visual Studio 2017 ( #208 )
...
Fix static object initialization under VS 15.7.2
2019-03-03 21:59:48 -05:00
Stefan Seefeld
b4230e98f6
Fix auto-linking logic for boost_numpy (Windows only).
2018-06-04 09:34:00 -04:00
Stefan Seefeld
24313709a7
Fix auto-linking logic (Windows only).
2018-04-12 23:39:22 -04:00
Stefan Seefeld
f3df1bf912
Remove redundant pragma once directives.
2018-04-07 17:05:18 -04:00
Stefan Seefeld
d4d41d94ae
Add Python version to library suffix.
2018-02-13 17:22:34 -05:00
Stefan Seefeld
b9d0d97499
Fix MSVC compilation failure.
2017-11-16 10:26:30 -05:00
Stefan Seefeld
9ad3313d1f
Fix deprecated elementwise comparison warning / error.
2017-11-07 19:43:16 -05:00
Stefan Seefeld
bf9a03399b
Revert "Avoid multiple template instances of boost::python::details::get_signature when multiple calling conventions are enabled"
...
This reverts commit b49a186b6f .
2017-10-30 08:04:01 -04:00
Stefan Seefeld
2d9871fc5a
Fix unresolved symbol error with MSVC.
2017-10-27 13:58:56 -04:00
Gary Furnish
30c9eb1fb6
Fix c++11 detection.
2017-10-25 08:07:17 -04:00
Gary Furnish
7c5e478432
Fix autoptr/unique_ptr ifdef for VS2017.
2017-10-25 08:07:17 -04:00
Raffi Enficiaud
8d37630cc8
Fix warning: returning the proper type for object sizes
2017-10-25 08:03:18 -04:00
Marvin Schmidt
9d2903cd5e
Fix symbol visibility of init method
...
This was properly an oversight when switching to the BOOST_SYMBOL_*
symbols from Boost.Config in commit 0224f54a (see #1 )
Since Boost.Config is already doing the differentiation between
different platforms and compilers we can simplify this bit and just
use BOOST_SYMBOL_EXPORT
2017-10-24 20:18:59 -04:00
Mark Borgerding
ecf05c4a90
ndarray.shape(k),strides(k) act more like their python counterparts (negative indexing, bounds checking) (issue #157 )
2017-09-25 09:08:14 -04:00
Edward Diener
00b7ed03a7
Remove executable attribute for files.
2017-09-18 08:21:30 -04:00
Stefan Seefeld
b3b67273b0
Fix traits qualification.
2017-08-13 20:44:52 -04:00
Stefan Seefeld
2d1f66fd19
Remove module as obsoleted by Boost.NumPy.
2017-07-20 11:39:58 -04:00
shreyans800755
142661dac8
Use std type_traits instead of boost type_traits
...
Fixes https://github.com/boostorg/python/issues/106
2017-06-25 14:17:41 -04:00
John Kirkham
d6554d6c65
Handle BOOST_LIB_NAME for NumPy on Python 2/3
...
This was reusing the Python 2 name on Python 3, which is incorrect since
the Python 3 library for Boost.NumPy has a `3` in it. Hence this checks
against the Python version and defines this correctly.
2017-06-12 09:32:31 -04:00
John Kirkham
90829714cc
Fix BOOST_LIB_NAME for Python 3
...
This was reusing the Python 2 name on Python 3, which is incorrect since
the Python 3 library for Boost.Python now has a `3` in it. Hence this
checks against the Python version and defines this correctly.
2017-06-12 09:32:31 -04:00
Stefan Seefeld
c4fe369d69
Require NumPy 1.7 API.
2017-06-02 19:31:54 -04:00
Raphael Isemann
1452dfe713
Reencoded a few headers that used Windows-1252 with UTF-8.
...
Nearly every header in the boost codebase is UTF-8, but here there
are a few headers which are using Windows-1252, which makes it impossible
for some tools to parse those files. This patch just reencodes them
with UTF-8 like the rest of the codebase. I checked that the name of the
author is still correct after this change.
No functional change intended.
2017-06-02 17:44:46 -04:00
John Zwinck
b2f53e1acf
exec/eval(): add overloads for char const*
...
Many times the caller may have a string created in C++,
so there is no need to wrap it in a Python object when
the only thing done with the object is extract<char*>.
2017-05-04 19:29:56 -04:00
Stefan Seefeld
3844c4fc5f
Fix more missing symbols.
2017-04-14 13:14:05 -04:00
Stefan Seefeld
edd890bd2b
More dllexport fixes
2017-03-24 15:39:13 -04:00
Stefan Seefeld
352792c90a
Add more export symbols.
2017-03-16 20:14:39 -04:00
SPKorhonen
bd7b8ecba5
Fix for missing export symbols, issue #98 ( #110 )
...
Fix for missing export symbols in shared library of boost::python::numpy
2017-02-15 11:53:28 -05:00
Jürgen Hunold
0224f54ae0
Switch^Cisibility support to BOOST_SYMBOL_EXPORT. Refs #2114
2017-02-13 10:43:23 -05:00