Thanks Kent,

That solves it pretty well.

Carlos



Kent Johnson wrote:
> Yes, count() is looking for exact matches. You can make a new list 
> with just the circulation names and take the length of that; something 
> like this:
> len([name for name in built_Objects if name.startswith('Circulation')])
>
> or perhaps slightly more efficient (Python 2.5):
> sum(1 for name in built_Objects if name.startswith('Circulation'))
>
> Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to