Fix 2198

Closed Bitbucket Importer requested to merge bitbucket/declined-pr-368 into branch/default

Created originally on Bitbucket by vincentlegoll (Vincent Legoll)

Changesets for this Pull Request have not been imported, because it had been already declined on Bitbucket. Marked as closed by the import user.

  • Create new branch to fix issue #2198

  • Add an assertion on step being non null in setslice()

  • Remove stale comments in setslice()

  • Move common code outside of conditional

  • Add comment explaining one case

  • Add shotrcut when there's nothing to do: replace empty slice with empty iterable

  • Assign the slice instead of copying elem by elem

  • Handle assigning bigger lists to slice case

  • Remove now unused code

  • Handle assigning same size lists to slice case

  • Factorize delta < 0 and delta == 0 cases with now identical code

  • Handle assigning smaller lists to slice case

  • Factorize common code

  • Describe branch

Merge request reports