ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> db-sig
db-sig
Re: [DB-SIG] DB API 1.1 Spec
by M.-A. Lemburg other posts by this author
Mar 12 1999 7:41PM messages near this date
Re: [DB-SIG] DB API 1.1 Spec | Re: [DB-SIG] DB API 1.1 Spec
Stephen J. Turner wrote:
>  
>  Hello all,
>  
>  Calling the new spec "1.1" would to me suggest backward compatibility
>  with the 1.0 spec.  If this were true, then I would expect that
>  applications originally written to use a 1.0 implementation should work
>  unmodified with a 1.1 implementation.
>  
>  However, some of the proposed 1.1 changes seem to be incompatible with
>  1.0, including:
>  - renaming the connection function from <ModuleName> to Connect

It's been lower-cased again... connect(). AFAIK, the convention
of calling the connector <ModuleName>  was not always adhered to,
so this may not be a big change.

>  - requiring keyword args for the connection function

Note that the module implementor can put the keywords into a
certain order that makes the constructor behave just like it did
for 1.0, e.g. dsn='',user='',passwd=''.

Hmm, maybe we should fix an order for the most important
keyword arguments.

>  - the new exception class hierarchy

The old "error" exception could be aliased to "Error".

>  - moving the callproc method from the Connection object to the Cursor
>  object

This may look like a big change, but since most interfaces did not
implement callproc() in the first place, I guess it's as bad as
it looks.

>  Should we therefore call the new spec "2.0" instead?

To be honest: I don't really care about the version number. Note that
in Python's own numbering scheme small changes like the ones above
are indeed allowed for minor revisions. Other opinions ?

Maybe we should add an appendix to the spec about the changes
from 1.0 to 1.1.

-- 
Marc-Andre Lemburg                               Y2000: 294 days left
---------------------------------------------------------------------
          : Python Pages > >> http://starship.skyport.net/~lemburg/  :
           ---------------------------------------------------------
Thread:
M.-A. Lemburg
M.-A. Lemburg
M.-A. Lemburg
Greg Stein
Stephen J. Turner
Andy Dustman
M.-A. Lemburg
M.-A. Lemburg
Greg Stein

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved