Carl Banks wrote:
On Dec 10, 5:26 pm, Ethan Furman [EMAIL PROTECTED] wrote:
Greetings List!
I'm writing a wrapper to the datetime.date module to support having no
date. Its intended use is to hold a date value from a dbf file, which
can be empty.
The class is functional at this point, but
On Dec 11, 11:33 am, Ethan Furman et...@stoneleaf.us wrote:
Good question. My goal with NullDate is to have a date object that I
can treat the same regardless of whether or not it actually holds a
date. NullDates with no value should sort before any NullDates with a
value, should be
On Thu, 11 Dec 2008 at 09:33, Ethan Furman wrote:
Carl Banks wrote:
On Dec 10, 5:26 pm, Ethan Furman et...@stoneleaf.us wrote:
First of all, do you even need to wrap the datetime.date class? With
Python's duck typing ability, you could have a separate NullDate class
to go alongside the
Thanks, Carl! Thanks, RDM!
Your examples and ideas are much appreciated.
Many thanks also to everyone else who responded.
~Ethan~
--
http://mail.python.org/mailman/listinfo/python-list
Greetings List!
I'm writing a wrapper to the datetime.date module to support having no
date. Its intended use is to hold a date value from a dbf file, which
can be empty.
The class is functional at this point, but there is one thing I would
like to change -- datetime.date.max and
Ethan Furman wrote:
Greetings List!
I'm writing a wrapper to the datetime.date module to support having no
date. Its intended use is to hold a date value from a dbf file, which
can be empty.
The class is functional at this point, but there is one thing I would
like to change --
James Stroud wrote:
I resisted posting a similar question recently. After much
consideration, I realized that the inability to reference a class inside
its own definition must have been a deliberate design of the language.
The class *does not exist* to be referenced from inside its body
On Dec 10, 5:26 pm, Ethan Furman [EMAIL PROTECTED] wrote:
Greetings List!
I'm writing a wrapper to the datetime.date module to support having no
date. Its intended use is to hold a date value from a dbf file, which
can be empty.
The class is functional at this point, but there is one thing
On Dec 10, 8:18 pm, James Stroud [EMAIL PROTECTED] wrote:
Ethan Furman wrote:
Greetings List!
I'm writing a wrapper to the datetime.date module to support having no
date. Its intended use is to hold a date value from a dbf file, which
can be empty.
The class is functional at this