Revision: 16068
Updated Code
at July 27, 2009 09:21 by laurenceosx
Updated Code
# final solution for pymssql guid col value
import uuid
# ...
x = uuid.UUID( bytes=rs[0][1] )
print x
>>> print x
>>> 524b585b-c827-db44-9d14-2dd72b6190fc
# using pywintypes
import pywintypes
uv =pywintypes.IID( rs[0][1], True )
also from test code in my Python25 install
s = "{00020400-0000-0000-C000-000000000046}"
iid = pywintypes.IID(s)
iid2 = pywintypes.IID(buffer(iid), True)
Revision: 16067
Updated Code
at July 24, 2009 18:06 by laurenceosx
Updated Code
# final solution for pymssql guid col value
import uuid
# ...
x = uuid.UUID( bytes=rs[0][1] )
print x
>>> print x
>>> 524b585b-c827-db44-9d14-2dd72b6190fc
also from test code in my Python25 install
s = "{00020400-0000-0000-C000-000000000046}"
iid = pywintypes.IID(s)
iid2 = pywintypes.IID(buffer(iid), True)
Revision: 16066
Updated Code
at July 24, 2009 17:29 by laurenceosx
Updated Code
# ...
import pywintypes
>>> print str( pywintypes.IID( buffer(rs[0][0]), True ) )
{38354235-4234-3235-2D32-3743382D3434}
>>>
also from test code in my Python25 install
s = "{00020400-0000-0000-C000-000000000046}"
iid = pywintypes.IID(s)
iid2 = pywintypes.IID(buffer(iid), True)
Revision: 16065
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 24, 2009 17:27 by laurenceosx
Initial Code
# ...
import pywintypes
>>> print str( pywintypes.IID( buffer(rs[0][0]), True ) )
{38354235-4234-3235-2D32-3743382D3434}
>>>
Initial URL
Initial Description
Initial Title
pymssql - handle guid column value
Initial Tags
python
Initial Language
Python