pybind11/include/pybind11
Henry Schreiner cf0d0f9d5a Matching Python 2 int behavior on Python 2 (#1186)
Pybind11's default conversion to int always produces a long on Python 2 (`int`s and `long`s were unified in Python 3). This patch fixes `int` handling to match Python 2 on Python 2; for short types (`size_t` or smaller), the number will be returned as an `int` if possible, otherwise `long`. Requires Python 2.5+.

This is needed for things like `sys.exit`, which refuse to accept a `long`.
2017-11-30 13:33:24 -04:00
..
detail Matching Python 2 int behavior on Python 2 (#1186) 2017-11-30 13:33:24 -04:00
attr.h Reduce binary size overhead of new-style constructors 2017-08-28 16:08:53 +02:00
buffer_info.h Move internal headers into detail subdirectory 2017-08-17 04:06:35 +02:00
cast.h Matching Python 2 int behavior on Python 2 (#1186) 2017-11-30 13:33:24 -04:00
chrono.h Force hidden visibility on pybind code 2017-08-14 11:40:38 -04:00
common.h Add a dummy common.h header with a deprecation warning 2017-09-06 15:22:26 +02:00
complex.h Add -Wdeprecated to test suite and fix associated warnings (#1191) 2017-11-22 17:37:41 -04:00
eigen.h Add -Wdeprecated to test suite and fix associated warnings (#1191) 2017-11-22 17:37:41 -04:00
embed.h Make PYBIND11_MODULE name usable with define (#1082) 2017-09-13 19:02:53 +02:00
eval.h Force hidden visibility on pybind code 2017-08-14 11:40:38 -04:00
functional.h Simplify function signature annotation and parsing 2017-09-16 12:02:49 +02:00
iostream.h Utility for redirecting C++ streams to Python (#1009) 2017-08-25 02:12:43 +02:00
numpy.h Fix dtype string leak 2017-09-19 23:16:45 -03:00
operators.h Access C++ hash functions from Python and vice versa (#1034) 2017-08-30 14:22:00 +02:00
options.h Move internal headers into detail subdirectory 2017-08-17 04:06:35 +02:00
pybind11.h support docstrings in enum::value() (#1160) 2017-11-16 22:24:36 +01:00
pytypes.h Add -Wdeprecated to test suite and fix associated warnings (#1191) 2017-11-22 17:37:41 -04:00
stl_bind.h Update enum_ and bind_vector to new-style init and pickle 2017-08-31 01:28:07 +02:00
stl.h Make it possible to generate constexpr signatures in C++11 mode 2017-09-16 12:02:49 +02:00