This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients Claudiu.Popa, ahojnnes, berker.peksag, loewis, rhettinger, santoso.wijaya, serhiy.storchaka, xiang.zhang
Date 2017-02-28.04:46:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488257206.21.0.0869476036878.issue7769@psf.upfronthosting.co.za>
In-reply-to
Content
+1 for the decorator idea.  It feels very natural.

A little off topic, I do not like the with-statement example that we currently have in the docs.  I think it is bad design to put some much code inside with-block.  In the micro-webframeworks, we register functions separately from launching the server.  The same practice should apply here as well.
History
Date User Action Args
2017-02-28 04:46:46rhettingersetrecipients: + rhettinger, loewis, ahojnnes, santoso.wijaya, Claudiu.Popa, berker.peksag, serhiy.storchaka, xiang.zhang
2017-02-28 04:46:46rhettingersetmessageid: <1488257206.21.0.0869476036878.issue7769@psf.upfronthosting.co.za>
2017-02-28 04:46:46rhettingerlinkissue7769 messages
2017-02-28 04:46:45rhettingercreate