Re: syntax checker in python

2009-08-10 Thread nn
On Aug 7, 4:39 pm, horos11 wrote: > ps - I just realized that it isn't enough to do: > > python -c 'import /path/to/script' > > since that actually executes any statement inside of the script > (wheras all I want to do is check syntax) > > So - let me reprhase that - exactly how can you do a synta

Re: syntax checker in python

2009-08-08 Thread Carl Banks
On Aug 7, 1:39 pm, horos11 wrote: > ps - I just realized that it isn't enough to do: > > python -c 'import /path/to/script' > > since that actually executes any statement inside of the script > (wheras all I want to do is check syntax) > > So - let me reprhase that - exactly how can you do a synta

Re: syntax checker in python

2009-08-07 Thread Diez B. Roggisch
horos11 schrieb: ps - I just realized that it isn't enough to do: python -c 'import /path/to/script' since that actually executes any statement inside of the script (wheras all I want to do is check syntax) So - let me reprhase that - exactly how can you do a syntax check in python? Something

Re: syntax checker in python

2009-08-07 Thread Jonathan Gardner
On Aug 7, 1:39 pm, horos11 wrote: > ps - I just realized that it isn't enough to do: > > python -c 'import /path/to/script' > > since that actually executes any statement inside of the script > (wheras all I want to do is check syntax) > > So - let me reprhase that - exactly how can you do a synta

syntax checker in python

2009-08-07 Thread horos11
ps - I just realized that it isn't enough to do: python -c 'import /path/to/script' since that actually executes any statement inside of the script (wheras all I want to do is check syntax) So - let me reprhase that - exactly how can you do a syntax check in python? Something like perl's -c: