Python Forum
defining function in a functio and sharing variables
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
defining function in a functio and sharing variables
#1
i can def foo(): within the definition of bar(). then foo() can access bar()'s variables. is it considered pythonic to access variables between functions that way? has anyone here ever done this?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  functio to do fixed formatting of int/float Skaperen 0 1,945 Dec-26-2018, 09:55 PM
Last Post: Skaperen

Forum Jump:

User Panel Messages

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