Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
yogipatel
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
yogipatel
16y ago
Great presentation! I'm curious, where did you guys get your flight information from before the ITA deal?
32.
▲
by
yogipatel
16y ago
Did this remind anyone else of continuations and infinite streams?
33.
▲
by
yogipatel
18y ago
Good point. I was only thinking of sequence types, and failed to see that it would break with strings. I also somehow forgot to include "not" in the if statements! Pretty sad for a first post...
34.
▲
by
yogipatel
18y ago
> if x is None: ... > if items is None: ... None's truth value is false, so the above are equivalent to: if x: ... if items: ... Empty sequences and mappings are also considered false, so you don't need to if len(items)