[python-win32] survey question: should data from database columns of type adGUID be returned as instances of class uuid?

2013-04-14 Thread Vernon D. Cole
I am doing a major update to adodbapi, and have an ideal opportunity to add
a new feature ... but I want to see whether it is a desirable feature...

When reading data from database columns of decimal or date-time data, I
return them to the user as Python decimal.decimal or datetime.datetime
instances.  I could do the same thing when reading of column of UUID data
-- Windows data type adGUID -- and return it as an instance of the class
uuid.

Would that be a good idea, or a bad idea?
--
Vernon Cole
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32


Re: [python-win32] survey question: should data from database columns of type adGUID be returned as instances of class uuid?

2013-04-14 Thread Aahz
On Sun, Apr 14, 2013, Vernon D. Cole wrote:

 I am doing a major update to adodbapi, and have an ideal opportunity to add
 a new feature ... but I want to see whether it is a desirable feature...
 
 When reading data from database columns of decimal or date-time data, I
 return them to the user as Python decimal.decimal or datetime.datetime
 instances.  I could do the same thing when reading of column of UUID data
 -- Windows data type adGUID -- and return it as an instance of the class
 uuid.
 
 Would that be a good idea, or a bad idea?

Keeping in mind that I have zero experience with adodbapi and that most
of my development experience has been more Linux-based (with a fair
amount of general DB work), this certainly falls into the kind of
behavior that I think would make using a framework easier, so +1 unless
someone has a specific objection.
-- 
Aahz (a...@pythoncraft.com)   * http://www.pythoncraft.com/

In times like these, it helps to recall that there have always been
times like these.  --Paul Harvey
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32