Comments (3)
It seems to work fine with other COM objects though - can you demonstrate the array element missing from some well-known object (eg, any Office product, Windows Scripting Host, IE, etc?)
from pywin32.
To be honest I'm struggling to find a standard library that returns arrays of UDTs - I'll keep looking though - in my case it's an in-house piece of software that's returning the array,
For what it's worth, I did a find-in-files for all cases of 'SafeArrayGetUBound' and by inspection all other places appear to treat the result as 'inclusive' whereas PyRecord.cpp treats it as 'exclusive'.
E.g.
PyCOMImpl.cpp @ 282: *resultSize = ub - lb + 1; // Plus one
PyCOMImpl.cpp @ 332: for (long i = lb; i <= ub; i++) { // Less or equal
oleargs.cpp @ 736: if ((unsigned long)(exist_ubound - exist_lbound + 1) != pBounds[dimLook - 1].cElements) { // Plus one.
oleargs.cpp @ 988: long cElems = ub - lb + 1; // Plus one.
from pywin32.
right, I missed that subtlety - only arrays of records are impacted. So yeah, it does sound like this might be a problem, thanks.
from pywin32.
Related Issues (20)
- Feature Request: Add Python API for PrintWindow Function HOT 1
- pywin32print printer info levels: Expose more PRINTER_INFO_* constants HOT 1
- images
- Random `testFileTimes` test failure in `test_win32file.py` HOT 1
- pywin32_postinstall wrongly identifies a debug build HOT 1
- Running `setup.py` as a script and its use as a CLI tool are deprecated
- Error processing SyntaxError exception from a Python Script HOT 1
- unable to compile pywin32 with python3.13 HOT 2
- pywintypes.error: (5, 'RegOpenKeyEx', 'Access is denied.') when running service with debug parameter and no elevation
- Pywin32gui doesn't install HOT 2
- Pythonwin interactive window now gets tracebacks with python3.12, probably 3.11 too... HOT 2
- Unable to set value in in connection to application HOT 1
- RuntimeError: MFC redist DLLs not found like (looking for mfc140u.dll) HOT 2
- Can we fetch the event of PrintService HOT 1
- Unable to install/load from wheel at run time HOT 1
- build 306 cannot build with python3.12 HOT 3
- IDispatch = pythoncom.connect(IDispatch) pywintypes.com_error: (-2147221021, 'Operation unavailable', None, None) HOT 1
- Does it support winUI3 HOT 1
- Scripting with win32api fails in Python 3.12 HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pywin32.