Python

  • submit to reddit
The Python Programming Language

Understanding Python Decorators in 12 Easy Steps!

Ok, perhaps I jest. As a Python instructor decorators are a topic I find students consistently struggle with upon first exposure. That’s because decorators...

0 replies - 2372 views - 07/02/12 by Simeon Franklin in Articles

A Simple SqlAlchemy 0.7 / 0.8 Tutorial

A couple years ago I wrote a rather flawed tutorial about SQLAlchemy. I decided it was about time for me to re-do that tutorial from scratch and...

0 replies - 739 views - 07/02/12 by Mike Driscoll in Articles

Python - Getting Started With Selenium WebDriver on Ubuntu/Debian

This is a quick introduction to Selenium WebDriver in Python on Ubuntu/Debian systems. WebDriver (part of Selenium 2) is a library for automating...

0 replies - 1364 views - 07/01/12 by Corey Goldberg in Articles

Best Tool for Downloading YouTube Videos/Playlists...It Uses Python Code!

How many times does it happen that you stumble upon an awesome youtube video, you make up your mind to download it but fail short to find a good tool which...

0 replies - 1245 views - 07/01/12 by Sachin Khosla in Articles

Python Closures and Decorators (Pt. 2)

Edit: got complaints that code was hard to read, trying out Pygments. In part 1, we looked at sending functions as arguments to other functions, at nesting...

0 replies - 749 views - 07/01/12 by Fredrik Håård in Articles

Python Closures and Decorators (Pt. 1)

Since I, in retrospect, made the wrong choice when cutting down a Python course to four hours and messed up the decorator exercise, I promised the...

1 replies - 479 views - 06/30/12 by Fredrik Håård in Articles

Python's Swap is Not Atomic

I rewrote PyMongo's connection pool over the last few months. Among the concurrency issues I had to nail down was, if a thread is resetting the connection...

0 replies - 404 views - 06/29/12 by A. Jesse Jiryu Davis in Articles

Testing DNS Servers with Python - dns_compare.py

Sometimes it might be nice to be able to test a DNS server’s output, such as with a continuous monitoring system, or as a validation tool when migrating...

0 replies - 2209 views - 06/28/12 by Joe Miller in Articles

Reportlab: Mixing Fixed Content and Flowables

Recently I needed the ability to use Reportlab’s flowables, but place them in fixed locations. Some of you are probably wondering why I would want to do...

0 replies - 569 views - 06/28/12 by Mike Driscoll in Articles

Why? Python and Config Files

I’ve never understood why people design systems in python to use config files. IMO there are two types of data and we can handle them both in...

1 replies - 1502 views - 06/27/12 by Rob Galanakis in Articles

wxPython: Making a panel self-destruct

The other day I saw a question on StackOverflow about how to dynamically destroy and create panels after a certain amount of time has passed. I told the...

0 replies - 635 views - 06/27/12 by Mike Driscoll in Articles

Self-Pipe Trick

Imagine that your server process needs to simultaneously wait for I/O on multiple descriptors and also needs to wait for the delivery of a signal. The...

0 replies - 855 views - 06/26/12 by Ruslan Spivak in Articles

Embedding HTML in Django Messages

Problem You want to embed HTML within a message using Django's messages framework. This is a reasonably common requirement - for instance, it's common to...

0 replies - 693 views - 06/26/12 by David Winterbottom in Articles

New Relic Launches App Speed Index and Custom Dashboards

New Relic is announcing the availability of two awesome new features. Thanks to our SaaS model, our customers have immediate access to these new features...

0 replies - 8734 views - 06/26/12 by Bill Hodak in Articles

The New ShortcutEditor for wxPython

I meant to write up a post on this within a week of reading about it, but then things got busy and I forgot. Anyway, there’s a new widget in the wxPython...

0 replies - 683 views - 06/25/12 by Mike Driscoll in Articles