Wang Mingyu
b416f34548
python3-portion: upgrade 2.3.1 -> 2.4.0
...
Changelog:
==========
Added
------
An AbstractDiscreteInterval class to ease the creation of specialized discrete intervals (experimental).
A create_api function to generate an API similar to the one of portion but configured to use a given subclass of Interval (experimental, see Specialize & customize intervals).
Changed
-------
Speed up repr and to_string for Interval instances (see #76 , adm271828).
Some internal changes to ease subclassing:
from_string and from_data accepts a klass parameter to specify which class should be used to create Interval instances (default is Interval).
Add a klass parameter for open, closed, openclosed, closedopen, singleton and empty (default is Interval).
Add a _klass class attribute in IntervalDict to specify how to create Interval instances (default is Interval).
IntervalDict uses self.__class__ to preserve subclasses when creating new instances.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com >
Signed-off-by: Khem Raj <raj.khem@gmail.com >
2023-03-17 07:06:55 -07:00
..
2023-03-10 09:01:54 -08:00
2023-03-01 20:22:25 -08:00
2023-03-01 20:22:25 -08:00
2023-02-24 08:45:44 -08:00
2023-03-10 09:01:54 -08:00
2023-02-24 08:45:44 -08:00
2023-02-27 09:43:09 -08:00
2023-02-22 01:07:43 -08:00
2022-04-22 16:26:22 +00:00
2022-07-26 20:49:05 -04:00
2023-02-27 09:43:08 -08:00
2023-02-27 09:43:08 -08:00
2023-03-04 10:41:27 -08:00
2023-03-09 21:58:44 -08:00
2022-07-15 12:48:34 -04:00
2023-02-27 09:43:08 -08:00
2021-08-03 10:21:25 -07:00
2023-03-09 21:58:44 -08:00
2022-03-28 08:35:31 -04:00
2023-02-08 08:51:44 -08:00
2023-03-09 21:58:44 -08:00
2022-12-12 11:17:23 -08:00
2021-11-11 06:36:04 -08:00
2022-12-05 09:16:24 -08:00
2023-02-27 09:43:08 -08:00
2022-11-02 07:58:18 -07:00
2022-03-07 09:27:53 -08:00
2022-11-25 18:11:10 -08:00
2023-02-27 09:43:08 -08:00
2023-02-27 09:43:08 -08:00
2022-11-07 08:40:22 -08:00
2022-09-20 18:55:26 -07:00
2022-11-28 11:32:26 -08:00
2023-02-08 08:51:44 -08:00
2022-12-12 11:17:23 -08:00
2023-03-09 21:58:44 -08:00
2022-10-25 08:14:08 -07:00
2022-05-14 08:17:25 -07:00
2020-08-25 10:33:34 -07:00
2023-03-10 09:01:54 -08:00
2022-03-03 08:48:07 -08:00
2021-08-03 10:21:25 -07:00
2023-03-04 10:41:27 -08:00
2022-06-30 13:39:26 -04:00
2021-01-28 10:51:52 -08:00
2023-02-12 21:48:33 -08:00
2022-03-19 19:00:34 -07:00
2023-03-04 10:41:27 -08:00
2022-03-04 17:41:45 -08:00
2021-11-19 08:30:36 -08:00
2022-08-23 19:12:52 -07:00
2023-02-27 09:43:08 -08:00
2021-08-03 10:21:25 -07:00
2022-12-23 08:52:22 -08:00
2023-02-27 09:43:09 -08:00
2022-09-20 18:55:26 -07:00
2023-03-09 21:58:44 -08:00
2023-03-04 10:41:27 -08:00
2023-02-27 09:43:08 -08:00
2017-12-22 19:43:53 -08:00
2021-08-03 10:21:25 -07:00
2021-08-03 10:21:25 -07:00
2021-08-03 10:21:25 -07:00
2021-08-03 10:21:25 -07:00
2023-03-17 07:06:55 -07:00
2022-12-23 08:52:22 -08:00
2023-03-17 07:06:55 -07:00
2022-09-03 12:20:15 -07:00
2023-03-17 07:06:55 -07:00
2023-03-04 10:41:27 -08:00
2023-03-02 17:45:37 -08:00
2023-02-12 21:48:33 -08:00
2023-03-01 20:22:25 -08:00
2022-09-28 14:54:31 -07:00
2023-03-04 10:41:27 -08:00
2023-02-27 09:43:08 -08:00
2019-05-02 14:13:57 -07:00
2022-07-02 11:37:03 -04:00
2023-03-04 10:41:27 -08:00
2022-10-24 09:56:33 -07:00
2021-08-03 10:21:25 -07:00
2021-02-19 10:02:43 -08:00
2023-03-04 10:41:27 -08:00
2022-07-02 11:37:03 -04:00
2022-01-19 08:58:09 -08:00
2022-02-03 08:40:20 -08:00
2022-11-25 18:11:10 -08:00
2023-01-11 08:37:58 -08:00
2021-08-03 10:21:25 -07:00
2023-03-01 20:22:25 -08:00
2023-03-09 21:58:44 -08:00
2023-03-17 07:06:55 -07:00
2022-12-27 16:03:06 -08:00
2023-03-04 10:41:27 -08:00
2021-08-03 10:21:25 -07:00
2023-03-10 09:01:54 -08:00
2022-11-07 08:39:05 -08:00
2023-03-04 10:41:27 -08:00
2023-03-04 10:41:27 -08:00
2022-10-24 09:56:33 -07:00
2023-02-27 09:43:08 -08:00
2022-07-17 19:16:22 -07:00
2019-09-17 20:47:11 -07:00
2023-02-08 08:51:44 -08:00
2021-09-20 08:43:37 -07:00
2021-08-03 10:21:25 -07:00
2020-05-19 17:14:09 -07:00
2021-08-03 10:21:25 -07:00
2020-08-10 10:57:57 -07:00
2023-02-22 01:07:43 -08:00
2022-03-16 09:25:28 -04:00
2021-08-03 10:21:25 -07:00
2023-03-17 07:06:55 -07:00
2022-03-04 17:41:45 -08:00
2023-03-09 21:58:44 -08:00
2022-05-14 08:17:25 -07:00
2022-11-14 11:55:59 -08:00
2022-11-28 11:32:26 -08:00
2023-02-27 09:43:09 -08:00
2022-03-04 17:41:45 -08:00
2021-11-03 06:57:49 -07:00
2023-03-04 10:41:27 -08:00
2023-03-09 21:58:44 -08:00
2022-11-28 11:32:26 -08:00
2022-08-13 07:05:31 -07:00
2022-10-24 09:56:34 -07:00
2023-03-04 10:41:27 -08:00
2022-11-19 08:11:45 -08:00
2022-12-23 08:52:22 -08:00
2022-03-04 17:41:45 -08:00
2022-03-17 08:54:17 -04:00
2023-02-12 08:56:16 -08:00
2021-08-03 10:21:25 -07:00
2022-11-07 08:39:05 -08:00
2023-02-27 09:43:09 -08:00
2022-07-24 06:28:56 -07:00
2022-01-31 08:15:17 -08:00
2023-02-27 09:43:09 -08:00
2021-08-03 10:21:25 -07:00
2023-01-17 01:05:53 -08:00
2022-12-13 09:18:18 -08:00
2023-02-27 09:43:09 -08:00
2022-11-09 10:17:15 -08:00
2022-07-27 21:21:43 -07:00
2023-03-10 09:01:54 -08:00
2022-03-01 09:06:56 -08:00
2022-07-06 05:08:49 -07:00
2022-08-16 20:10:22 -07:00
2023-02-27 09:43:09 -08:00
2022-03-04 17:41:45 -08:00
2022-03-10 10:03:30 -05:00
2023-02-27 09:43:09 -08:00
2023-02-27 09:43:09 -08:00
2020-06-19 10:17:50 -07:00
2023-02-27 09:43:09 -08:00
2023-02-22 01:07:43 -08:00
2023-03-09 21:58:44 -08:00
2023-02-12 08:56:16 -08:00
2021-08-03 10:21:25 -07:00
2021-10-18 09:49:37 -07:00
2020-04-04 07:22:16 -07:00
2023-03-04 10:41:27 -08:00
2021-09-20 08:43:37 -07:00
2023-02-12 08:56:16 -08:00
2023-02-27 09:43:09 -08:00
2023-03-04 10:41:27 -08:00
2022-01-18 08:59:58 -08:00
2022-03-04 17:41:45 -08:00
2023-03-09 21:58:44 -08:00
2020-04-03 14:45:54 -07:00
2022-11-29 14:07:52 -08:00
2023-02-27 09:43:09 -08:00
2021-08-03 10:21:25 -07:00