Skip to content

Pythonify slicing behavior

Currently slicing a LazyPostgrestJsonResult with key.start >= key.stop results in an HTTPError:

requests.exceptions.HTTPError: [Errno 416] Requested Range Not Satisfiable: '{"message":"HTTP Range error"}

In quest of making the client as pythonic as possible it should instead return an empty list.

Add a test while at it.