pypxlib | Python bindings for the pxlib library
kandi X-RAY | pypxlib Summary
kandi X-RAY | pypxlib Summary
Python bindings for the pxlib library for reading and writing Paradox databases.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create ld . cache .
- Return a list of directories for the given library .
- Convert obj to string .
- Initialize the PX document .
- Create a Field from a given type .
- Create a ctypes pointer .
- Load a library .
- Deserialize milliseconds since epoch .
- Deserialize a date string into a date object .
- Add other .
pypxlib Key Features
pypxlib Examples and Code Snippets
Community Discussions
Trending Discussions on pypxlib
QUESTION
I'm reading in a data file from a Paradox database file (.DB) using a module pypxlib.
Whilst reading each row, I write to a CSV.
For some reason, values which expected to be 'None' are appearing as the number -2147483648.
Does anyone know the significance of this number? Why would this error be appearing?
Code below:
...ANSWER
Answered 2017-Nov-29 at 23:46Paradox tables contain several numeric types including 'Number' (64-bit floating point), 'Long Integer' (32-bit signed integer), and 'Short' (16-bit signed integer). Each of these types has an in-band value designated to represent 'blank' as distinguished from zero. These are the values that you are expecting to be 'None'.
When the pxlib library and pypxlib wrapper convert Paradox data to Python data types, the in-band value for 'blank' translates to a 1 followed by all 0's. In two's-complement notation this is the value that is furthest from zero in both the positive and negative direction.
If the BDE type was 'Long Integer' then this is indeed represented as -2147483648.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pypxlib
You can use pypxlib like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page