Re:Hacking Flask: A Success Story
by emillon on Thursday April 25, 2013 @04:01AM
(#5606151)
Shouldn't the super call be:
instead of:
(or even better, with args and kwargs)? Otherwise it seems that the message is discarded and None is always passed. This is one of the places where python's syntax is awful IMHO. Setting a default value shouldn't be the same as passing a parameter.
[ Parent
| on HN ]
Spot the python3 syntax:
super(ClassYouObviouslyMean, self).send_response(*a, **kw)
super().send_response(*a, **kw)
Spot the python3 syntax: def f(x=default_value, y=None): pass
def f(x:arbitrary_object=default_value,
y:this_doesnt_equal_None_y_does=None) -> more_wtf: ...