[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-19 17:00:34
|
Bugs item #3555177, was opened at 2012-08-07 13:18 Message generated for change (Comment added) 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: Closed >Resolution: Fixed 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 ---------------------------------------------------------------------- >Comment By: Roger Upole (rupole) Date: 2012-08-19 10:00 Message: Syntax is now checked when using the repr of an item ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3555177&group_id=78018 |