Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #103129
| From | <grsmith@atlanticbb.net> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Question on keyword arguments |
| Date | 2016-02-18 10:57 -0500 |
| Message-ID | <mailman.11.1455811069.2289.python-list@python.org> (permalink) |
| References | <62136715E19142B6B318EA3A3DF04D40@OPTIPLEX990> <na4kut$ru8$1@ger.gmane.org> <7278ec3f250548b192ce2d95c6fa07c5@seaexchmbx03.olympus.F5Net.com> <CAPTjJmoSX8stV5FBLALGctahP++n6+xfbMy6nXa0PMTr0aS17w@mail.gmail.com> |
Thanks to all who responded, it is a big help. Tim, the 'crazy-other-result format' is the result returned by the database, nothing I can do about that :) Thanks again George -----Original Message----- From: Chris Angelico Sent: Thursday, February 18, 2016 10:45 AM Cc: python-list@python.org Subject: Re: Question on keyword arguments On Fri, Feb 19, 2016 at 2:39 AM, Dan Strohl <D.Strohl@f5.com> wrote: > So, define a return object like: > > from collections import UserList > class TestResponse(UserList): > def __str__(self): > return '\0xfe%s' % '\0xfe'.join(self.data) > > ...and return that object. Out of interest, why UserList rather than simply subclassing list? ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Question on keyword arguments <grsmith@atlanticbb.net> - 2016-02-18 10:57 -0500
csiph-web