Sybase module 0.10 released 
Author Message
 Sybase module 0.10 released

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 numeric object has been reimplemented using the
  cs_convert/cs_calc/cs_cmp API.  This has improved the coerce
  behaviour over the previous release.

Quote:
>>> import Sybase
>>> n = Sybase.numeric(100200300400500L)
>>> n / 12.3456

8116276276608.6702954898911353032659409020
Quote:
>>> n / Sybase.numeric('12.3456')

8116276276608.67029548989113530326
Quote:
>>> n.precision, n.scale
(15, 0)
>>> n + 12.3456

100200300400512.345600000000
Quote:
>>> n + Sybase.numeric('12.3456')

100200300400512.3456
Quote:
>>> n.precision, n.scale

(15, 0)

  You can also specify a precision and scale in the constructor.

Quote:
>>> m = Sybase.numeric(n, 30, 2)
>>> m
100200300400500.00
>>> m.precision, m.scale

(30, 2)

Where can you get it:

        http://www.*-*-*.com/

- Dave

--
http://www.*-*-*.com/



Tue, 10 Jun 2003 13:38:38 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Sybase module 0.30 (Graham Ashton release) released

2. Sybase module 0.24 (Timothy Docker release) released

3. Sybase module 0.13 (Chad Lester release) released

4. Sybase module 0.30 (Graham Ashton release) released

5. Sybase module 0.24 (Timothy Docker release) released

6. Sybase module 0.13 (Chad Lester release) released

7. Sybase module 0.12 (Aki Yamashita release) released

8. Sybase module 0.11 (Sam Rushing release) released

9. Sybase module 0.36 released

10. Sybase module 0.36pre6 released

11. Sybase module 0.36pre5 released

12. Sybase module 0.36pre4 released

 

 
Powered by phpBB® Forum Software