Samuele Pedroni <[EMAIL PROTECTED]> wrote:
> 
> 
> >
> >
> >    def do():
> >        print "setup"
> >        try:
> >            yield None
> >        finally:
> >            print "tear down"
> >
> > doesn't quite work (if it did, all you would need is syntactic sugar 
> > for "for
> > dummy in").
> >
> PEP325 is about that

PEP 288 can be used like that.

 - Josiah

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to