Blogspot - foolish-assertions.blogspot.com - Foolish Assertions

Latest News:

A Crime Against Nature 21 Mar 2010 | 08:46 am

Every so often, while writing Python, I've found myself wishing I could easily dispatch method calls according to the type of the arguments. The urge usually passes quickly, but... oh, the hell with i...

The Joy of Self 3 Mar 2010 | 09:51 am

I have a distant and fuzzy memory, from back in the day... when I was but a wee slip of a lad, sallying forth to do battle with million-line C++ monstrosities (and just barely escaping with my sanity ...

Where's a plumber when you need one? 15 Jan 2010 | 08:39 am

Assertion: On Win32, there's no point bothering with subprocess.PIPE -- just use tempfile.TemporaryFile instead. Context: You create a Popen(cmd, stdout=PIPE, stderr=PIPE), and you let it run (with a...

Spare batteries for IronPython 25 Dec 2009 | 07:36 am

As we all know, Python comes with batteries included in the form of a rich standard library; and, on top of this, there are many awesome and liberally-licensed packages just an easy_install away. Iro...

Another snippet 8 Dec 2009 | 12:01 am

I realised you could do this about a year ago, but I only just found an opportunity to use it. Satisfying :).

Python return dictifier 6 Dec 2009 | 08:22 am

I wrote this the other week, and thought it was cute enough to share: Use it as follows: Enjoy!

Silver Bullets Aplenty 10 Sep 2009 | 08:15 pm

Context: We all know that there's no silver bullet that will slay the metaphorical werewolf embodying the fact that Making Software Is Difficult; we're also familiar with the difference between essent...

.NET Marshalling: a mildly sarcastic Q&A 10 Sep 2009 | 08:12 pm

1) Want to read or write a chunk of unmanaged memory that you know holds a double? Easy! Just use Marshal.ReadDou... oh. Hmm. OK, it seems that -- while doubles work fine in arguments, return values ...

Deadly Serious This Time 19 Jan 2009 | 03:11 am

At 32 Great Queen Street in London, there is a restaurant called -- imaginatively enough -- 32 Great Queen Street. We just ate Sunday lunch there; the confit duck was probably the single best dish I h...

More foolishness; now with added drunkenness 16 Jan 2009 | 02:50 pm

Well, it seems my last post was a year ago, and it therefore seems likely that I may actually be dead before I get around to making another. I wish this was a joke. However, with that sobering realis...

Related Keywords:

python character is ascii, readea, def: displene, self.isdir

Recently parsed news:

Recent searches: