Re: code object differences between 2.7 and 3.3a

2011-08-11 Thread Ned Deily
In article , Eric Snow wrote: > Specifically, I am wondering why there is a difference for co_names. This is not an answer to your question but, as a metapoint, in my experience it is usually faster and often more reliable to try to answer questions like this yourself using the tools that the

code object differences between 2.7 and 3.3a

2011-08-10 Thread Eric Snow
Specifically, I am wondering why there is a difference for co_names. Here is a function that exercises the different code object pieces[1]: def g(y=5): a = 7 def f(x, w=y, z=4, *args, **kwargs): b = a c = global_x return f f1 = g() Here are the results for 2.7: >>> for nam