Date manipulation and Java 'interface' equivalents

Olivier Dagenais olivierS.dagenaisP at canadaA.comM
Sun Nov 5 21:40:28 CET 2000

I believe it was once suggested you create an abstract base class that
throws exceptions in each and every member, that way you HAVE to override
each member in your subclass, therefore implementing the interface...

Olivier A. Dagenais - Software Architect and Developer
"Someone called 'Type your name here' is impersonating me on the
internet and is posting exactly the same things I am posting!"

"Martin Christensen" <knightsofspamalot-factotum at> wrote in
message news:87puka8qaw.fsf at
> Howdy,
> There are two matters for which I would like clarification.
> First of all, I am doing some statistics with a PostgreSQL database,
> and for this I need to manipulate some dates, ie. add a week to this
> date or subtract a month from another. I didn't find any obvious
> candidates for this kind of date math in the library reference. Now,
> _of course_ this can be done in Python rather than forcing me to use
> the DBMS for this, but... erm... how?
> Second question: is there a Python equivalent of Java interfaces? In a
> matter of months I'll be constructing a web based sales and customer
> relations thingy, and a similar feature would really make things
> easier. I haven't decided on the implementation language yet, but
> this is one of the things that make Java more appealing.
> Martin
> --
> GPG public key:

More information about the Python-list mailing list