KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to call profile.run within my function, i.e.: def g(): ... def f(): x = ... run.profile('g(x)') However, it says 'x is not defined' when calling run.profile. As far as I understand, I have to supply import statement before calling g(x) inside string argument to run.profile, and I could do this with global variables. Is this possible with local variables?
Tags (comma-separated)
Save Edits
Cancel