Did you know? DZone has great portals for Python, Cloud, NoSQL, and HTML5!
Python Zone is brought to you in partnership with:
  • submit to reddit
Mike Driscoll06/15/12
230 views
0 replies

pyflakes: The Passive Checker of Python Programs

The pyflakes project is a part of something known as the Divmod Project. Pyflakes doesn’t actually execute the code it checks, unlike pychecker.

Stoimen Popov06/14/12
3217 views
5 replies

Algorithm of the Week: Linked List

This week's Algorithm of the week is in! It is focusing on the way linked lists are implemented is a basic task but more complex to build data structures such as trees.

William Soprano06/14/12
339 views
0 replies

SIGPIPE With Python

Have you ever seen a socket.error: [Errno 32] Broken pipe message when running a Python Web server and wondered what that means?

Mike Driscoll06/14/12
889 views
0 replies

PyLint: Analyzing Python Code

Python code analysis can be a heavy subject, but it can be very helpful in making your programs better. There are several Python code analyzers that you can use to check your code and see if they conform to standards.

Mike Driscoll06/13/12
773 views
0 replies

Python Links Roundup (6/8/2012)

A resource collection for all the Python enthusiasts out there!

Jay Fields06/13/12
1224 views
0 replies

Follow-up Thoughts on Aligning Business & Programmer Goals

A post back in May brought on a conversation between a reader and Jay Fields on the subject of Aligning Business & Programmer Goals... Here's what transpired.

Mike Driscoll06/12/12
523 views
0 replies

How to Submit a Web Form in Python

How to submit a web form in Python: What's the simplest? Whats the most difficult? Read more to find out...

Rick Copeland06/12/12
570 views
0 replies

Schema Maintenance with Ming and MongoDB

Continuing on in my series on MongoDB and Python, this article introduces the Python MongoDB toolkit Ming and what it can do to simplify your MongoDB code and ease maintenance.

Jay Fields06/11/12
6146 views
1 replies

Is Productivity Killing Your Creativity?

I'm a multi-tasking machine. I am the worlds most productive man, or so I liked to pretend.

Mike Driscoll06/11/12
1159 views
0 replies

How To: Download a File With Python

Possibly the most popular way to download a file is over HTTP using the urllib or urllib2 module. Python also comes with ftplib for FTP downloads.

Corey Goldberg06/11/12
1094 views
0 replies

History of Python: Development Visualization - Gource

NEW VIDEO! This is a visualization of Python core development. It shows growth of the Python project's source code over time (August 1990 - June 2012).

Mike Driscoll06/10/12
864 views
0 replies

Using lxml.objectify to Parse XML With Python

To my mind, the objectify module seems to be even more “Pythonic” than etree is. Let’s take a some time and go over my old XML examples using objectify and see how it’s different!

Fredrik Håård06/09/12
745 views
0 replies

The Very Best of PyCon 2012 Is...

A couple of months after PyCon, I can say with confidence what has been the best discovery of PyCon 2012 and here it is...

A. Jesse Jiryu Davis06/08/12
883 views
0 replies

PyCharm, Pygments, and Keynote Syntax Highlighting

In preparation for conferences, I came up with this tutorial on syntax highlighting for pycharm, pygments, and keynote.

Chase Seibert06/07/12
778 views
0 replies

Django Nose/sqlite3 "too many SQL variables" error

Say your Django app is pulling some serious data, and you want faster response than Postgres gives you. So you really want to use, say in-memory sqlite3 as your database..but your bulk_create() isn't working. Here's a quick Django 1.4.0 workaround.

Mike Driscoll06/07/12
778 views
0 replies

How to: Convert Decimal Numbers to Words with Python

A re visitation on the topic of converting numbers to Python. I found my previous example rather lacking so this should clear things up.

Alexander Beletsky06/06/12
884 views
0 replies

There's a First Time for Everything

I will share some 'likes' and 'dislikes' I have about Python which I would think you will find intriguing.

Gerard Davison06/04/12
1638 views
1 replies

Ignoring the Return Value of a Command in Hudson/Jenkins sh Task

I was was trying to run pylint and nosetest running on a Jenkins instance; but these python commands tend to return a non zero status code if they see a non zero return code.

A. Jesse Jiryu Davis06/06/12
585 views
0 replies

Mollified About ResourceWarnings

The follow up: Last month I griped about ResourceWarnings in Python 3 and Python core developer Nick Coghlan responded in the comments; here's what came of it...

Mike Driscoll06/04/12
825 views
0 replies

Python 201: Decorating the main function

The following code is an example based on a recipe that Brett Cannon mentioned. I think it illustrates what he’s talking about, but basically if provides a way to remove the standard

Rob Galanakis06/03/12
3925 views
1 replies

Someone Has a Hat to Eat

The opinion of one of your peers on the topic of getting burnt out, trying to keep going, and maintaining your identity as a programmer.

Mike Driscoll06/02/12
1059 views
0 replies

Weekly Python Links Roundup (6/2/2012)

A lot of fun things are happening in the land that is Python! Here are a few articles in one place for you to scour...

Corey Goldberg06/01/12
1728 views
0 replies

Automated Web/HTTP Profiler with Selenium-RC and Python

Selenium-profiler is a web/http profiler built with Selenium-RC and Python. It profiles page load time and network traffic for a web page.

Mike Driscoll05/31/12
1339 views
0 replies

wxPython: How to use the Clipboard

Everyone who uses computers regularly knows that they can copy and paste text. What they might not know is that when you copy something, it goes into a location known as the “clipboard”. This is a how to use the clipboard in wxPython.

A. Jesse Jiryu Davis05/31/12
1145 views
0 replies

The Python 2.6 Weirdness

A How-to with new and old Python threads... If a picture is worth a thousand words then this is worth at least 2 thousand.