Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
eru
on March 18, 2020
|
parent
|
context
|
favorite
| on:
The 2,500 year old history of why Python’s all([])...
Agreed.
In Python 2, you had
float('-inf') < ""
So you could sort of get away with that. But that positive infinity wasn't bigger than any string. And in Python 3 comparing strings and numbers just results in an error.
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:
In Python 2, you had
So you could sort of get away with that. But that positive infinity wasn't bigger than any string. And in Python 3 comparing strings and numbers just results in an error.