Dino Viehland
04f0bbfbed
bpo-38075: Port _randommodule.c to PEP-384 (GH-15798)
...
- Migrate `Random_Type` to `PyType_FromSpec`
- To simulate an old use of `PyLong_Type.tp_as_number->nb_absolute`, I added
code to the module init function to stash `int.__abs__` for later
use. Ideally we'd use `PyType_GetSlot()` instead, but it doesn't currently
work for static types in CPython, and implementing it just for this case
doesn't seem worth it.
- Do exact check for long and dispatch to PyNumber_Absolute, use vector call when not exact.
2019-09-13 03:12:27 -07:00
..
2019-09-12 19:30:00 -05:00
2019-09-12 11:09:32 +01:00
2019-08-21 23:00:04 +02:00
2019-09-01 12:16:51 +03:00
2019-09-07 10:44:36 +03:00
2019-09-12 19:30:00 -05:00
2019-07-12 20:15:48 -07:00
2019-06-03 20:40:15 +02:00
2019-07-21 16:12:33 -04:00
2019-08-29 17:49:08 +03:00
2019-09-12 19:30:00 -05:00
2019-08-30 16:21:19 -04:00
2019-07-11 17:59:05 +09:00
2019-08-04 14:12:48 +03:00
2018-11-27 13:27:31 +02:00
2019-05-30 19:13:39 -07:00
2019-03-18 15:44:11 +09:00
2019-07-08 17:19:25 +09:00
2018-09-21 15:33:56 -04:00
2018-12-30 15:42:32 -08:00
2019-09-01 12:03:39 +03:00
2019-03-27 12:52:18 +01:00
2019-08-14 12:31:43 +02:00
2019-09-01 12:03:39 +03:00
2019-07-08 17:19:25 +09:00
2019-09-01 11:18:35 +03:00
2019-07-13 07:39:18 -07:00
2019-07-08 17:19:25 +09:00
2019-09-12 19:30:00 -05:00
2018-09-28 12:39:43 -07:00
2019-08-08 17:57:10 +09:00
2019-03-13 22:59:55 +02:00
2019-05-30 19:13:39 -07:00
2019-09-12 15:20:37 +01:00
2018-09-18 09:54:26 +03:00
2019-05-30 19:13:39 -07:00
2019-09-01 12:03:39 +03:00
2019-09-12 18:15:44 +01:00
2019-05-30 19:13:39 -07:00
2019-09-13 03:12:27 -07:00
2018-09-11 16:14:00 -07:00
2019-07-04 19:31:34 +09:00
2019-09-09 09:06:55 -07:00
2019-08-21 15:27:33 -07:00
2019-09-03 12:21:45 +03:00
2019-09-10 17:04:08 +01:00
2019-05-30 19:13:39 -07:00
2019-09-12 10:12:53 +01:00
2019-05-27 16:39:22 +02:00
2019-05-29 22:12:38 +02:00
2019-09-05 18:06:49 +02:00
2019-09-10 17:04:08 +01:00
2019-09-05 18:06:49 +02:00
2019-06-24 13:59:50 -04:00
2017-11-28 17:56:10 +02:00
2019-05-30 19:13:39 -07:00
2019-05-30 19:13:39 -07:00
2019-07-11 14:57:42 -07:00
2018-11-27 13:27:31 +02:00
2018-06-06 15:50:50 +02:00
2019-07-14 05:15:32 -07:00
2019-05-17 15:29:13 +05:30
2018-01-29 11:33:57 -08:00
2019-08-29 18:30:04 +02:00
2019-08-28 18:56:17 -07:00
2019-09-09 17:44:59 +02:00
2017-12-12 13:55:04 +02:00
2019-09-09 09:05:21 -07:00
2019-09-10 03:30:36 -07:00
2019-05-06 12:56:50 -04:00
2019-09-09 11:47:14 +03:00
2019-09-01 12:16:51 +03:00
2018-11-26 20:21:31 -06:00
2019-07-27 14:04:29 -07:00
2019-09-12 19:30:00 -05:00
2019-07-08 17:19:25 +09:00
2018-11-30 09:40:16 +02:00
2019-08-20 12:20:47 -07:00
2019-09-09 02:20:38 -07:00
2019-09-01 12:16:51 +03:00
2019-09-11 17:03:37 +01:00
2018-05-08 07:48:50 +03:00
2019-09-10 05:59:43 -07:00
2019-09-01 12:03:39 +03:00
2019-06-17 14:27:23 +02:00
2018-09-13 21:57:31 -07:00
2017-11-28 17:56:10 +02:00
2019-07-08 17:19:25 +09:00
2019-08-23 15:20:30 -07:00
2019-09-12 19:30:00 -05:00
2019-09-12 19:30:00 -05:00
2019-09-12 19:30:00 -05:00
2019-09-09 15:46:26 +02:00
2019-09-12 11:02:48 +01:00
2019-08-20 21:53:59 -07:00
2019-02-18 15:26:37 +02:00
2017-12-04 14:29:05 +02:00
2019-06-13 02:16:41 +02:00
2018-11-27 13:27:31 +02:00
2019-09-10 03:33:30 -07:00
2019-08-27 00:13:12 -04:00
2019-05-08 20:59:35 -07:00
2019-09-10 17:04:08 +01:00
2019-05-08 20:59:35 -07:00
2019-04-09 11:19:46 -07:00
2019-05-29 22:12:38 +02:00
2019-05-30 19:13:39 -07:00
2019-05-30 19:13:39 -07:00
2019-09-10 03:27:03 -07:00