<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Andrew Channels Dexter Pinion</title>
	<atom:link href="http://www.halfcooked.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://halfcooked.com/blog</link>
	<description>Wherein I write some stuff  that you may like to read. Or not, its up to you really.</description>
	<pubDate>Thu, 02 Oct 2008 02:00:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>OSDC 2008 Early Bird Registration</title>
		<link>http://halfcooked.com/blog/2008/10/02/osdc-2008-early-bird-registration/</link>
		<comments>http://halfcooked.com/blog/2008/10/02/osdc-2008-early-bird-registration/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 02:00:42 +0000</pubDate>
		<dc:creator>Andy Todd</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://halfcooked.com/blog/?p=85</guid>
		<description><![CDATA[Early bird registration for The Open Source Developers&#8217; Conference 2008 is now open.
OSDC 2008 is a conference run by open source developers, for developers and business people. It covers numerous programming languages across a rangeof operating systems, and related topics such as business processes, licensing, and strategy. Talks vary from introductory pieces through to the [...]]]></description>
			<content:encoded><![CDATA[<p>Early bird registration for The Open Source Developers&#8217; Conference 2008 is now open.</p>
<p>OSDC 2008 is a conference run by open source developers, for developers and business people. It covers numerous programming languages across a rangeof operating systems, and related topics such as business processes, licensing, and strategy. Talks vary from introductory pieces through to the deeply technical. This year we have an exciting selection of presenters and keynote speakers including:</p>
<ul>
<li>Larry Wall, the creator of Perl</li>
<li>Chris DiBona, Open Source Programs Manager for Google</li>
<li>Andrew Tridgell, Founder, Samba Team</li>
<li>Anthony Baxter, Python Evangelist</li>
<li>Pia Waugh, Consultant, Waugh Partners</li>
</ul>
<p>Check out the draft program: <a href="http://www.osdc.com.au/2008/papers/">http://www.osdc.com.au/2008/papers/</a></p>
<p>Please visit <a href="http://www.osdc.com.au/2008/registration/">http://www.osdc.com.au/2008/registration/</a> to register. Early bird registration closes on the 27th October, 2008.</p>
<p>For more information about this event, please visit: <a href="http://www.osdc.com.au/">http://www.osdc.com.au/</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://halfcooked.com/blog/2008/10/02/osdc-2008-early-bird-registration/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Photo Meme</title>
		<link>http://halfcooked.com/blog/2008/09/30/photo-meme/</link>
		<comments>http://halfcooked.com/blog/2008/09/30/photo-meme/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 12:21:52 +0000</pubDate>
		<dc:creator>Andy Todd</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[photo]]></category>

		<guid isPermaLink="false">http://halfcooked.com/blog/?p=83</guid>
		<description><![CDATA[
Instructions: Take a picture of yourself right now. Don&#8217;t change your clothes, don&#8217;t fix your hair - just take a picture. Post that picture with NO editing. Post these instructions with the picture.
Hat tip - Steve Holden and Simon Brunning
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/44124365628@N01/2901881164" title="View 'Look, it's me' on Flickr.com"><img src="http://farm4.static.flickr.com/3271/2901881164_466e73e533_t.jpg" alt="Look, it's me" border="0" width="100" height="75" /></a></p>
<p>Instructions: Take a picture of yourself right now. Don&#8217;t change your clothes, don&#8217;t fix your hair - just take a picture. Post that picture with NO editing. Post these instructions with the picture.</p>
<p>Hat tip - <a href="http://holdenweb.blogspot.com/2008/09/photo-meme.html">Steve Holden</a> and <a href="http://www.brunningonline.net/simon/blog/archives/002271.html">Simon Brunning</a></p>
]]></content:encoded>
			<wfw:commentRss>http://halfcooked.com/blog/2008/09/30/photo-meme/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Vimoutliner Plugins</title>
		<link>http://halfcooked.com/blog/2008/08/26/vimoutliner-plugins/</link>
		<comments>http://halfcooked.com/blog/2008/08/26/vimoutliner-plugins/#comments</comments>
		<pubDate>Tue, 26 Aug 2008 04:31:34 +0000</pubDate>
		<dc:creator>Andy Todd</dc:creator>
		
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://halfcooked.com/blog/?p=81</guid>
		<description><![CDATA[I&#8217;m a big fan of Vimoutliner and use it for a variety of tasks. I recently managed to break my installation and thought I would document it here for future reference. Vimoutliner comes with a couple of plugins to support checkboxes next to items (for easy to do lists) and a technique called &#8216;hoisting&#8217;. Somehow [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a big fan of <a href="http://vimoutliner.org/">Vimoutliner</a> and use it for a variety of tasks. I recently managed to break my installation and thought I would document it here for future reference. Vimoutliner comes with a couple of plugins to support checkboxes next to items (for easy to do lists) and a technique called &#8216;hoisting&#8217;. Somehow in one of my frequent updates to my configuration I had lost support for both of these features.</p>
<p>It turns out that there is a small difference between the default configuration for Vimoutliner and <a href="http://amix.dk/blog/viewEntry/162">the way I set up my Vim environment</a>. By convention extension scripts for <a href="http://www.vim.org">Vim</a> are stored in a &#8216;plugin&#8217; directory under your Vim home (which is <span class="inlinecode">~/.vim</span> by default) and that is where, amongst others, I had place <span class="inlinecode">vo_checkbox.vim</span> and <span class="inlinecode">vo_hoist.vim</span>. But for reasons known only to itself I have just discovered that Vimoutliner looks for extension scripts in a directory called &#8216;plugins&#8217; (notice the plural). So a quick directory add and a couple of <span class="inlinecode">svn move</span>&#8217;s later and I was back in business.</p>
]]></content:encoded>
			<wfw:commentRss>http://halfcooked.com/blog/2008/08/26/vimoutliner-plugins/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Gerald release 0.2.3</title>
		<link>http://halfcooked.com/blog/2008/08/04/gerald-release-023/</link>
		<comments>http://halfcooked.com/blog/2008/08/04/gerald-release-023/#comments</comments>
		<pubDate>Mon, 04 Aug 2008 09:08:49 +0000</pubDate>
		<dc:creator>Andy Todd</dc:creator>
		
		<category><![CDATA[database]]></category>

		<category><![CDATA[oracle]]></category>

		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://halfcooked.com/blog/?p=79</guid>
		<description><![CDATA[I have packaged and released version 0.2.3 of gerald. This is mainly a tidy up and bug fix release, with numerous additional unit tests. You can find all of the details in the CHANGELOG.txt file that comes with the source distribution (or view it here) but in a nutshell the changes from the last release [...]]]></description>
			<content:encoded><![CDATA[<p>I have packaged and released version 0.2.3 of <a href="http://halfcooked.com/code/gerald/">gerald</a>. This is mainly a tidy up and bug fix release, with numerous additional unit tests. You can find all of the details in the CHANGELOG.txt file that comes with the source distribution (or view it <a href="http://halfcooked.svn.sourceforge.net/viewvc/halfcooked/tags/release-0.2.3/CHANGELOG.txt?revision=49&#038;view=markup">here</a>) but in a nutshell the changes from the last release are;</p>
<ul>
<li>Numerous renames to more fully comply with PEP-8</li>
<li>Added numerous tests, full details in the <a href="http://halfcooked.svn.sourceforge.net/viewvc/halfcooked/tags/release-0.2.3/CHANGELOG.txt?revision=49&#038;view=markup">CHANGELOG.txt</a> file</li>
<li>Added an &#8216;enabled&#8217; flag to table constraints (except in the MySQL module, because that database doesn&#8217;t support them) </li>
<li>Added support for column defaults in Oracle</li>
<li>Added a &#8216;table_name&#8217; attribute to the schema.Trigger class</li>
<li>Removed main and usage functions from each module that shouldn&#8217;t be imported</li>
</ul>
<p>Please download, install and enjoy. Bug reports or tumultuous praise to <a href="mailto:andy47@halfcooked.com">the usual address</a> please.</p>
]]></content:encoded>
			<wfw:commentRss>http://halfcooked.com/blog/2008/08/04/gerald-release-023/feed/</wfw:commentRss>
		</item>
		<item>
		<title>In Praise of the Genius Bar</title>
		<link>http://halfcooked.com/blog/2008/07/29/in-praise-of-the-genius-bar/</link>
		<comments>http://halfcooked.com/blog/2008/07/29/in-praise-of-the-genius-bar/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 01:47:21 +0000</pubDate>
		<dc:creator>Andy Todd</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[apple]]></category>

		<guid isPermaLink="false">http://halfcooked.com/blog/?p=77</guid>
		<description><![CDATA[This won&#8217;t be news to those of you in more enlightened locations but I had occasion to contrast the service from the shiny new Sydney Apple store genius bar with my previous Apple repair experiences today and walked away a very happy customer. 
My Macbook had not been well since last week. Basically the fan [...]]]></description>
			<content:encoded><![CDATA[<p>This won&#8217;t be news to those of you in more enlightened locations but I had occasion to contrast the service from the <a href="http://www.gizmodo.com.au/2008/06/sydney_apple_store_in_pictures.html">shiny new Sydney Apple store</a> genius bar with my <a href="http://www.halfcooked.com/mt/archives/000999.html">previous Apple repair experiences</a> today and walked away a very happy customer. </p>
<p>My Macbook had not been well since last week. Basically the fan was running constantly which apart from the annoying noise meant that the battery drained in about 30 minutes. Having had my last machine in and out of third party Apple certified repair shops for most of it&#8217;s short and inglorious life I was prepared for the worst. I migrated all of my files and data onto a borrowed work laptop and headed to George Street resigned to losing my machine for a couple of weeks. </p>
<p>I walked out half an hour later with a fully working machine. Admittedly the fault was minor and easily fixed but with my last machine each of the repair centres I used had a mandatory (usually two week) period where they kept the machine before looking at it. My experience in George street was about fifteen minutes.</p>
<p>All hail the shiny new store. Now to see if they can fix the internal microphone.</p>
]]></content:encoded>
			<wfw:commentRss>http://halfcooked.com/blog/2008/07/29/in-praise-of-the-genius-bar/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Shiny New Engine (v2.6)</title>
		<link>http://halfcooked.com/blog/2008/07/21/shiny-new-engine-v26/</link>
		<comments>http://halfcooked.com/blog/2008/07/21/shiny-new-engine-v26/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 11:56:43 +0000</pubDate>
		<dc:creator>Andy Todd</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://halfcooked.com/blog/?p=67</guid>
		<description><![CDATA[I&#8217;ve just upgraded to WordPress 2.6. As I have claims to be a technologist I install and upgrade my blog software using Subversion. An upgrade simply requires issuing an &#8216;svn switch&#8216; command and then running the WordPress database upgrade via the page that presents. Usually this works like a charm. Today I had issues.
I&#8217;ve logged [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just upgraded to WordPress 2.6. As I have claims to be a technologist I install and upgrade my blog <a href="http://codex.wordpress.org/Installing/Updating_WordPress_with_Subversion">software using Subversion</a>. An upgrade simply requires issuing an &#8216;<span class="inlinecode">svn switch</span>&#8216; command and then running the WordPress database upgrade via the page that presents. Usually this works like a charm. Today I had issues.</p>
<p>I&#8217;ve <a href="http://wordpress.org/support/topic/190717">logged a support ticket</a> but thought I should mention it here in case anyone else sees the same issue.</p>
<p>When I tried to log in after the database upgrade the login page just kept re-directing back to itself. The main page of this blog was showing, but with an error message stating (in part) - &#8220;error in akismet.php on line 487&#8243;. </p>
<p>After a little checking around I discovered that <a href="http://akismet.com/">Akismet</a> (the WordPress spam fighting plugin) needed to be upgraded at the same time as the core WordPress code and hadn&#8217;t. The old version (2.1.4) is not compatible with the latest WordPress release and needed to be upgraded (to 2.1.6). A simple workaround was to download and install the latest version of Akismet by hand so it wasn&#8217;t a huge problem, but it would have been nice if the WordPress Subversion repository had been updated to reflect the change.</p>
<p><strong>Update</strong>: OK, it&#8217;s probably me. A fresh checkout of WordPress (release 2.6 <em>or</em> 2.5) comes complete with the correct version of the Akismet plug in. It must have a problem with my &#8216;<span class="inlinecode">svn switch</span>&#8216; that I didn&#8217;t catch.</p>
]]></content:encoded>
			<wfw:commentRss>http://halfcooked.com/blog/2008/07/21/shiny-new-engine-v26/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Inspiration</title>
		<link>http://halfcooked.com/blog/2008/06/11/inspiration/</link>
		<comments>http://halfcooked.com/blog/2008/06/11/inspiration/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 11:03:34 +0000</pubDate>
		<dc:creator>Andy Todd</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://halfcooked.com/blog/?p=66</guid>
		<description><![CDATA[I just read, courtesy of Simon, a great article at the Guardian covering a presentation that Adrian Holovaty gave there last week.
Strangely enough I was talking about this with a colleague this very afternoon. My thesis was that data is generated by applications but should be considered independent of them. Treat your data carefully and [...]]]></description>
			<content:encoded><![CDATA[<p>I just read, courtesy of <a href="http://www.brunningonline.net/simon/blog/">Simon</a>, a great article at the Guardian covering a <a href="http://blogs.guardian.co.uk/digitalcontent/2008/06/_future_of_journalism_adrian_h.html">presentation</a> that <a href="http://www.holovaty.com/">Adrian Holovaty</a> gave there last week.</p>
<p>Strangely enough I was talking about this with a colleague this very afternoon. My thesis was that data is generated by applications but should be considered independent of them. Treat your data carefully and you have a treasure trove of information that defines your organisation. Take an application centric view of the world and you end up with a load of blobs that are only meaningful in the context of your application code. If you can ever find a way to free your information you can find so many different ways of viewing, interpreting and analysing it.</p>
<p>In essence this is the excitement that surrounds mashups and the value that shown in sites like <a href="http://chicagocrime.org/">Chicago Crime</a> and <a href="http://www.mysociety.org/">My Society</a>. Expose the data and then marvel at what happens.</p>
<p>As I said in a (remarkably brief) presentation that I gave tonight - I&#8217;m Andy and I&#8217;m a data manager. If I can ever find a way of making a living taking data, turning it into information and making it available in new and interesting ways I guarantee that I will quit my day job in a heartbeat.</p>
]]></content:encoded>
			<wfw:commentRss>http://halfcooked.com/blog/2008/06/11/inspiration/feed/</wfw:commentRss>
		</item>
		<item>
		<title>OSDC 2008 Call For Papers</title>
		<link>http://halfcooked.com/blog/2008/05/23/osdc-2008-call-for-papers/</link>
		<comments>http://halfcooked.com/blog/2008/05/23/osdc-2008-call-for-papers/#comments</comments>
		<pubDate>Fri, 23 May 2008 03:37:44 +0000</pubDate>
		<dc:creator>Andy Todd</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://halfcooked.com/blog/?p=65</guid>
		<description><![CDATA[In case you haven&#8217;t seen this elsewhere;
Call for Papers
Open Source Developers&#8217; Conference 2008
2nd - 5th December 2008, Sydney, Australia
The Open Source Developers&#8217; Conference 2008 is a conference run by open source developers, for developers and business people. It covers numerous programming languages across a range of operating systems, and related topics such as business processes, [...]]]></description>
			<content:encoded><![CDATA[<p>In case you haven&#8217;t seen this elsewhere;</p>
<p>Call for Papers<br />
Open Source Developers&#8217; Conference 2008<br />
2nd - 5th December 2008, Sydney, Australia</p>
<p>The Open Source Developers&#8217; Conference 2008 is a conference run by open source developers, for developers and business people. It covers numerous programming languages across a range of operating systems, and related topics such as business processes, licensing, and strategy. Talks vary from introductory pieces through to the deeply technical. It is a great opportunity to meet, share, and learn with like-minded individuals.</p>
<p>This year, the conference will be held in Sydney, Australia during the first week of December (2nd - 5th). If you are an Open Source maintainer, developer or user, the organising committee would encourage you to submit a talk proposal on open source tools, solutions, languages or technologies you are working with.</p>
<p>For more details and to submit your proposal(s), goto: <a href="http://osdc.com.au/2008/papers/cfp.html">http://osdc.com.au/2008/papers/cfp.html</a></p>
<p>If you have any questions or require assistance with your submission, please don&#8217;t hesitate to ask!</p>
<p>We recognise the importance of Open Source in providing a medium for collaboration between individuals, researchers, business and government. In recognition of this and ensure a high standard of presentations, we intend to peer-review all submitted papers.</p>
<p>OSDC 2008 Sydney (Australia) - Key Program Dates:</p>
<p>30 Jun - Initial proposals (short abstract) due<br />
21 Jul - Proposal acceptance<br />
15 Sep - Accepted paper submissions<br />
13 Oct - Reviews completed<br />
27 Oct - Final paper submission cutoff</p>
<p>For all information, contacts and updates, see the OSDC conference web site at <a href="http://osdc.com.au/2008/">http://osdc.com.au/2008/</a></p>
<p>Also if you are interested in sponsoring, please see: <a href="http://www.osdc.com.au/2008/sponsors/opportunities.html">http://www.osdc.com.au/2008/sponsors/opportunities.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://halfcooked.com/blog/2008/05/23/osdc-2008-call-for-papers/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Opening a file in Python</title>
		<link>http://halfcooked.com/blog/2008/05/09/opening-a-file-in-python/</link>
		<comments>http://halfcooked.com/blog/2008/05/09/opening-a-file-in-python/#comments</comments>
		<pubDate>Fri, 09 May 2008 11:01:18 +0000</pubDate>
		<dc:creator>Andy Todd</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://halfcooked.com/blog/?p=64</guid>
		<description><![CDATA[I&#8217;m sure I read this somewhere recently, but my scratchy memory and command of Google can&#8217;t bring it back to me.
Is there a Python idiom for accepting either a file name or a file object as a function parameter?
The closest I can get is this;

def my_function(file_name_or_object):
    try:
      [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure I read this somewhere recently, but my scratchy memory and command of Google can&#8217;t bring it back to me.</p>
<p>Is there a Python idiom for accepting either a file name or a file object as a function parameter?</p>
<p>The closest I can get is this;</p>
<pre>
def my_function(file_name_or_object):
    try:
        open(file_name_or_object)
    except TypeError:
        file = file_name_or_object
    return file
</pre>
<p>Any improvements on this are more than welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://halfcooked.com/blog/2008/05/09/opening-a-file-in-python/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Trouble Getting a Date</title>
		<link>http://halfcooked.com/blog/2008/05/09/trouble-getting-a-date/</link>
		<comments>http://halfcooked.com/blog/2008/05/09/trouble-getting-a-date/#comments</comments>
		<pubDate>Thu, 08 May 2008 22:04:59 +0000</pubDate>
		<dc:creator>Andy Todd</dc:creator>
		
		<category><![CDATA[database]]></category>

		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://halfcooked.com/blog/?p=63</guid>
		<description><![CDATA[I&#8217;m having trouble with dates. This can be summed up in a couple of high level issues;
1. Date support in relational databases is insane, or at the best inconsistent.
As far as I can tell the ANSI SQL-92 standard defines date, time, interval and timestamp data types. Which doesn&#8217;t help when SQL Server only implements something [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m having trouble with dates. This can be summed up in a couple of high level issues;
<p>1. Date support in relational databases is insane, or at the best inconsistent.</p>
<p>As far as I <a href="http://www.cyberarmy.net/library/article/190">can tell</a> the ANSI SQL-92 standard defines date, time, interval and timestamp data types. Which doesn&#8217;t help when <a href="http://www.microsoft.com/sql/default.mspx">SQL Server</a> only implements something called &#8216;datetime&#8217; - at least I think so, have you tried accessing any sort of manual for a Microsoft product online? Blimey, I thought billg had embraced this web thing years ago. Oracle has the &#8216;date&#8217; data type (which is actually a time stamp) and <a href="http://dev.mysql.com/doc/refman/5.1/en/date-and-time-types.html">MySQL</a>, well they&#8217;ve gone and outdone everyone by implementing  DATETIME, DATE, TIMESTAMP, TIME, and YEAR.</p>
<p>2. The Python DB-API does not cope with date data type ambiguity well.</p>
<p>When it comes to the date question the <a href="http://www.python.org/dev/peps/pep-0249/">Python DB-API</a> states (and I quote) &#8221; &#8230; may use mx.DateTime&#8221;, which if you ask me isn&#8217;t much of a standard. This needs to change so that all DB-API modules return consistent datetime objects, not such a big issue as datetime has been part of the standard library since, what, Python 2.3?</p>
<p>Sadly even if we fix this it won&#8217;t work with <a href="http://www.sqlite.org/">Sqlite</a> as it doesn&#8217;t consistently support data typing. In my experiments regardless of what sort of date you insert into the database you get a unicode string back. Don&#8217;t believe me? Try this in Python 2.5;</p>
<pre>
>>> from sqlite3 import dbapi2
>>> db = dbapi2.connect('test_db')
>>> cursor = db.cursor()
>>> cursor.execute('create table date_test (id integer not null primary key autoincrement, sample_date DATE NOT NULL)'
>>> stmt = "INSERT INTO date_test (sample_date) VALUES (?)"
>>> cursor.execute(stmt, (1234, ))
>>> import datetime
>>> cursor.execute(stmt, (datetime.date(2008, 3, 10), ))
>>> cursor.execute(stmt, ('My name is Earl', ))
>>> db.commit()
>>> cursor.execute("SELECT * FROM date_test")
>>> results = cursor.fetchall()
>>> for item in results:
...     print item[1], type(item[1])
1234 <type 'int'>
2008-03-10 <type 'unicode'>
My name is Earl <type 'unicode'>
>>>
</pre>
<p>But note that it is fine for integers.</p>
<p>3. The people writing the Python standard library modules are on crack.
<p>Outside of the database world and within the batteries included Python standard library some modules use <a href="http://docs.python.org/lib/module-datetime.html">datetime</a>, others <a href="http://docs.python.org/lib/module-time.html">time</a> and there are even uses of <a href="http://docs.python.org/lib/module-calendar.html">calendar</a>.</p>
<p>O.K. I&#8217;ll accept that maybe the module authors aren&#8217;t on full strength crack, because the <a href="http://docs.python.org/lib/module-time.html">time</a> module just exposes underlying posix functions. But the people who wrote those were on something strong and hallucinogenic. I table the following function signatures from section <a href="http://docs.python.org/lib/module-time.html">14.2</a> of the Python Library Reference 2.5 as an example;</p>
<pre>
strftime(format[, t ])
strptime(string[, format ])
</pre>
<p>This has bitten me twice in the last twenty four hours and frankly I&#8217;m not happy.</p>
<p>I appreciate that there are historical reasons for having inconsistent function signatures but can someone please fix this in Python 3.0. All we need is a single module that can access the underlying system clock and then convert between a number of different representations of that and other epoch driven dates. How hard can it be? As far as I can tell this is not part of the <a href="http://www.python.org/dev/peps/pep-3108/">proposed standard library re-organisation</a>. I think it should be.</p>
]]></content:encoded>
			<wfw:commentRss>http://halfcooked.com/blog/2008/05/09/trouble-getting-a-date/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
