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
On Thu, 11 Dec 2008 at 09:33, Ethan Furman wrote:
Carl Banks wrote:
On Dec 10, 5:26 pm, Ethan Furman 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 datetime.date, and use
On Dec 11, 11:33 am, Ethan Furman 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 comparable to dates as
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 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 function
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 o
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 unti
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 -- datetime.da
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 datetime.d