Twitter Updates
- @kennethreitz @alex_gaynor @pydanny you can get a 95% sol'n with flags to pip:--find-links & --index-url and a .sh to d/l your deps. 8 hours ago
- One of my favorite things is when big sites load without CSS. 9 hours ago
- Seems as though #Reddit is so tied to #imgur that when imgur goes down, reddit goes down too. Web architecture FAIL! 9 hours ago
- Bought new headphones. They sound so bad I'm left wondering if they intentionally crippled them to upsell more expensive models. 11 hours ago
- git bloodbath -f 4 days ago
Blogroll
- 914 electric conversion blog
- ALL ART BURNS
- Arcade Zen
- Brian’s Gallery
- Chili’s World
- Chocomonkey’s Blog
- Follow me on Quora!
- Follow me on Twitter!
- Google Blog
- Juan’s website
- Julia y Daniel
- Katja’s Blog
- Kulick’s blog
- Paul’s Time Sink
- Peter S. Conrad
- Sad Salvation
- Slacy’s Gallery
- Snake Surley
- Sprang’s Blog
- Super Karate Monkey Fist
- Third Time Dad
- Universe Hacking
- Valspark
- Zac’s Story
- Zeigen, Inc.
Tag Archives: none
Python: str(None) should return ” not ‘None’
Think about the following code: x = some_function_that_might_return_none() if str(x): do_one_thing() else: do_another_thing() do you think do_another_thing() will ever execute? Did you know that str(None) is ‘None’ and thus: if str(None): this_willl_always_execute() I can see how you might want str(None) … Continue reading