Details
-
Type:
Improvement
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: daf_base
-
Labels:None
-
Story Points:4
-
Epic Link:
-
Sprint:AP S18-6, AP F18-1
-
Team:Alert Production
Description
Implement RFC-434 by adding getScalar(name) and getArray(name) methods to PropertySet and PropertyList and possibly adding a deprecation warning to get.
getArray and getScalar primarily make sense if the element type is a scalar (numeric or string), rather than a PropertySet or PropertyList. I don't see how getArray can return an array and getScalar can return a scalar unless the element type is a scalar. So I have made both methods raise TypeError if the element type is not a scalar.
Thus get is still a useful method and cannot be deprecated.