[python-win32] Poll: split of adodbapi.py into two modules? (django support)
Massa, Harald Armin
chef at ghum.de
Sun Nov 29 10:40:03 CET 2009
Vernon,
>
> accessible to other uses:
> >>> ado_consts.adLongVarWChar
> 203
> >>> ado_consts.ado_type_name(203)
> 'adLongVarWChar'
> >>>
>
> This will break code which expects some of these constants to be attributes
> of adodbapi, such as 'adUseClient' and 'adXactBrowse'.
that does not have to be this way.
a) You can import those consts into the adodbapi-namespace per
default, and they will be available from that module
adodbapi.py:
...
import * from ado_consts
or b) anybody who needs it can put this line into adodbapi.py
... I am sure there are more ways to provide a smooth transition.
BEst wishes,
Harald
--
GHUM Harald Massa
persuadere et programmare
Harald Armin Massa
Spielberger Straße 49
70435 Stuttgart
0173/9409607
no fx, no carrier pigeon
-
%s is too gigantic of an industry to bend to the whims of reality
More information about the python-win32
mailing list