3 ms·
In Python, it's even worse, since there's no braces and not returning anything implicitly returns None.
by aldanor 7y ago
In Python, it's even worse, since there's no braces and not returning anything implicitly returns None.
- rmtech 7y agoPython at least has if ... elif ... else to deal with it.
- empthought 7y agoMypy fixes the second problem, at least.
- deckiedan 7y agoI always take this as Python's way of strongly discouraging deeply nested and overly long functions... ( I realise this might be Stockholm syndrome...)