[Python-Dev] No "check syntax" command line option
Barry Scott
barry@barrys-emacs.org
Tue, 7 May 2002 23:41:56 +0100
Oh. I've been using
python -c "import py_compile,sys;sys.stderr =
sys.stdout;py_compile.compile('$file')"
Is this better or worse?
BArry
-----Original Message-----
From: python-dev-admin@python.org [mailto:python-dev-admin@python.org]On
Behalf Of Fredrik Lundh
Sent: 04 May 2002 22:20
To: Jack Jansen; python-dev@python.org
Subject: Re: [Python-Dev] No "check syntax" command line option
jack wrote:
> Is there a roundabout way to do this?
python -c "compile(open('$filename').read(), '$filename', 'exec')"
works with all versions.
</F>
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev