Browse by Tags
All Tags »
Python (
RSS)
Sorry, but there are no more tags available to filter with.
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...
The Cozi Tech Blog needed some love, so I wrote a post on augmenting Python's strftime .
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...
[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...
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...
More Posts