cProfile good, example code bad.
I got an email from Jay yesterday commenting on Text processing fun. His mail server bounced my reply and also my request for permission to publish his message.
Jay created an elegant generator which over the same dataset of 1m rows, 180 columns processed the data a full 5 seconds ...
More…
Using cProfile for optimisation
A bunch of tab delimited text files arrived on my ftp server the other day. Since the data was 3NF, and my small model was largely denormalised, I only needed a small fraction of the data which was to be converted in a JSON fixture. I thought about using external ...
More…
See kids? It ain't that bad...
The BDFL points us towards this mythbusting explanation of Python's indentation.
I've never really understood this oft cited objection to Python's syntax. Afterall, we spend most of our time reading code, not writing it.
Have a read.
More…
Getting over the GIL
Smart guys say smart things
Many moons ago I read Bruce Eckel's Thinking In Java so his name rang a bell when I read this post on Python 3000. Although arguably a mess of confusion as regards language specification (Python 3000) and library (most of the post), it elicted ...
More…
Things Every Manager Should Know
Friday night I very quickly read Bruce Tate's From Java To Ruby. By quickly, I mean to say I read it sitting in Borders because I sure wasn't going to part with the $55 (AUD) / $45 (USD) price Borders AU had whacked on a $29 (USD) book - the ...
More…
Super explanation of super()
Confused about super()?
There were a few questions about super on #django @freenode the other day. This is one of the best explanations of super() I've read.
Link: Super harmful
More…