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/023936.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 optionGuido van Rossum guido@python.org
Sat, 04 May 2002 17:48:10 -0400
> I just realized (after being prompted by the makers of BBEdit, a 
> very fine programmers editor for the Mac) that Python doesn't 
> appear to have a "check syntax only" switch, like Perl and other 
> languages do have. They'd like to have this, for (you guessed 
> it) their "check syntax" command.
> 
> Is there a roundabout way to do this?

It should be trivial to write a script that uses the built-in function
compile() on the text of a given module.  No need to add another
command line switch (that's not "the Python way" :-).

--Guido van Rossum (home page: http://www.python.org/~guido/)




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