len(list(showlinks()))

On Wed, Nov 21, 2007 at 12:54:14AM -0800, iain duncan wrote:
> Hi all, just getting into Twill and I can see it will be great for
> functional testing my TG apps.
> 
> I assume this is the place for bug reports and feature requests?
> 
> Something I found:
> 
> The command reference at
> http://twill.idyll.org/commands.html
> says that when called from python, showlinks and showforms return lists.
> However, in my shell, they seem to be returning generators that won't
> let me do:
> 
> len( showlinks() )
> 
> I think it would be handly to be able to count them, but of course I can
> flatten the generator. However, thought I'd point out that doc mismatch
> and it might be nice to avoid the explicit conversion to list.
> 
> 
> BTW, thanks for the shortcuts book too!
> Iain
> 
> 
> 
> _______________________________________________
> twill mailing list
> [email protected]
> http://lists.idyll.org/listinfo/twill
> 

_______________________________________________
twill mailing list
[email protected]
http://lists.idyll.org/listinfo/twill

Reply via email to