Python Forum
Sharing global variables between script in python
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sharing global variables between script in python
#4
(Oct-27-2016, 12:49 PM)sparkz_alot Wrote: I don't understand why that would be 'evil'.  Just curious Think

If you're looking through a file, the last thing you'd expect is that a completely different file is going to be modifying variables.  Calling functions, creating objects, sure, but modifying variables?  That's an easy way for bugs to creep silently into your codebase.
Reply


Messages In This Thread
RE: Sharing global variables between script in python - by nilamo - Oct-27-2016, 09:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Best way to secure API key when sharing quarinteen 2 399 Jan-19-2024, 04:46 PM
Last Post: deanhystad
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 3,468 Jun-29-2023, 11:57 AM
Last Post: gologica
  Trying to understand global variables 357mag 5 1,203 May-12-2023, 04:16 PM
Last Post: deanhystad
  Why Pip is not listed in the official Global Python Module index? quazirfan 2 808 Apr-21-2023, 10:55 AM
Last Post: snippsat
  Global variables or local accessible caslor 4 1,083 Jan-27-2023, 05:32 PM
Last Post: caslor
  global variables HeinKurz 3 1,199 Jan-17-2023, 06:58 PM
Last Post: HeinKurz
  Clarity on global variables JonWayn 2 994 Nov-26-2022, 12:10 PM
Last Post: JonWayn
  How to output Python in Spout or any other video sharing network? buzzdarkyear 4 2,243 Jan-11-2022, 11:37 AM
Last Post: buzzdarkyear
  How to install modules for 2.7 (or sharing from 3.8)) Persisto 2 2,516 Dec-31-2021, 02:33 PM
Last Post: Persisto
  multiprocessing and sharing object cyrduf 0 2,088 Feb-02-2021, 08:16 PM
Last Post: cyrduf

Forum Jump:

User Panel Messages

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