-
Recent Posts
Categories
Archives
- August 2016
- June 2016
- April 2016
- February 2016
- October 2015
- May 2015
- January 2015
- November 2014
- October 2014
- September 2014
- August 2014
- July 2014
- April 2014
- March 2014
- February 2014
- December 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- August 2012
- June 2012
- April 2012
- January 2012
- December 2011
- November 2011
- October 2011
- August 2011
- July 2011
- December 2010
- November 2010
- September 2010
- July 2010
- June 2010
- May 2010
- March 2010
- December 2009
- November 2009
- October 2009
- August 2009
- July 2009
- June 2009
- May 2009
- August 2008
- June 2008
- May 2008
- March 2008
- February 2008
- December 2007
- November 2007
- October 2007
- August 2007
- June 2007
- May 2007
- March 2007
- November 2006
- August 2006
- July 2006
- February 2006
- October 2005
- September 2005
- July 2005
- June 2005
- May 2005
- April 2005
- March 2005
- December 2004
- June 2004
- March 2004
- February 2004
- December 2003
- October 2003
- June 2003
Meta
Category Archives: Python
Mocker 0.10 and trivial patch-mocking of existing objects
Mocker 0.10 is out, with a number of improvements! While we’re talking about Mocker, here is another interesting use case, exploring a pretty unique feature it offers. Suppose we want to test that a method hello() on an object will … Continue reading
Posted in Project, Python, Snippet, Test
2 Comments
Partial stubbing of os.path.isfile() with Mocker
One neat feature which Mocker offers is the ability to very easily implement custom behavior on specific functions or methods. Take for instance the case where you want to pretend to some code that a given file exists, but you … Continue reading
Posted in Project, Python, Snippet, Test
Leave a comment
More releases: dateutil 1.3 and nicefloat 1.1
A couple of additional releases tonight: dateutil 1.3, and nicefloat 1.1. They’re both bug fixing releases.
Posted in Project, Python
Leave a comment
Storm has always reused connections (connection pooling?)
I’ve recently seen some comments here and there about the lack of connection pooling as an argument for Storm to be faster, and that once this is supported it will be slower, or even as a reason for people not … Continue reading
Mocker for Python released!
After being bored for a long time for the lack of a better infrastructure for creating test doubles in Python, I decided to give it a go. I’m actually quite happy with what came out.. it took me about four … Continue reading
Posted in Project, Python, Test
Leave a comment
Python’s os.environ
As Chris Armstrong pointed out yesterday, os.environ.pop() is broken in Python versions at least up to 2.5. The method will simply remove the entry from the in-memory dictionary which holds a copy of the environment: >>> import os >>> os.system(“echo … Continue reading
Posted in Python, Snippet
2 Comments
Landscape and Storm go public
Finally, a couple of projects I’ve been working on in the last year and a half have been made public, which means that I have more freedom to talk about them openly. Landscape Landscape is a system we’ve created to … Continue reading
Posted in Conference, Project, Python
3 Comments
python-dateutil 1.2 released
python-dateutil version 1.2 has just been released. It includes the following changes: Now tzfile will round timezones to full-minutes if necessary, since Python’s datetime doesn’t support sub-minute offsets (reported by Ilpo Nyyssönen). Removed bare string exceptions (reported and fixed by … Continue reading
Posted in Project, Python
2 Comments
Smart 0.51 available
Smart 0.51 has been released today. It includes a few bug fixes and some minor updates. Shortly after the release, I’ve added a couple of new hooks on Smart’s trunk as well: cache-loaded, and cache-loaded-pre-link. These should enable people to … Continue reading
Posted in Project, Python
Leave a comment