Campbell Barton
6a49041be3
Fix string lookups asserting or failing with unsupported collections
...
A recent change from [0] added an assert when a string lookup was
performed on a collection item with no name-property,
but silently failed with release builds.
This isn't correct in a couple of ways.
The assert makes it seem like the RNA API needs to be updated when
it's in fact valid to have collection items without a name-property.
It also misleads script authors to silently fail since it implies a
key that exists would return a result.
Raise a TypeError exception when string lookups are attempted on
collections that don't support them.
This change also applies to get() & __contains__().
[0]: 5bb3a3f157
2023-04-26 16:16:19 +10:00
..
2023-03-30 10:51:59 +02:00
2023-03-30 10:51:59 +02:00
2023-04-12 05:22:26 +02:00
2022-02-11 09:14:36 +11:00
2023-02-12 14:56:05 +11:00
2022-02-11 09:14:36 +11:00
2023-03-09 12:05:30 +11:00
2022-02-11 09:14:36 +11:00
2022-11-08 11:13:58 +11:00
2022-02-11 09:14:36 +11:00
2023-02-12 14:56:05 +11:00
2022-02-11 09:14:36 +11:00
2023-03-03 21:53:34 +01:00
2022-02-11 09:14:36 +11:00
2023-02-12 14:56:05 +11:00
2022-02-11 09:14:36 +11:00
2023-03-30 10:51:59 +02:00
2023-03-30 10:51:59 +02:00
2023-02-12 14:56:05 +11:00
2022-02-11 09:14:36 +11:00
2022-11-08 11:13:58 +11:00
2022-02-11 09:14:36 +11:00
2023-03-17 16:45:42 +11:00
2022-02-11 09:14:36 +11:00
2023-03-30 10:51:59 +02:00
2023-03-30 10:51:59 +02:00
2023-02-15 16:19:14 +11:00
2022-02-11 09:14:36 +11:00
2022-04-06 19:08:10 +10:00
2023-01-18 18:41:13 +11:00
2023-03-06 16:01:47 +01:00
2022-07-12 16:05:13 +10:00
2022-09-19 14:52:27 +10:00
2022-11-02 10:18:19 +11:00
2023-02-09 11:33:48 +11:00
2023-02-15 16:19:14 +11:00
2023-02-12 14:56:05 +11:00
2022-03-08 22:15:12 +11:00
2022-03-08 22:15:12 +11:00
2023-03-03 16:29:43 +11:00
2022-04-08 11:49:50 +10:00
2022-02-11 09:14:36 +11:00
2022-11-08 11:13:58 +11:00
2022-02-11 09:14:36 +11:00
2022-03-14 17:08:46 +01:00
2022-11-02 10:18:19 +11:00
2023-02-21 16:39:58 +01:00
2022-02-11 09:14:36 +11:00
2022-11-08 11:13:58 +11:00
2022-02-11 09:14:36 +11:00
2023-02-12 14:56:05 +11:00
2022-02-11 09:14:36 +11:00
2022-08-04 16:13:00 +02:00
2022-02-11 09:14:36 +11:00
2023-03-24 08:34:21 -04:00
2022-03-14 17:08:46 +01:00
2022-02-11 09:14:36 +11:00
2023-02-12 14:56:05 +11:00
2022-04-26 16:51:20 +10:00
2022-11-07 22:38:32 +11:00
2022-02-11 09:14:36 +11:00
2023-03-06 16:01:47 +01:00
2023-03-06 16:01:47 +01:00
2022-07-13 08:43:57 -04:00
2022-02-11 09:14:36 +11:00
2023-04-14 13:29:19 +02:00
2022-02-11 09:14:36 +11:00
2022-09-19 14:24:31 +10:00
2022-02-11 09:14:36 +11:00
2023-04-24 11:48:22 +02:00
2022-05-19 11:17:01 +10:00
2023-02-21 16:39:58 +01:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2023-04-26 16:16:19 +10:00
2023-03-29 14:37:34 +11:00
2023-02-12 14:56:05 +11:00
2022-03-28 17:15:41 +11:00
2022-11-08 11:13:58 +11:00
2022-02-11 09:14:36 +11:00
2022-11-08 11:13:58 +11:00
2022-02-11 09:14:36 +11:00
2023-02-15 16:19:14 +11:00
2022-09-21 12:00:01 +10:00
2023-04-12 05:22:26 +02:00
2023-03-30 10:51:59 +02:00