1. 17 Eyl, 2001 2 kayıt (commit)
    • Jeremy Hylton's avatar
      Last set of change to get regression tests to pass · 2e4cc7e0
      Jeremy Hylton yazdı
      Remove the only test in the syntax module.  It ends up that the
      transformer must handle this error case.
      
      In the transformer, check for a list compression in com_assign_list()
      by looking for a list_for node where a comma is expected.
      
      In pycodegen.compile() re-raise the SyntaxError rather than catching
      it and exiting
      2e4cc7e0
    • Jeremy Hylton's avatar
      Handle more syntax errors. · 37c9351c
      Jeremy Hylton yazdı
      Invoke compiler.syntax.check() after building AST.  If a SyntaxError
      occurs, print the error and exit without generating a .pyc file.
      
      Refactor code to use compiler.misc.set_filename() rather than passing
      filename argument around to each CodeGenerator instance.
      37c9351c