Catching python syntax errors at build time

Bill Nottingham notting at redhat.com
Fri Feb 20 17:44:20 UTC 2009


Tim Waugh (twaugh at redhat.com) said: 
> It occurred to me that, since we are already byte-compiling Python code  
> at build time, it is no extra effort to verify that it can be parsed and  
> fail if not.
>
> See attached patch.
>
> Can anyone think of any reason not to do this?

Only if it causes false positives; otherwise, I certainly
don't see a reason to not do it.

Bill




More information about the fedora-devel-list mailing list