Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#606 makepy can generate invalid syntax

closed-fixed
nobody
com (105)
5
2012-08-19
2012-08-07
Roger Upole
No

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

Discussion

  • Roger Upole
    Roger Upole
    2012-08-19

    Syntax is now checked when using the repr of an item

     
  • Roger Upole
    Roger Upole
    2012-08-19

    • status: open --> closed-fixed