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


Groups > comp.lang.python > #7126

Re: Lambda question

From Terry Reedy <tjreedy@udel.edu>
Subject Re: Lambda question
Date 2011-06-06 21:56 -0400
References <mailman.2454.1307209587.9059.python-list@python.org> <87fwnor5dd.fsf@dpt-info.u-strasbg.fr> <mailman.2471.1307298836.9059.python-list@python.org> <b6f42afc-b507-4c5e-8d92-38536b77ac8c@r27g2000prr.googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.2514.1307411829.9059.python-list@python.org> (permalink)

Show all headers | View raw


On 6/6/2011 1:29 PM, rusi wrote:
> On Jun 5, 11:33 pm, Terry Reedy<tjre...@udel.edu>  wrote:

>> Let me add something not said much here about designing functions: start
>> with both a clear and succinct definition *and* test cases. (I only
>> started writing tests first a year ago or so.)
>
> I am still one year in the future :-;
> Which framework do you recommend? Nose? test.py?

As I explained in a followup post, I am currently using a custom 
function test function that accepts i/o pairs with exception classes as 
'outputs'. It was inspired by test.py, but that is both overkill and an 
unwanted external dependency for my current project. I also wrote and 
use an iterator test function and a specialized iterator test function 
for iterators that return sequences. (For better error reporting, the 
latter tests items within each sequence rather than each sequence as a 
whole. This is especially helpful when the items are themselves 
collections, as in some combinatorial iterators.)

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Lambda question <jyoung79@kc.rr.com> - 2011-06-04 17:46 +0000
  Re: Lambda question Mel <mwilson@the-wire.com> - 2011-06-04 14:21 -0400
  Re: Lambda question Alain Ketterlin <alain@dpt-info.u-strasbg.fr> - 2011-06-05 11:31 +0200
    Re: Lambda question Terry Reedy <tjreedy@udel.edu> - 2011-06-05 14:33 -0400
      Re: Lambda question rusi <rustompmody@gmail.com> - 2011-06-06 10:29 -0700
        Re: Lambda question Terry Reedy <tjreedy@udel.edu> - 2011-06-06 21:56 -0400

csiph-web