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: dict
A dict and an object, all in one.
I’ve been struggling with data modeling decisions for my MongoDB interface layer. Should results from the DB look like a dict, or like an object? Like both? What are the advantages and disadvantages of each approach? I’ve got my own … Continue reading
Python Multi-dimensional dicts using defaultdict
I asked previously how to avoid code like this: # Implement d[3][4] = 5 if not 3 in d: d[3] = {} d[3][4] = 5 I found the answer, and it lies in collections.defaultdict. defaultdict is just like dict, except … Continue reading
Multi-dimensional dicts in Python & Django?
The code I’m working on frequently uses multi-dimensional dicts in Python. There is a bunch of code that seems to be always doing this: # a,b, and c have come from some external data source, QuerySet, etc. a = ‘axis_1′ … Continue reading