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...
View ArticleWhy? 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...
View ArticleReportlab: 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...
View ArticlePython'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...
View ArticlePython 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...
View ArticlePython 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...
View ArticleBest 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...
View ArticlePython - 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...
View ArticleA 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...
View ArticleUnderstanding 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...
View ArticleUse Case: XML Parsing With Python
One of the common tasks I am given in my day job is to take some data format input and parse it to create a report or some other document. Today we'll look at...
View ArticleTopic Modeling in Python and R: The Enron Email Corpus, Part 2
After posting my analysis of the Enron email corpus, I realized that the regex patterns I set up to capture and filter out the cautionary/privacy messages at...
View ArticlewxPython: How to Create a Login Dialog
I’ve been using wxPython for quite a while now and I see certain questions come up on a fairly frequent basis. One of the popular ones is how to ask the user...
View ArticleLet Us Now Praise ResourceWarnings
[Source] Luckily, Pythons aren't poisonous. A couple years ago when I began using Python 3, its new ResourceWarnings infuriated me and I ranted...
View Article
More Pages to Explore .....