Issue #8

Zen of Python

April 6, 2012

Zen of Python
The Future of Python HTTP, rauth, and more....

Issue #8 : Zen of Python


Friday, April 6th, 2012

Hi Pythonistas,

We have landed our first sponsor. As many of you know, MailChimp isn't cheap, and seeing as how we have been growing at such a rapid pace. We needed to take steps to  keep this newsletter running at breakeven, we have decided to take on sponsors. They will be highlighting reputable companies, which we find align well with the Python community here. The ads are tasteful, and unobtrusive to the content which is solely curated by us, and always will be. If you have any questions or feedback please reply to this email.

RSS and archives can be found here, and here respectively.

Be a hero ( or heroine) and do the right thing. Follow @pycoders.

If you are confused as to what this week's title means. Go to the nearest terminal and enter 'python -m this'

Mahdi and Mike
News and Latest Developments.

Circus 0.2 Released
Version 0.1 of Circus the supervisord-like process watcher has been released. This project is pretty interesting and created by @tarek_zaide and benoitc

Hate writing the same OAuth code over and over again, here is a package provided by litl, which is fully tested; I think we can consider this problem solved.


Postmates is a small team with a huge vision that is changing local commerce.
They are currently hiring Python and iOS Engineers in San Francisco, California.


Whats the best way to reorder strings?
This is a great discussion on /r/python about the best way to reorder strings and more specifically get all the distinct permutations of a string in Python. Lots of gems in this one and a fair amount of discussion around itertools. Worth the read.

Python's Hardest Problem
For more than a decade, no single issue has caused more frustration or curiosity for Python novices and experts alike than the Global Interpreter Lock. Excellent article. Good discussion in comments.


Django Sampler
From the repo:  “Django Sampler allows you to sample a percentage of your queries (SQL, Mongo, etc) and view the ones that are taking up the most time. The queries are grouped together by where they originated from in your code.” Currently there is support Django SQL, Django Requests, Celery and MongoDB.

A Python library for playing with sound, this is probably a dream come true for you audiophiles out there. It’s simple type the notes you want it to play, render and you got your music.

This is an implementation of the proposed generator on the ships in Notch’s new game called 0x10c, this generator will simulate the limited resources available to each ship. James Tauber has previously wrote another emulator so knocking this one out was a breeze.


Deferreds Are A Dataflow Abstraction
Interesting article about the way callbacks are handled in Javascript and what alternatives are available in Python(via Twisted) w/ deferreds and if done correctly should read extremely cleanly, and test easily.

Notes on tracing code execution in Python and Django
This article provides some notes on using trace to trace the execution of Python and Django files and some tips on how to achieve some common tasks with trace. The author also provides a Django Plugin that provides a management command to allow you to trace execution of your Django project.

The future of Python HTTP
Kenneth Reitz talks about the future of Python Requests and how it intersects with the work done in Werkzeug. In the future Requests and Wekzeug will likely share the same core http libraries, discussion has now started about this on Freenode at #cores and the relevant git repositories will be here.

Counting, without counting, in Python
This is an interesting exploration of the common python idiom of executing the body of a loop n-times using range() or xrange() even if the body of the loop doesn’t need the integers produced by the range calls. The author examines some other options for achieving the same goal in python and discusses each. Check it out.

Python objects, types, classes and Instances - a glossary
Following up his last post on the internals of Python callables, the author provides a glossary of terms with explanations of things that commonly come up in the discussion of Python internals that may have more than one name, or may not be easily derived from the context of the discussion. If you are reading any of his articles on Python internals, or are just interested, you probably want to check this out.


Pycoder's Weekly Issue # 9
Apr 13th, 2012


This mailing list has been hand picked by Mahdi Yusuf and Mike Grouchy


Postmates is a small team with a huge vision that is changing local commerce.
They are currently hiring. Check out their open positions here!

Follow on Twitter | Friend on Facebook | Forward to Friend 
Copyright © 2012 PyCoder’s Weekly, All rights reserved.