wrapper for windows CY type
Project description
This is a binary Python extension that encapsulates Windows CY values. CY values are actually 64-bit signed integers that are implicitly scaled by 10e4, ie. you can store fixed-point decimal numbers with 4 digits after the decimal point. In Python when you get one of these back from a COM method it returns a tuple of two integers. This is generally not very useful, especially if you think that you can turn around and assign this to some other COM object’s property and expect that it will do the right thing (get the value as a CY value) ‘cause it won’t.
This Python extension DLL doesn’t solve the whole problem because since the COM extensions for Python don’t have any way of passing these values in their full 64-bit glory (as near as I can tell) there are some numbers you just wouldn’t be able to set. This extension will at least though allow you to manipulate these values. It has full Python numeric type support (you can add, subtract, multiply, etc). It converts to and from a variety of types. I think there are probably a few more features needed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file PyCY-1.0.0.zip
.
File metadata
- Download URL: PyCY-1.0.0.zip
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab40ed842e53a2afdf79f70c47f9302ce2df4ef907c03b16dfeda72c13592ec5 |
|
MD5 | 838c2cd3094e3af64bdb7262f8f54700 |
|
BLAKE2b-256 | 02542970805a3a4b3fe97a547b5b505c7927ced1bfb2eb6271fb95fd7753b9eb |