samwyse wrote:
> so you might instead
> add 'as' clauses as an alternate way to reduce confusion:
> 
>>>>using myclass.new() as p:
> 
>         p.do_something()
>         p.something_else()

or even

   p = myclass.new()
   p.do_something()
   p.something_else()

Doesn't even need any new syntax. :-)

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

Reply via email to