LionHeart123 / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

Syntax Checker misses "SyntaxError: non-keyword arg after keyword arg" #651

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Create a new python module
2. define function as
def a(b, c):
    pass

3. call it as
a(b=2, 1)

3. run syntax checker on the script

What is the expected output? What do you see instead?
It should detect the SyntaxError: non-keyword arg after keyword arg error, but 
falsely validates the syntax of the document instead.

What version of the product are you using? On what operating system?
2.5.3 on Win7 HP

Please provide any additional information below.

Original issue reported on code.google.com by theman.t...@gmail.com on 30 Apr 2012 at 8:07

GoogleCodeExporter commented 9 years ago
This is not a PyScripter issue.  Python compiles the code fine but will raise a 
runtime error.  Try yourself to use compile on this code.

Original comment by pyscripter on 1 May 2012 at 12:09