On 6/21/05, Chinook <[EMAIL PROTECTED]> wrote:
> 
> When I create the code objects though, it seems a couple different ways work
> and I'm wondering which is better and why (or is there a more correct
> technique in this situation)?
> 
> The two different ways are illustrated below:
...
> >>> obj1 = compile(exp1, 'whatever', 'single')
...
> >>> obj2 = compile(exp2, 'whatever', 'exec')

Are you essentially asking about difference between compile(..., 'single') 
and compile(..., 'exec'), which is described in
http://docs.python.org/lib/built-in-funcs.html ?

- kv
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to