all_types:
<Storage {'type': 'childcare', 'id': 1, 'created': datetime.datetime(2006, 7, 26, 15, 18, 34, 887436)}>
<Storage {'type': 'household', 'id': 2, 'created': datetime.datetime(2006, 7, 26, 15, 18, 34, 887436)}>
.....
<Storage {'type': 'knews', 'id': 10, 'created': datetime.datetime(2006, 7, 26, 15, 18, 34, 887436)}>
there is such a list
how do i search for a particular string say teststring in this list
i tried
if teststring in all_types:
if teststring in all_types.type:
it doesnt work
please help me out here
should i use lambda
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1ยข/min.
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor