Python Forum
Script to check the syntax of Python files
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script to check the syntax of Python files
#4
(Oct-19-2024, 01:16 PM)Axel_Erfurt Wrote: pint("hello world")
how could the Python compiler know that was bad without running it? it is valid code ... for a context that has a pint() function. the compiler can only catch bad code, which i understand to be syntax errors. maybe some funny Unicode values can cause a compile failure. but you'd want to catch those, too.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
RE: Script to check the syntax of Python files - by Skaperen - Nov-01-2024, 01:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Watch files and automatically run a script in Linux Gribouillis 4 6,254 Aug-14-2023, 11:57 AM
Last Post: Gribouillis
  script to check bash scripts Skaperen 3 3,732 Sep-19-2019, 10:26 PM
Last Post: Skaperen
Lightbulb Script broke with Python 3 / improve script for printing aspecteleven 4 5,856 Feb-22-2019, 12:23 PM
Last Post: buran
  script to filter python files Skaperen 3 75,676 Nov-03-2016, 02:41 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020