Python Forum
compiling but not running source code
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
compiling but not running source code
#2
Use the builtin function compile(). It does just that: compile and not run.

From the command line, you can also try python -m compileall <options> <args>.
Skaperen likes this post
Reply


Messages In This Thread
compiling but not running source code - by Skaperen - Jun-05-2022, 10:17 PM
RE: compiling but not running source code - by Gribouillis - Jun-05-2022, 10:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  compiling with an undefined variable Skaperen 0 1,043 Nov-10-2022, 11:59 PM
Last Post: Skaperen
  running produced python code Skaperen 6 2,046 Dec-25-2021, 05:52 PM
Last Post: Skaperen
  compiling numpy, getting C source Skaperen 10 3,880 Nov-20-2021, 12:41 AM
Last Post: Skaperen
  code running after tracebacks Skaperen 0 1,304 Oct-03-2021, 12:09 AM
Last Post: Skaperen
  empty lines in source code Skaperen 6 3,134 Jun-02-2021, 07:11 PM
Last Post: Gribouillis
  python compiling and sql? abrogard 2 2,371 Oct-27-2020, 06:37 AM
Last Post: buran
  Running three-year old python code ErnestTBass 4 2,629 Jun-19-2020, 02:46 PM
Last Post: snippsat
  visual studio code python how to get source code of import module definitian umen 2 4,105 Jun-13-2020, 06:20 PM
Last Post: umen
  Where can I get information about internal logic of source code Python? AlekseyPython 1 2,616 Dec-17-2018, 05:27 AM
Last Post: siripriya
  How do I properly release my code open-source? Brennan 1 2,626 Jun-30-2018, 12:33 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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