George V. Reilly's Technical Blog

Browse by Tags

All Tags » Python (RSS)
Sorry, but there are no more tags available to filter with.
Python String Formatting
Python has long had a string interpolation operator, % . Python 2.6 and 3.0 introduced a new, richer set of string formatting operations . See PEP 3101 for the rationale. One trick that I liked with the old way of formatting was to put the locals() dictionary...
Posted: Apr 24 2009, 11:13 PM by george_v_reilly | with no comments
Filed under:
Augmenting Python's strftime
The Cozi Tech Blog needed some love, so I wrote a post on augmenting Python's strftime .
Posted: Mar 30 2009, 11:19 PM by george_v_reilly | with no comments
Filed under:
Flattening List Comprehensions in Python
Python has list comprehensions , syntactic sugar for building lists from an expression. >>> [ 2 * i for i in ( 2 , 3 , 5 , 7 , 11 )] [ 4 , 6 , 10 , 14 , 22 ] This doesn't work so well when the comprehension expression is itself a list: you end...
Posted: Mar 24 2009, 08:56 PM by george_v_reilly | with 3 comment(s)
Filed under:
Northwest Python Day 2009
[Eric holding forth on BuildBot ] Eric and I attended Northwest Python Day 2009 today at the University of Washington. There were about 50 people present, with a few out-of-town visitors from Portland and Vancouver BC. It was a mixed bag. I found the...
Posted: Jan 31 2009, 11:06 PM by george_v_reilly | with no comments
Filed under:
Python Batchfile Wrapper, Redux
Batchfile Wrapper I've made some significant changes to my Python Batchfile Wrapper . The main virtue of this wrapper is that it finds python.exe and invokes it on the associated Python script, ensuring that input redirection works. I've also adapted...
Posted: Jan 12 2007, 06:49 PM by george_v_reilly | with 1 comment(s)
Filed under:
More Posts