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
..
2017-08-07 23:08:20 +02:00
2017-10-22 13:33:58 -03:00
2017-11-22 17:37:41 -04:00
2017-08-17 09:33:27 -04:00
2017-06-12 09:56:55 -03:00
2017-09-10 12:28:03 +02:00
2017-01-31 17:05:44 +01:00
2017-09-12 08:06:46 +02:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-06-10 16:44:21 +02:00
2017-09-21 18:07:48 -03:00
2017-09-21 18:07:48 -03:00
2017-11-30 13:33:24 -04:00
2017-11-30 13:33:24 -04:00
2017-11-22 17:37:41 -04:00
2017-09-06 10:21:11 +02:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-11-22 17:37:41 -04:00
2017-11-07 12:33:05 -04:00
2017-11-22 17:37:41 -04:00
2017-08-05 18:46:22 -04:00
2017-09-16 12:02:49 +02:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-10-12 09:45:55 -04:00
2017-10-12 09:45:55 -04:00
2017-11-16 22:24:36 +01:00
2017-11-16 22:24:36 +01:00
2016-11-20 21:21:54 +01:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-07-28 20:40:35 -04:00
2017-08-04 10:47:34 -04:00
2017-11-22 17:37:41 -04:00
2017-08-28 16:08:53 +02:00
2017-08-25 02:12:43 +02:00
2017-08-25 02:12:43 +02:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-09-10 12:28:03 +02:00
2017-09-10 12:28:03 +02:00
2017-11-07 12:35:27 -04:00
2017-11-07 12:35:27 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-11-22 17:37:41 -04:00
2017-08-17 09:33:27 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-09-19 23:16:45 -03:00
2017-09-19 23:17:21 -03:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-10-25 08:18:21 -03:00
2017-08-30 14:22:00 +02:00
2017-08-30 14:22:00 +02:00
2017-09-06 15:20:52 +02:00
2017-08-30 11:11:38 +02:00
2017-09-11 10:09:32 +02:00
2017-10-25 08:18:21 -03:00
2017-08-05 18:46:22 -04:00
2017-10-25 08:18:21 -03:00
2017-11-22 17:37:41 -04:00
2017-08-05 18:46:22 -04:00
2017-09-10 12:25:10 +02:00
2017-09-10 12:25:10 +02:00
2017-09-10 12:25:10 +02:00
2017-10-25 08:18:21 -03:00
2017-11-01 22:48:36 -03:00
2017-11-01 22:48:36 -03:00