[DB-SIG] PROPOSAL: Portable Argment Format

M.-A. Lemburg mal@lemburg.com
Wed, 24 Jun 1998 18:17:46 +0200

Jim Fulton wrote:
> M.-A. Lemburg wrote:
> > Note that you can provide the whole functionality by coding
> > a Python function (or class) on top of cursor.execute, so no change to
> > the API spec is necessary. Moreover, every existing implementation
> > will be able to use it without modification (which is a Good Thing :).
> How?  Each implementation has to be involved in implementing this.
> For example, portable aguments have to be converted to platform-
> specific arguments, and platform specific conversions have to be
> applied.  Utilities can be provided to make the implementation simpler,
> but implementation-specific code is needed.

I was thinking of a framework which each interface implementor
could then subclass. The subclasses would simply override the
methods in order to provide the right conversions. Most of the other
code and the basic structure will remain reusable.

Marc-Andre Lemburg                               Y2000: 555 days left
          : Python Pages >>> http://starship.skyport.net/~lemburg/  :