[Python-Dev] annoying dictionary problem, non-existing keys
Karthik
karthikk at adventnet.com
Thu Apr 24 04:48:24 EDT 2008
bvidinli wrote:
> I posted to so many lists because,
>
> this issue is related to all lists,
> this is an idea for python,
> this is related to development of python...
>
> why are you so much defensive ?
>
> i think ideas all important for development of python, software....
> i am sory anyway.... hope will be helpful.
>
> 2008/4/24, Terry Reedy <tjreedy at udel.edu>:
>
>> Python-dev is for discussion of development of future Python. Use
>> python-list / comp.lang.python / gmane.comp.python.general for usage
>> questions.
>>
>>
>>
>> _______________________________________________
>> Python-Dev mailing list
>> Python-Dev at python.org
>> http://mail.python.org/mailman/listinfo/python-dev
>> Unsubscribe: http://mail.python.org/mailman/options/python-dev/bvidinli%40gmail.com
>>
>>
>
>
>
Is this an acceptable alternative?
try:
if conf['key1'] == 'something':
<ur commands>
except KeyError:
pass
Regards,
Karthik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080424/6e08409f/attachment-0001.html>
More information about the Python-list
mailing list