R
Robert Brewer
Playing around with func_code objects today, I typed:
()
I would have expected co_freevars to be ('y', ) rather like:
['y']
What am I misunderstanding? Under what circumstances does co_freevars
actually possess any items?
Robert Brewer
MIS
Amor Ministries
(e-mail address removed)
()
I would have expected co_freevars to be ('y', ) rather like:
f.func_code.co_varnames][k for k in f.func_globals if k in f.func_code.co_names and k not in
['y']
What am I misunderstanding? Under what circumstances does co_freevars
actually possess any items?
Robert Brewer
MIS
Amor Ministries
(e-mail address removed)