[CentralOH] Refactorio Ad Absurdum: Mismatched Parentheses
jep200404 at columbus.rr.com
jep200404 at columbus.rr.com
Thu Mar 12 16:42:18 CET 2015
On Wed, 11 Mar 2015 20:39:18 -0400, jep200404 at columbus.rr.com wrote:
> hoursdict.setdefault(get_hour(line), {})).setdefault(get_formula_type(line), (parser[get_formula_type(line)])(line))
Oops. Mismatched parentheses should have been:
hoursdict.setdefault(get_hour(line), {}).setdefault(get_formula_type(line), (parser[get_formula_type(line)])(line))
Even if it works, it is bad code.
More information about the CentralOH
mailing list