Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sys module
#4
Uchikago Wrote:I'm just experimenting alternative way to use global variable
The best way is not to update global variables from functions. On the other hand, global variables can be mutable objects such as dictionaries or lists. This way you don't need the global statement.
Reply


Messages In This Thread
Sys module - by Uchikago - Jul-11-2019, 05:02 AM
RE: Sys module - by Gribouillis - Jul-11-2019, 05:17 AM
RE: Sys module - by Uchikago - Jul-11-2019, 05:30 AM
RE: Sys module - by Gribouillis - Jul-11-2019, 05:36 AM

Forum Jump:

User Panel Messages

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