Question on keyword arguments

Chris Angelico rosuav at
Thu Feb 18 10:45:36 EST 2016

On Fri, Feb 19, 2016 at 2:39 AM, Dan Strohl <D.Strohl at> wrote:
> So, define a return object like:
> from collections import UserList
> class TestResponse(UserList):
>     def __str__(self):
>         return '\0xfe%s' % '\0xfe'.join(
> ...and return that object.

Out of interest, why UserList rather than simply subclassing list?


More information about the Python-list mailing list