You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to set a length-one range with a length-one array, an off-by-one error in `copying.copy_range` meant that the value was discarded. Fix that, and tidy up the semantics of `copy_range` a little while we're here. Closes#12073.
Authors:
- Lawrence Mitchell (https://github.com/wence-)
Approvers:
- GALI PREM SAGAR (https://github.com/galipremsagar)
URL: #12075
Describe the bug
Trying to set a length-one slice of a series with a length-one array (rather than a scalar) loses the value.
Steps/Code to reproduce bug
Expected behavior
Setting a length-one range with a length-one array should work.
Why does this happen?
There's an off-by-one in copying.copy_range:
The text was updated successfully, but these errors were encountered: