Wire_obj ^ 2
should throw an error, I think
#763
Labels
documentation
Improvements or additions to documentation
Milestone
My understanding is that the caret operator, which is an overload for
Wire.location_at()
(or any other object which inherits from Mixin1D), accepts an argument where0 <= distance <= 1
whenposition_mode = PositionMode.PARAMETER
(the default).If this is true, calling the caret operator with a 2nd-operand greater than
1
should be invalid, and should raise an error instead of acting silently.This will help people's understanding of what the function does, and may help catch bugs as well.
The text was updated successfully, but these errors were encountered: