[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] musicxml2ly: Coding style (getting rid of exceptions, using dict
From: |
Reinhold Kainhofer |
Subject: |
[PATCH] musicxml2ly: Coding style (getting rid of exceptions, using dict.get (key, default) instead of dict[key]) |
Date: |
Mon, 20 Aug 2007 10:45:18 +0200 |
User-agent: |
KMail/1.9.6 |
Coding style:
-) instead of accessing dicts by dict[key], use dict.get (key)
-) instead of try:... except KeyError:.. use dict.get (key) and test for None
afterwards
Cheers,
Reinhold
--
------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
* Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
* K Desktop Environment, http://www.kde.org, KOrganizer maintainer
* Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
2007-08-20_0001-Coding-style.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] musicxml2ly: Coding style (getting rid of exceptions, using dict.get (key, default) instead of dict[key]),
Reinhold Kainhofer <=