Python Forum
local namespace vs. global namespace
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
local namespace vs. global namespace
#13
The major danger, and difficult to find is when a global is changed in a thread,
while that same global is being used in another thread, and of course becomes more
complicated if used by more than two threads.

So much better to pass the value so the scope is protected.
Reply


Messages In This Thread
local namespace vs. global namespace - by Skaperen - Jul-01-2017, 02:59 AM
RE: local namespace vs. global namespace - by Larz60+ - Jul-02-2017, 10:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  which namespace? Skaperen 5 258 May-28-2024, 05:38 AM
Last Post: Gribouillis
  It's saying my global variable is a local variable Radical 5 1,329 Oct-02-2023, 12:57 AM
Last Post: deanhystad
  Delete all Excel named ranges (local and global scope) pfdjhfuys 2 2,022 Mar-24-2023, 01:32 PM
Last Post: pfdjhfuys
  Global variables or local accessible caslor 4 1,131 Jan-27-2023, 05:32 PM
Last Post: caslor
  How to use global value or local value sabuzaki 4 1,240 Jan-11-2023, 11:59 AM
Last Post: Gribouillis
  'namespace' shorthand for function arguments? shadowphile 5 2,710 Aug-11-2021, 09:02 PM
Last Post: shadowphile
  Global vs. Local Variables Davy_Jones_XIV 4 2,735 Jan-06-2021, 10:22 PM
Last Post: Davy_Jones_XIV
  Global - local variables Motorhomer14 11 4,414 Dec-17-2020, 06:40 PM
Last Post: Motorhomer14
  from global space to local space Skaperen 4 2,409 Sep-08-2020, 04:59 PM
Last Post: Skaperen
  [PyKML] Loop through all Placemarks; Remove namespace Winfried 2 3,550 Aug-28-2020, 09:24 AM
Last Post: Winfried

Forum Jump:

User Panel Messages

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