I’ve just pushed the first version of markdown.py to GitHub. It doesn’t do anything except echo the contents of any file you give it. The reason why it’s useful at all are documented in Stub for markdown.py. However, it occurred to me that as it stands now, it might be the lamest, most useless project [...]
Tag Archives | python
py.test from behind a firewall
I wanted to try out pytest (or py.test, I’ve heard it both ways). But I’m behind a firewall, so pip and easy_install don’t work that great. I’m also running cygwin, with several versions of python so I can test compatibility of scripts across 2.6, 2.7, and 3.2. Trial and error gets me to these steps [...]
Testing in Python
I’ve been using Python for writing test code for many years now. I’ve used several test frameworks, most of them proprietary. However, I’d like to utilize some of the open source frameworks available. Right now, I’m doing two things. 1. Writing my own framework. 2. Investigating pytest. Hopefully I will have some results from both [...]
How to parse command line arguments/parameters in C/C++/Perl/Python/Bash
This is the first of a series of simple posts highlighting programming idioms in several languages. One of the perils of programming in multiple languages regularly is that I sometimes forget simple things about a language. This series is intended as a reference for myself and others when switching back and forth between languages. There [...]
Retrieving line of text from wxTextCtrl upon mouse click
I’ve got a wxPython application with a text control. I want to attach a function to run when someone clicks on a line of text in the wxTextCtrl widget. I want to grab the line of text they clicked on and use it for something. Specifically, this is part of a log file viewer that [...]