On Sat, 21 Feb 2009 09:42:02 -0800, Aahz wrote:

> In article <aac004f8-2077-4e53-a865-47c24f7f5...@t3g2000yqa.googlegroups.com>,
> Alia K  <alia_kho...@yahoo.com> wrote:
>>
>>Nevertheless, I remain curious about whether once can use the
>>contextmanager in python to achieve the full power of ruby's blocks...
> 
> Short answer: no
> 
> Longer answer: the way in Python to achieve the full power of Ruby
> blocks is to write a function.

Which was where I was aiming to with my very long-winded post :-)

Ciao
----
FB
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to