Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Enforce Exact Name Match Getting Items - Python API

#1
When calling robolink.Robolink.Item() to get an item from the item tree, I would like to request that an optional argument be added, allowing only items matching the exact name to be returned. If this option were enabled and no item existed in the tree, an invalid item would be returned.

IS:

Code:
RDK = robolink.Robolink()
my_item = RDK.Item('')
my_item.Valid()
>> True


REQUESTED FUNCTIONALITY:
Code:
RDK = robolink.Robolink()
my_item = RDK.Item('')
my_item.Valid()
>> True
my_other_item = RDK.Item('', exact_match=True)
my_other_item.Valid()
>> False
#2
Thank you for your feedback. We'll add the option to have exact name match as an improvement in the future.
  




Users browsing this thread:
1 Guest(s)