Python Forum

Full Version: defining function in a functio and sharing variables
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?