A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-May/023983.html below:

[Python-Dev] No "check syntax" command line option

[Python-Dev] No "check syntax" command line option [Python-Dev] No "check syntax" command line optionBarry 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






RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4