Python Forum
exec + subprocess = UnboundLocalError
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
exec + subprocess = UnboundLocalError
#7
nilamo Wrote:if you're using eval(), you're doing something wrong. It's dangerous,
Executing Python code is already very dangerous. There is little difference with eval. Even storing Python scripts on your hard drive is dangerous. Watch out for wrong file permissions!
Reply


Messages In This Thread
exec + subprocess = UnboundLocalError - by paul18fr - Feb-02-2021, 11:56 AM
RE: exec + subprocess = UnboundLocalError - by Gribouillis - Feb-04-2021, 06:27 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How does UnboundLocalError work? deanhystad 3 1,687 Feb-25-2022, 01:21 AM
Last Post: bowlofred
  UnboundLocalError: local variable 'wmi' referenced before assignment ilknurg 2 1,922 Feb-10-2022, 07:36 PM
Last Post: deanhystad
  How to avoid exec(), globals(), locals(), eval() paul18fr 10 5,067 Apr-21-2021, 05:53 PM
Last Post: snippsat
  exec in a function paul18fr 6 3,396 Apr-19-2021, 11:10 AM
Last Post: paul18fr
  UnboundLocalError: local variable 'figure_perso' referenced before assignment mederic39 2 2,282 Jun-11-2020, 12:45 PM
Last Post: Yoriz
  UnBoundLocalError Seaninho 3 2,710 May-31-2020, 07:22 AM
Last Post: azajali43
  exec() in class, NameError niski1996 6 3,992 Apr-20-2020, 07:14 PM
Last Post: niski1996
  Is this use of exec pythonic? psolar 1 1,849 Feb-07-2020, 12:23 PM
Last Post: buran
  UnboundLocalError: local variable referenced before assignment svr 1 3,322 Dec-27-2019, 09:08 AM
Last Post: perfringo
  problem using exec to save local variables dkarl 0 1,804 Dec-01-2019, 08:52 AM
Last Post: dkarl

Forum Jump:

User Panel Messages

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