[DB-SIG] Sybase module 0.11 (Sam Rushing release) released

Dave Cole djc@object-craft.com.au
23 Dec 2000 17:34:16 +1100


What is it:

The Sybase module provides a Python interface to the Sybase relational
database system. The Sybase package supports almost all of the Python
Database API, version 2.0 with extensions.

The module works with Python versions 1.5.2 and later and Sybase
versions 11.0.3 and later.  It is based on the Sybase Client Library
(ct_* API), and the Bulk-Library Client (blk_* API) interfaces.

Changes:

- The hashing of numeric objects has been fixed to generate the same
  hash values as a Python int / long of the same value.  Thanks to Sam
  Rushing for helping with this.

>>> import Sybase
>>> hash(100)
100
>>> hash(Sybase.numeric(100))
100
>>> hash(10000000000000000L)
1877247730
>>> hash(Sybase.numeric(10000000000000000L))
1877247730

  Hash of a float value does not match.

>>> hash(Sybase.numeric(100.2))
-1654341571
>>> hash(100.2) 
-1717999926

Where can you get it:

        http://www.object-craft.com.au/projects/sybase/

- Dave

-- 
http://www.object-craft.com.au