Article View: pl.comp.objects
Article #16427Re: AOP
From: Adam Karpierz
Date: Thu, 12 Apr 2007 21:37
Date: Thu, 12 Apr 2007 21:37
25 lines
1605 bytes
1605 bytes
Użytkownik "Adam Karpierz" <karpierz@_NOSPAM_python.pl> napisał: > Zreszta tu jest najlepiej to opisane: > http://www.python.org/dev/peps/pep-0318/ Zeby moze skrocic Panu czytanie (nudne to) to napisanie @dekor(arg1, arg2, ...) def fun(): ... jest rownowazne def fun(): .. d = dekor(arg1, arg2, ...) fun = d(fun) Czyli dostajemy 'nowe' fun ktore moze byc oczywiscie starym fun ale moze to byc dowolny obiekt 'callable' czyli np jakis wrapper na poprzednia fun albo zupelnie cos innego. Widziane jest jednak pod nazwa fun AK
Technical Details
Message-ID:
<evm8so$5is$1@inews.gazeta.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mailReferences:
<evl4uq$mem$1@inews.gazeta.pl> <evla3n$ip1$1@tkdami.pl> <vh4t13l8k9cjuvjncu5l1isfa1vkn4335e@4ax.com> <evm55h$7ds$1@tkdami.pl> <qd6t13l10bkpa55tme7msq5no2ng9icigs@4ax.com> <evm7pd$t7q$1@inews.gazeta.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail From: "Adam Karpierz" <karpierz@_NOSPAM_python.pl> Newsgroups: pl.comp.objects Subject: Re: AOP Date: Thu, 12 Apr 2007 23:37:41 +0200 Organization: "Portal Gazeta.pl -> http://www.gazeta.pl" Lines: 27 Message-ID: <evm8so$5is$1@inews.gazeta.pl> References: <evl4uq$mem$1@inews.gazeta.pl> <evla3n$ip1$1@tkdami.pl> <vh4t13l8k9cjuvjncu5l1isfa1vkn4335e@4ax.com> <evm55h$7ds$1@tkdami.pl> <qd6t13l10bkpa55tme7msq5no2ng9icigs@4ax.com> <evm7pd$t7q$1@inews.gazeta.pl> NNTP-Posting-Host: dns.welnowiec.net X-Trace: inews.gazeta.pl 1176413912 5724 83.143.96.1 (12 Apr 2007 21:38:32 GMT) X-Complaints-To: usenet@agora.pl NNTP-Posting-Date: Thu, 12 Apr 2007 21:38:32 +0000 (UTC) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Priority: 3 X-RFC2646: Format=Flowed; Response X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-User: karpierz X-MSMail-Priority: Normal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit