Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
IshKebab
4 months ago
|
parent
|
context
|
favorite
| on:
I'm switching to Python and actually liking it
Assertions are disabled via `python -O` so they probably shouldn't be used like this.
nijave
4 months ago
[–]
On the other hand, presumably the program will just crash anyway with some terse permission/request error later on if these values aren't set
IshKebab
4 months ago
|
parent
[–]
Doesn't matter. Assertions should be used for things that are always true (barring bugs in the program). That isn't the case here.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: