A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-May/053219.html below:

[Python-Dev] PEP 340 -- loose ends

[Python-Dev] PEP 340 -- loose ends [Python-Dev] PEP 340 -- loose endsNick Coghlan ncoghlan at gmail.com
Tue May 3 14:24:17 CEST 2005
Paul Svensson wrote:
> On Tue, 3 May 2005, Nick Coghlan wrote:
> 
>> I'd also suggest that the blocktemplate decorator accept any iterator, 
>> not just
>> generators.
> 
> 
> So you want decorators on classes now ?

A decorator is just a function - it doesn't *need* to be used with decorator 
syntax. I just think the following code should work for any iterator:

   block blocktemplate(itr):
     # Do stuff

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://boredomandlaziness.skystorm.net
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4