[pywin32-bugs] [ pywin32-Bugs-3555177 ] makepy can generate invalid syntax
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2012-08-07 20:18:30
|
Bugs item #3555177, was opened at 2012-08-07 13:18 Message generated for change (Tracker Item Submitted) made by rupole You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3555177&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: Open Resolution: None Priority: 5 Private: No Submitted By: Roger Upole (rupole) Assigned to: Nobody/Anonymous (nobody) Summary: makepy can generate invalid syntax Initial Comment: From this question on StackOverflow: http://stackoverflow.com/questions/11630973/makepy-error-xceedzip-dll If a module contains constants whose repr() can't be used as a constructor, it will get written to the generated file anyway, causing a SyntaxError when it's imported. In this case it was a time, generating the invalid code xcdMaximumDate =<PyTime:12/31/9999 12:00:00 AM> # from enum XceedConstants ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3555177&group_id=78018 |