[pywin32-bugs] [ pywin32-Bugs-1960311 ] 'None' returned for COM string constants
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2008-05-24 02:56:31
|
Bugs item #1960311, was opened at 2008-05-09 01:01 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1960311&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: com Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Mark Hammond (mhammond) Assigned to: Mark Hammond (mhammond) Summary: 'None' returned for COM string constants Initial Comment: String constants in an IDL file have none returned. Eg, an IDL file has: module Constants { const char CharTest = -1; const LPWSTR StringTest = L"Hello Loraine"; }; and the generated .py file will have: class constants: CharTest =-1 # from enum Constants StringTest ='None' # from enum Constants Attaching a patch that demonstrates the problem, but I don't see the problem yet. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2008-05-24 12:56 Message: Logged In: YES user_id=14198 Originator: YES Turns out this was a regression caused by #1651025. Checking in TestSources/PyCOMTest/PyCOMTest.idl; new revision: 1.18; previous revision: 1.17 Checking in win32com/client/genpy.py; new revision: 1.54; previous revision: 1.53 Checking in win32com/src/extensions/PyVARDESC.cpp; new revision: 1.5; previous revision: 1.4 Checking in win32com/test/testPyComTest.py; new revision: 1.31; previous revision: 1.30 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1960311&group_id=78018 |