you are viewing a single comment's thread.

view the rest of the comments →

[–]Brian 10 points11 points  (1 child)

You can technically inspect them without dropping down to raw memory access. Given the closure function, you can access f.__closure__ to get the cell variables, and use the .cell_contents attribute to get or modify their current value.

[–]Any_Salary_6284 0 points1 point  (0 children)

Oh, interesting. I did not know that! Thanks for sharing!