Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
yen223
on Oct 2, 2017
|
parent
|
context
|
favorite
| on:
Alice in Python projectland
Functions implicitly returns None if you forget to provide a return value on any of the branches. This is an error that can easily slip past eyeball reviews, since this is caused by the
absence
of something.
xapata
on Oct 3, 2017
[–]
Shouldn't unit tests be exploring all the code paths? I know that's tough to enforce, but it's ideal. Regardless of whether you use a static analyzer.
And Python does have static analyzers, including for typing.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: