Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #103129 > unrolled thread

Re: Question on keyword arguments

Started by<grsmith@atlanticbb.net>
First post2016-02-18 10:57 -0500
Last post2016-02-18 10:57 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Question on keyword arguments <grsmith@atlanticbb.net> - 2016-02-18 10:57 -0500

#103129 — Re: Question on keyword arguments

From<grsmith@atlanticbb.net>
Date2016-02-18 10:57 -0500
SubjectRe: Question on keyword arguments
Message-ID<mailman.11.1455811069.2289.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web