[IronPython] Poll: split of adodbapi.py into two modules? (django support)
tony.meyer at gmail.com
Sat Nov 28 19:19:39 PST 2009
On Sun, Nov 29, 2009 at 3:34 PM, Vernon Cole <vernondcole at gmail.com> wrote:
> One of the changes Adam made was to remove dozens of lines defining various
> ADO constants from adodbapi.py and place them in
> another file, ado_consts.py.
> This will break code which expects some of these constants to be attributes
> of adodbapi, such as 'adUseClient' and 'adXactBrowse'.
I'm not familiar with adodbapi, but couldn't you put "from ado_consts
import *" at the top of adodbapi and have everything still work?
(Or better, but much more work, import adodbapi, and then expose each
of the constants via a DeprecationWarning-raising object).
More information about the Users