gspread icon indicating copy to clipboard operation
gspread copied to clipboard

copy_range() doc enhancement

Open brianjmurrell opened this issue 6 months ago • 1 comments

Describe the bug A doc bug, but I can't seem to find where the doc source is, so I will just report it here.

The explanation of dest in copy_range() seems to imply that no matter the size of the dest range, the source range is only copied once into the dest range. My experience is different. If I copy A305:BR305 to A306:BR328, I get a copy of the range of A305:BR305 into each of the ranges of A306:BR328. Happily this is what I wanted and what I went out on a limb to try to achieve despite the method's description.

It might be helpful to future users to spell this happy convenience out in the docs.

Now that said, I have not tried what happens when the source range is multiple lines [and the dest range is at least 2x, but a multiple of the source range's lines -- or not even] :smile:

brianjmurrell avatar Apr 26 '25 06:04 brianjmurrell