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/2009-March/086927.html below:

[Python-Dev] Ruby-style Blocks in Python [Pseudo-PEP]

[Python-Dev] Ruby-style Blocks in Python [Pseudo-PEP] [Python-Dev] Ruby-style Blocks in Python [Pseudo-PEP]Duncan Booth duncan.booth at suttoncourtenay.org.uk
Sun Mar 8 16:51:35 CET 2009
tav <tav at espians.com> wrote:

> I explain in detail in this blog article:
> 
>   http://tav.espians.com/ruby-style-blocks-in-python.html
> 

"This is also possible in Python but at the needless cost of naming and 
defining a function first"

The cost of defining the function first is probably much less than the cost 
of your __do__ function. Your proposal seems to be much more limited than 
passing functions around e.g. Python allows you to pass in multiple 
functions where appropriate, or to store them for later calling. 


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