Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Properly deal with lists assigned to payloads when using SimpleIO even if not using the slice operator #913
In a service, when assigning a list of items to the payload, one has to use the slice operator, i.e. self.response.payload[:]. When using SimpleIO, one can specify ouptut_repeated = True, although that does not prevent the coder from having to use the slice operator when assigning a variable to the payload.
If possible, make SimpleIO autodiscover this situation as much as possible, perhaps being output_repeated = True enough, or even just by figuring out that a list has been assigned to the payload.