Paul Sokolovsky
2f5d113fad
py/warning: Support categories for warnings.
...
Python defines warnings as belonging to categories, where category is a
warning type (descending from exception type). This is useful, as e.g.
allows to disable warnings selectively and provide user-defined warning
types. So, implement this in MicroPython, except that categories are
represented just with strings. However, enough hooks are left to implement
categories differently per-port (e.g. as types), without need to patch each
and every usage.
2019-01-31 16:48:30 +11:00
..
2018-09-20 14:33:10 +10:00
2018-10-13 15:16:33 +11:00
2018-10-13 15:16:33 +11:00
2017-12-08 19:07:00 +11:00
2016-12-09 22:50:58 +11:00
2018-10-13 15:16:33 +11:00
2018-10-13 15:16:33 +11:00
2018-10-13 15:16:33 +11:00
2018-10-13 15:16:33 +11:00
2018-10-13 15:16:33 +11:00
2018-10-13 15:16:33 +11:00
2018-10-13 15:16:33 +11:00
2018-10-13 15:16:33 +11:00
2017-10-05 10:49:44 +11:00
2018-12-13 01:26:55 +11:00
2017-10-04 12:37:50 +11:00
2017-11-16 13:17:51 +11:00
2017-08-17 16:19:35 +10:00
2019-01-27 13:01:28 +11:00
2017-10-04 12:37:50 +11:00
2018-07-08 21:31:09 +10:00
2019-01-27 11:08:25 +11:00
2019-01-27 14:09:44 +11:00
2018-09-15 12:17:09 +10:00
2018-10-28 00:38:18 +11:00
2019-01-04 17:09:41 +11:00
2018-10-28 00:38:18 +11:00
2018-10-01 13:31:11 +10:00
2018-09-15 12:17:09 +10:00
2018-09-20 14:33:10 +10:00
2018-09-20 14:33:10 +10:00
2018-09-04 14:31:28 +10:00
2018-10-15 00:20:49 +11:00
2018-09-04 14:31:28 +10:00
2018-09-04 14:31:28 +10:00
2018-10-01 13:31:11 +10:00
2018-09-04 14:31:28 +10:00
2018-03-01 17:00:02 +11:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2018-12-20 17:52:16 +11:00
2018-12-20 17:52:16 +11:00
2018-06-22 17:00:29 +10:00
2018-06-12 12:17:43 +10:00
2017-07-31 18:35:40 +10:00
2018-05-10 23:14:23 +10:00
2018-03-16 23:54:06 +11:00
2018-12-22 01:40:38 +11:00
2018-07-09 14:40:02 +10:00
2018-08-02 14:17:24 +10:00
2018-05-18 23:31:00 +10:00
2017-11-15 11:56:58 +11:00
2018-06-12 13:53:43 +10:00
2017-07-31 18:35:40 +10:00
2019-01-27 13:01:28 +11:00
2017-08-30 21:02:00 +10:00
2018-02-21 22:39:25 +11:00
2017-08-30 21:02:00 +10:00
2019-01-10 23:08:07 +11:00
2018-09-26 15:03:04 +10:00
2018-04-04 14:24:03 +10:00
2017-09-01 11:11:09 +10:00
2018-12-22 01:40:38 +11:00
2017-12-11 13:49:09 +11:00
2017-02-22 12:58:11 +11:00
2019-01-31 16:48:30 +11:00
2018-05-01 15:53:25 +10:00
2017-07-31 18:35:40 +10:00
2017-12-07 10:31:14 +02:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2018-12-04 17:17:25 +11:00
2017-07-18 11:57:39 +10:00
2018-05-21 12:48:26 +10:00
2017-12-29 14:05:48 +11:00
2018-10-15 00:20:49 +11:00
2017-12-29 22:24:53 +11:00
2017-12-29 22:24:46 +11:00
2017-12-28 16:46:30 +11:00
2018-04-27 15:10:42 +10:00
2017-12-29 22:24:46 +11:00
2018-05-15 11:17:28 +10:00
2017-12-28 16:46:30 +11:00
2019-01-31 16:48:30 +11:00
2019-01-25 16:03:05 +11:00
2018-12-20 17:40:48 +11:00
2018-12-20 17:40:48 +11:00
2017-07-31 18:35:40 +10:00
2017-10-04 12:37:50 +11:00
2018-12-06 18:02:41 +11:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2018-09-20 14:33:10 +10:00
2018-05-11 13:44:50 +10:00
2018-12-13 01:20:55 +11:00
2017-07-31 18:35:40 +10:00
2018-12-10 16:01:05 +11:00
2018-03-17 00:31:40 +11:00
2017-07-31 18:35:40 +10:00
2018-09-27 15:21:25 +10:00
2019-01-04 17:22:40 +11:00
2018-07-10 16:33:57 +10:00
2018-10-01 13:31:11 +10:00
2017-07-31 18:35:40 +10:00
2017-10-04 12:37:50 +11:00
2018-09-20 14:33:10 +10:00
2018-09-20 14:33:10 +10:00
2018-12-07 17:28:04 +11:00
2017-09-18 00:06:43 +03:00
2017-10-24 22:39:36 +11:00
2018-03-13 14:03:15 +11:00
2017-07-31 18:35:40 +10:00
2018-10-23 11:22:50 +11:00
2018-02-20 17:56:58 +11:00
2017-11-20 09:30:06 +02:00
2017-11-20 09:30:06 +02:00
2017-10-04 12:37:50 +11:00
2017-12-12 16:53:44 +11:00
2017-10-04 12:37:50 +11:00
2017-10-04 12:37:50 +11:00
2018-02-14 23:17:06 +11:00
2017-10-04 12:37:50 +11:00
2017-12-19 14:01:19 +11:00
2017-10-04 12:37:50 +11:00
2018-09-27 11:23:31 +10:00
2018-10-22 22:49:05 +11:00
2017-11-16 13:53:04 +11:00
2018-04-10 13:41:32 +10:00
2017-06-09 17:33:01 +03:00
2018-10-22 22:49:05 +11:00
2017-10-04 12:37:50 +11:00
2017-08-29 13:16:30 +10:00
2018-12-07 17:28:04 +11:00
2018-06-08 11:48:25 +10:00
2017-07-31 18:35:40 +10:00
2017-11-24 14:48:23 +11:00
2018-09-20 14:33:10 +10:00
2017-07-31 18:35:40 +10:00
2018-09-20 22:06:41 +10:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2019-01-27 11:08:25 +11:00
2016-11-16 18:13:50 +11:00
2018-12-04 01:03:44 +11:00
2018-02-19 00:26:14 +11:00
2017-12-11 13:49:09 +11:00
2018-12-15 14:32:09 +11:00
2018-02-19 16:12:44 +11:00
2018-09-20 14:41:35 +10:00
2018-06-06 14:28:23 +10:00
2017-03-14 11:52:05 +11:00
2018-05-18 15:23:02 +10:00
2017-07-31 18:35:40 +10:00
2017-07-18 11:57:39 +10:00
2018-12-07 17:28:04 +11:00
2017-12-05 00:38:41 +02:00
2018-12-27 14:20:31 +11:00
2019-01-31 16:48:30 +11:00
2017-03-20 15:20:26 +11:00
2018-10-28 00:38:18 +11:00
2018-10-28 00:38:18 +11:00
2017-10-04 12:37:50 +11:00
2017-10-05 10:49:44 +11:00
2017-07-31 18:35:40 +10:00
2017-12-11 22:39:12 +11:00
2017-12-11 13:49:09 +11:00
2017-07-31 18:35:40 +10:00
2018-08-14 17:36:08 +10:00
2018-08-14 17:36:08 +10:00
2018-11-26 16:13:08 +11:00
2017-09-06 16:43:09 +10:00
2019-01-31 16:48:30 +11:00
2017-10-05 10:49:44 +11:00
2017-09-21 20:29:41 +10:00
2019-01-31 16:48:30 +11:00