Skip to main content

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

This version
History Node

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
PyCY-1.0.0.zip (3.6 kB) Copy SHA256 hash SHA256 Source None Oct 6, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page