Files
pysim/pySim
Neels Hofmeyr c5e7e59928 ConfigurableParameter: safer val length check
validate_val() calls len() to check the value against allow_len,
min_len and max_len. len() requires the object to have a __len__()
method, which integers do not — calling len() on an int raises
TypeError.

Fix this by checking for __len__ first: if present, use len(val) as
usual; otherwise fall back to len(str(val)), which gives the number
of decimal digits for integer values.

Change-Id: Ibe91722ed1477b00d20ef5e4e7abd9068ff2f3e4
Jenkins: skip-card-test
2026-06-21 03:46:16 +07:00
..
2025-09-24 17:59:17 +00:00
2024-06-10 08:59:39 +02:00
2025-09-24 17:59:17 +00:00
2026-03-20 14:32:59 -07:00
2025-09-24 17:59:17 +00:00
2024-09-03 21:57:47 +02:00